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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a15f1
sub esp, 0x68
call fcn.00457050
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov ebx, dword [esp + 4]
test ecx, ecx
jle 0x4a15cd
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x64], edx
xor ebp, ebp
xor esi, esi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x54], ebp
xor ebp, ebp
jmp 0x4a1576
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov edx, ebx
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov esi, eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
cmp ebx, esi
jge 0x4a144d
mov dword [esp + 0x38], esi
sub esi, ebx
mov dword [esp + 0x40], esi
shr esi, 0x1f
mov ebp, dword [esp + 0x40]
add ebp, esi
sar ebp, 1
lea esi, [ebp + ebx]
mov ebx, dword [esp + 0x30]
cmp esi, ebx
jae 0x4a15de
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], esi
mov eax, dword [edi + esi*4]
nop
add eax, edx
mov dword [esp], eax
call fcn.0049cfc0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xc], ecx
call fcn.00402790
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x4a1438
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
jmp 0x4a1394
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
lea ecx, [ebx + edx + 1]
mov eax, dword [esp + 0x38]
jmp 0x4a1394
mov esi, dword [esp + 0x30]
jmp 0x4a147e
mov ecx, dword [esp + 0x34]
inc ecx
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x2c]
mov ebx, ecx
mov ecx, dword [esp + 0x28]
cmp ebx, esi
jge 0x4a1542
jae 0x4a15d5
mov dword [esp + 0x34], ebx
mov eax, dword [edi + ebx*4]
nop
add eax, edx
mov dword [esp + 0x50], eax
mov dword [esp], eax
call fcn.0049cfc0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
cmp dword [esp + 8], ecx
jne 0x4a1542
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.00402890
movzx eax, byte [esp + 0xc]
test al, al
je 0x4a1542
mov edx, dword [esp + 0x20]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x24]
cmp ebx, ebp
ja 0x4a150b
mov eax, dword [esp + 0x54]
mov esi, dword [0x63be10]
lea edi, [eax + edx*4]
test esi, esi
jne 0x4a14f9
mov esi, dword [esp + 0x50]
mov dword [eax + edx*4], esi
jmp 0x4a1453
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.0045a680
mov eax, ecx
jmp 0x4a1453
lea eax, [0x530980]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.004427c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ebx, [ecx + 1]
mov edx, dword [esp + 0x20]
jmp 0x4a14e0
mov edx, dword [esp + 0x2c]
inc edx
mov ebx, dword [esp + 0x28]
cmp ebx, edx
jle 0x4a15b1
mov eax, dword [esp + 0x60]
add eax, 0xc
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov ebx, dword [esp + 0x44]
mov ebp, edx
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov esi, dword [eax + 4]
mov edi, dword [eax]
cmp ebp, ebx
jae 0x4a15e7
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x60], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x5c], edi
mov edx, dword [edx + ebp*4]
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
jmp 0x4a13b8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x68
ret
xor eax, eax
xor ecx, ecx
xor edx, edx
jmp 0x4a15bd
mov eax, ebx
mov ecx, esi
call fcn.0045a700
mov eax, esi
mov ecx, ebx
call fcn.0045a700
mov eax, ebp
mov ecx, ebx
call fcn.0045a700
nop
call fcn.00459120
jmp fcn.004a1340