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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a45b6
sub esp, 0x68
lea edi, [esp + 0x84]
xor eax, eax
call fcn.00465fea
lea edi, [esp + 0x50]
call fcn.00465fea
mov ecx, dword [esp + 0x78]
lea edx, [ecx + ecx*4]
shl edx, 2
mov ebx, dword [esp + 0x70]
cmp ebx, edx
jl 0x5a4343
mov dword [esp + 0x30], edx
lea eax, [0x6ce600]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044bce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
xor ebp, ebp
jmp 0x5a443d
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp], edx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea eax, [0x703ebd]
mov dword [esp], eax
mov dword [esp + 4], 0x35
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x50]
call fcn.004664c4
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa4], eax
add esp, 0x68
ret
mov eax, dword [esp + 0x2c]
lea eax, [ebp + eax*4]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
call fcn.005a7eb0
mov eax, dword [esp + 0x24]
lea ebp, [eax + 1]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
cmp eax, ebp
jle 0x5a4481
lea esi, [ebp + ebp*4]
mov edi, esi
shl esi, 2
cmp ecx, esi
jb 0x5a45ae
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
sub edx, esi
mov dword [esp + 0x28], edx
sub ecx, esi
neg edx
sar edx, 0x1f
and esi, edx
lea edx, [ebx + esi]
mov esi, dword [esp + 0x24]
cmp esi, edi
jb 0x5a4406
jmp 0x5a45a5
mov ebp, dword [esp + 0x30]
cmp ecx, ebp
jb 0x5a459e
lea esi, [esp + 0x50]
mov dword [esp], esi
sub edx, ebp
mov edi, edx
neg edx
sar edx, 0x1f
and edx, ebp
add edx, ebx
mov dword [esp + 4], edx
sub ecx, ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
call fcn.005a8240
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x5a4569
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
test ecx, ecx
je 0x5a44f6
mov ecx, dword [ecx + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea eax, [0x6f81b7]
mov dword [esp], eax
mov dword [esp + 4], 0x17
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x50]
call fcn.004664c4
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa4], eax
add esp, 0x68
ret
lea edi, [esp + 0x84]
lea esi, [esp + 0x50]
call fcn.004664c4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
add esp, 0x68
ret
mov eax, ebp
call fcn.00465e60
mov eax, esi
mov ecx, edi
call fcn.00465e00
mov eax, esi
call fcn.00465e60
nop
call fcn.004649b0
jmp fcn.005a42c0