Function at 0x5a70c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a776b
sub esp, 0x68
lea eax, [0x625720]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
lea ebp, [0x607d40]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00566170
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
test eax, eax
jne 0x5a743b
mov eax, dword [esp + 0x5c]
cmp dword [eax], 1
jne 0x5a73bf
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x5a7170
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.005ad6a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
jmp 0x5a7191
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov ebx, dword [eax + 0x18]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.005ad6a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x5a737e
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], ecx
lea eax, [0x61db80]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ebp, dword [ecx + 0xc]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
call fcn.00508440
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x48]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [0x7e0970]
test ecx, ecx
jne 0x5a720e
mov dword [ebx + 4], eax
jmp 0x5a7216
lea edi, [ebx + 4]
call fcn.0045e4b0
mov byte [ebx], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x54]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x48]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004ff380
mov eax, dword [esp + 8]
test eax, eax
jge 0x5a733d
lea eax, [0x62d480]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
mov edx, dword [0x7e0970]
test edx, edx
jne 0x5a7282
mov edx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov ebx, dword [esp + 0x48]
mov dword [eax + 0x10], ebx
jmp 0x5a72a2
lea edi, [eax + 4]
mov edx, eax
mov eax, dword [esp + 0x54]
call fcn.0045e4b0
lea edi, [edx + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x48]
call fcn.0045e4b0
mov eax, edx
mov edx, ebx
mov dword [esp + 0x44], eax
mov ebx, dword [esp + 0x50]
mov ebp, dword [ebx + 8]
mov ebx, dword [ebx + 4]
lea esi, [ebp - 1]
test esi, esi
jl 0x5a72fd
mov ebx, dword [ebx + ebp*4 - 4]
nop
cmp ebx, 0x10000
jb 0x5a72ce
shr ebx, 0x10
mov ebp, 0x10
jmp 0x5a72d0
xor ebp, ebp
cmp ebx, 0x100
jb 0x5a72de
shr ebx, 8
add ebp, 8
cmp ebx, 0x100
jae 0x5a775e
shl esi, 5
lea edi, [0x649bcc]
movzx ebx, byte [edi + ebx]
add ebx, ebp
add ebx, esi
jmp 0x5a72ff
xor ebx, ebx
lea eax, [0x612b40]
mov dword [esp], eax
lea eax, [ebx + 7]
sar eax, 0x1f
shr eax, 0x1d
lea eax, [ebx + eax + 7]
sar eax, 3
mov dword [esp + 0x34], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004476a0
mov eax, dword [esp + 0x5c]
lea edi, [eax + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x34]
jmp 0x5a761b
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2e
lea ecx, [0x645619]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x690a60]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1c
lea ecx, [0x63f8e6]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x690a60]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00408d10
mov eax, dword [esp + 4]
lea ecx, [0x612240]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
lea eax, [0x6438bd]
mov dword [esp], eax
mov dword [esp + 4], 0x27
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b27a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x68
ret
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], ecx
lea eax, [0x622ae0]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
lea ebp, [0x607e80]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00566170
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5a75d6
lea eax, [0x62d6c0]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 8], ecx
lea ecx, [0x607e00]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00566170
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5a7595
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x643455]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x26
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0044ac50
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
lea edx, [0x618d20]
mov dword [esp], edx
call fcn.0040b460
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
mov eax, dword [0x7e0970]
test eax, eax
jne 0x5a756c
mov eax, dword [esp + 0x40]
mov dword [edi], eax
jmp 0x5a7575
mov eax, dword [esp + 0x40]
call fcn.0045e4b0
mov dword [esp + 0x7c], 0
lea eax, [0x690a60]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x68
ret
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x58
lea ecx, [0x6491cc]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x690a60]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x58
lea ecx, [0x649224]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x690a60]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov edx, dword [esp + 0x34]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 4]
mov esi, dword [eax + 0xc]
cmp ebx, edx
jle 0x5a76a3
movzx edx, byte [ebp]
test dl, dl
jne 0x5a7662
lea edx, [ebx - 1]
mov dword [eax + 8], edx
lea edx, [esi - 1]
mov dword [eax + 0xc], edx
mov ebx, dword [0x7e0970]
neg edx
sar edx, 0x1f
and edx, 1
add edx, ebp
test ebx, ebx
jne 0x5a7655
mov dword [eax + 4], edx
jmp 0x5a7617
mov ebx, eax
mov eax, edx
call fcn.0045e4b0
mov eax, ebx
jmp 0x5a7617
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x20
lea ecx, [0x64112b]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x690a60]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov eax, edx
sub eax, ebx
cmp edx, eax
jb 0x5a7757
mov esi, edx
sub edx, eax
mov edi, edx
neg edx
sar edx, 0x1f
and edx, eax
lea eax, [edx + ecx]
cmp ebx, edi
jl 0x5a76c5
mov ebx, edi
cmp ebp, eax
je 0x5a76e5
mov dword [esp + 0x58], ecx
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.0045ee00
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
call eax
mov eax, dword [0x7e0970]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x5a771f
mov eax, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x5a7739
mov ebx, dword [esp + 0x44]
lea edi, [ebx + 8]
mov eax, ecx
call fcn.0045e4b0
lea edi, [ebx + 0xc]
mov eax, edx
call fcn.0045e4b0
mov eax, ebx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x68
ret
mov ecx, edx
call fcn.0045e590
mov eax, ebx
mov ecx, 0x100
call fcn.0045e540
nop
call fcn.0045d0a0
jmp fcn.005a70c0