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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a8d70
sub esp, 0x70
lea eax, [0x4e26a0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0043f8f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
xor ebx, ebx
mov ebp, 1
mov esi, 1
jmp 0x4a85ef
inc ebx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x50], eax
cmp ecx, ebx
jle 0x4a877c
lea edi, [edx + ebx*8]
mov edx, dword [edi + 4]
mov edi, dword [edi]
test edx, edx
je 0x4a85e7
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x44], edi
mov dword [esp], edi
mov dword [esp + 4], edx
call fcn.0048b3d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x4a86bf
mov edx, dword [esp + 0x30]
inc edx
mov ebx, dword [esp + 0x34]
cmp ebx, edx
jb 0x4a8652
mov ecx, dword [esp + 0x50]
jmp 0x4a8690
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x4e26a0]
mov dword [esp + 0x10], eax
call fcn.0043fa70
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, eax
mov ebx, esi
mov eax, dword [esp + 0x4c]
mov ebp, dword [0x5af9b0]
lea edi, [ecx + edx*4 - 4]
test ebp, ebp
jne 0x4a86a4
mov dword [ecx + edx*4 - 4], eax
jmp 0x4a86a9
call fcn.00452b40
mov ebp, edx
mov esi, ebx
mov eax, ecx
mov ecx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x3c]
jmp 0x4a85e7
mov dword [esp + 0x5c], edx
mov dword [esp + 0x48], ebx
nop
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.00408b80
mov eax, dword [esp + 8]
lea ecx, [0x4e69a0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a871b
mov edx, dword [eax + 4]
jmp 0x4a871d
mov edx, eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x6c], eax
lea eax, [0x502b2b]
mov dword [esp], eax
mov dword [esp + 4], 0x28
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a7b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
add esp, 0x70
ret
mov edx, dword [esp + 0x84]
test edx, edx
jne 0x4a878b
xor ecx, ecx
jmp 0x4a87c0
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0048b3d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x4a8ca3
mov ebp, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x94]
test edx, edx
jne 0x4a87d3
xor edx, edx
jmp 0x4a880c
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0048b3d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x4a8be0
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov edx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], edx
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jne 0x4a881c
xor ebx, ebx
jmp 0x4a8856
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.0048b3d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x4a8b23
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x30]
mov ebx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0x8c]
test esi, esi
jne 0x4a8869
xor esi, esi
jmp 0x4a88aa
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.0048b3d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x4a8a60
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov esi, eax
mov eax, dword [esp + 0x50]
test ebp, ebp
jbe 0x4a8d66
mov dword [esp + 0x28], esi
mov dword [esp + 0x58], eax
mov eax, dword [0x4cf7e0]
mov dword [esp + 0x54], eax
lea ecx, [0x4ef3a0]
mov dword [esp], ecx
call fcn.0040ae80
mov eax, dword [esp + 4]
mov ecx, dword [0x5af9b0]
test ecx, ecx
jne 0x4a88e9
mov ecx, dword [esp + 0x54]
mov dword [eax + 0x10], ecx
jmp 0x4a88f9
lea edi, [eax + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x54]
call fcn.00452b40
mov eax, ecx
mov dword [esp + 0x40], eax
mov dword [eax + 4], 0x12
lea ecx, [0x4fcd36]
mov dword [eax], ecx
lea edx, [0x4e4fe0]
mov dword [esp], edx
call fcn.0040ae80
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x74]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0xa4]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 7
mov dword [esp + 0xc], 7
call fcn.0048ad30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x4a8a3f
mov dword [esp + 0x48], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea eax, [0x4fcd36]
mov dword [esp], eax
mov dword [esp + 4], 0x12
call fcn.00408b80
mov eax, dword [esp + 8]
lea ecx, [0x4e69a0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a89e0
mov eax, dword [eax + 4]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x6c], eax
lea eax, [0x4fa754]
mov dword [esp], eax
mov dword [esp + 4], 6
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a7b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
add esp, 0x70
ret
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
add esp, 0x70
ret
mov dword [esp + 0x48], ebx
mov dword [esp + 0x5c], edx
nop
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
call fcn.00408b80
mov eax, dword [esp + 8]
lea ecx, [0x4e69a0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a8ac2
mov edx, dword [eax + 4]
jmp 0x4a8ac4
mov edx, eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x6c], eax
lea eax, [0x502b2b]
mov dword [esp], eax
mov dword [esp + 4], 0x28
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a7b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
add esp, 0x70
ret
mov dword [esp + 0x48], ebx
mov dword [esp + 0x5c], edx
nop
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
call fcn.00408b80
mov eax, dword [esp + 8]
lea ecx, [0x4e69a0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a8b7f
mov edx, dword [eax + 4]
jmp 0x4a8b81
mov edx, eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x6c], eax
lea eax, [0x502b2b]
mov dword [esp], eax
mov dword [esp + 4], 0x28
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a7b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
add esp, 0x70
ret
mov dword [esp + 0x48], ebx
mov dword [esp + 0x5c], edx
nop
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
call fcn.00408b80
mov eax, dword [esp + 8]
lea ecx, [0x4e69a0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a8c42
mov edx, dword [eax + 4]
jmp 0x4a8c44
mov edx, eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x6c], eax
lea eax, [0x502b2b]
mov dword [esp], eax
mov dword [esp + 4], 0x28
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a7b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
add esp, 0x70
ret
mov dword [esp + 0x48], ebx
mov dword [esp + 0x5c], edx
nop
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
call fcn.00408b80
mov eax, dword [esp + 8]
lea ecx, [0x4e69a0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a8d05
mov edx, dword [eax + 4]
jmp 0x4a8d07
mov edx, eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x6c], eax
lea eax, [0x502b2b]
mov dword [esp], eax
mov dword [esp + 4], 0x28
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a7b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
add esp, 0x70
ret
xor eax, eax
mov ecx, eax
call fcn.00452bc0
nop
call fcn.00451710
jmp fcn.004a8590