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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a20bd
sub esp, 0x6c
lea eax, [0x639ee0]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
lea eax, [0x647254]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 6
call fcn.0040ec50
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test ecx, ecx
je 0x5a2080
mov dword [esp + 0x30], ecx
mov dword [esp + 0x58], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ecx, [0x646b06]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
call fcn.004878b0
mov eax, dword [esp + 0x10]
lea ecx, [0x60cd00]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov edx, dword [esp + 0x30]
add eax, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 8], eax
call fcn.0043bc20
mov eax, dword [esp + 0xc]
xor ecx, ecx
xor edx, edx
mov ebx, dword [esp + 0x3c]
jmp 0x5a2021
mov ebx, ecx
mov ebp, eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x5a2014
mov dword [esp + 0x54], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x28], eax
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x646b06]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
call fcn.00489b40
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x5a2003
mov edx, dword [esp + 0x28]
cmp ecx, edx
ja 0x5a20b7
lea eax, [ecx + 1]
cmp eax, edx
ja 0x5a20b0
sub edx, eax
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, eax
mov eax, dword [esp + 0x54]
add edx, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x5c], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00489380
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x5a1da1
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
jmp 0x5a1cf6
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x646b08]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
call fcn.00489b40
mov ecx, dword [esp + 0x10]
test ecx, ecx
jl 0x5a1ff2
mov edx, dword [esp + 0x2c]
cmp ecx, edx
ja 0x5a20ab
lea eax, [ecx + 1]
cmp eax, edx
ja 0x5a20a4
sub edx, eax
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, eax
mov eax, dword [esp + 0x50]
add edx, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x5a1fb5
xor ebp, ebp
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5a1fa4
mov ebp, dword [esp + 0x78]
test ebp, ebp
je 0x5a1f9d
cmp ebp, ecx
je 0x5a1f68
mov esi, 1
xchg esi, eax
test al, al
xchg esi, eax
je 0x5a1e4b
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
jmp 0x5a1cf6
mov dword [esp], edx
mov dword [esp + 4], ebx
mov byte [esp + 8], 1
call fcn.005a2730
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
movzx edx, byte [esp + 0x14]
test dl, dl
jne 0x5a1e7e
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
jmp 0x5a1cf6
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], ecx
lea eax, [0x6368c0]
mov dword [esp], eax
call fcn.0040a450
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [0x823e50]
test ecx, ecx
jne 0x5a1f56
mov ecx, dword [esp + 0x50]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x823e50]
test ecx, ecx
jne 0x5a1f41
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x40]
cmp edx, ebx
ja 0x5a1f02
mov ebp, dword [esp + 0x64]
mov esi, dword [0x823e50]
lea edi, [ebp + ecx*4]
test esi, esi
jne 0x5a1efb
mov dword [ebp + ecx*4], eax
mov eax, ebx
mov ecx, edx
mov edx, ebp
jmp 0x5a1cf6
call fcn.004502e0
jmp 0x5a1ef0
mov dword [esp + 0x60], eax
lea eax, [0x60cd00]
mov dword [esp], eax
mov ebp, dword [esp + 0x64]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.0043bce0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [eax + 1]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x44]
jmp 0x5a1ede
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.004502e0
mov eax, ecx
jmp 0x5a1ecb
mov edi, eax
mov eax, dword [esp + 0x50]
call fcn.004502e0
mov eax, edi
jmp 0x5a1eb3
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.00402300
movzx esi, byte [esp + 0xc]
xor esi, 1
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x78]
jmp 0x5a1e34
xor esi, esi
jmp 0x5a1e34
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
jmp 0x5a1cf6
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x65dfd0]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call fcn.00488fa0
mov eax, dword [esp + 0x10]
test eax, eax
xchg ebp, ebx
setl bl
xchg ebp, ebx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x20]
jmp 0x5a1e11
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x2c]
xor ebx, ebx
xor edx, edx
jmp 0x5a1dfb
mov eax, dword [esp + 0x54]
xor ebx, ebx
xor edx, edx
mov ecx, dword [esp + 0x28]
jmp 0x5a1d70
mov esi, dword [esp + 0x48]
lea ecx, [esi + 1]
mov eax, edx
mov edx, ebx
mov ebx, ebp
mov ebp, dword [esp + 0x30]
cmp ecx, ebp
jge 0x5a206a
mov dword [esp + 0x48], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x58]
lea edx, [eax + ecx*8]
mov ebx, dword [edx + 4]
mov edx, dword [edx]
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.00489380
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
jmp 0x5a1d02
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ebx
add esp, 0x6c
ret
lea eax, [0x823c68]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x6c
ret
mov ecx, edx
call fcn.004503c0
call fcn.00450380
mov ecx, edx
call fcn.004503c0
call fcn.00450380
nop
call fcn.0044eaa0
jmp fcn.005a1c40