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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a8da0
sub esp, 0x70
lea eax, [0x4e2660]
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 0x4a861f
inc ebx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x54], eax
cmp ecx, ebx
jle 0x4a87ac
lea edi, [edx + ebx*8]
mov edx, dword [edi + 4]
mov edi, dword [edi]
test edx, edx
je 0x4a8617
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x50], edi
mov dword [esp], edi
mov dword [esp + 4], edx
call fcn.0048b3f0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x4a86ef
mov edx, dword [esp + 0x34]
inc edx
mov ebx, dword [esp + 0x38]
cmp ebx, edx
jb 0x4a8682
mov ecx, dword [esp + 0x54]
jmp 0x4a86c0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x4e2660]
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 + 0x48]
mov ebp, dword [0x5af9b0]
lea edi, [ecx + edx*4 - 4]
test ebp, ebp
jne 0x4a86d4
mov dword [ecx + edx*4 - 4], eax
jmp 0x4a86d9
call fcn.00452b40
mov ebp, edx
mov esi, ebx
mov eax, ecx
mov ecx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x3c]
jmp 0x4a8617
mov dword [esp + 0x5c], edx
mov dword [esp + 0x44], 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 + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.00408b80
mov eax, dword [esp + 8]
lea ecx, [0x4e69e0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a874b
mov edx, dword [eax + 4]
jmp 0x4a874d
mov edx, eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x6c], eax
lea eax, [0x502c2b]
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.004a7b40
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 0x4a87bb
xor ecx, ecx
jmp 0x4a87f0
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0048b3f0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x4a8cd3
mov ebp, dword [esp + 0x34]
mov ecx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x94]
test edx, edx
jne 0x4a8803
xor edx, edx
jmp 0x4a883c
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0048b3f0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x4a8c10
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
mov edx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jne 0x4a884c
xor ebx, ebx
jmp 0x4a8886
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.0048b3f0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x4a8b53
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x34]
mov ebx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x8c]
test esi, esi
jne 0x4a8899
xor esi, esi
jmp 0x4a88da
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.0048b3f0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x4a8a90
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x34]
mov esi, eax
mov eax, dword [esp + 0x54]
test ebp, ebp
jbe 0x4a8d96
mov dword [esp + 0x28], esi
mov dword [esp + 0x58], eax
mov eax, dword [0x4cfd28]
mov dword [esp + 0x4c], eax
lea ecx, [0x4ef520]
mov dword [esp], ecx
call fcn.0040ae80
mov eax, dword [esp + 4]
mov ecx, dword [0x5af9b0]
test ecx, ecx
jne 0x4a8919
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x10], ecx
jmp 0x4a8929
lea edi, [eax + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.00452b40
mov eax, ecx
mov dword [esp + 0x40], eax
mov dword [eax + 4], 0x12
lea ecx, [0x4fce36]
mov dword [eax], ecx
lea edx, [0x4e5140]
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 + 0x24]
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 + 0x20]
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.0048ad50
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x4a8a6f
mov dword [esp + 0x44], 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, [0x4fce36]
mov dword [esp], eax
mov dword [esp + 4], 0x12
call fcn.00408b80
mov eax, dword [esp + 8]
lea ecx, [0x4e69e0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a8a10
mov eax, dword [eax + 4]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x6c], eax
lea eax, [0x4fa854]
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.004a7b40
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 + 0x44], 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, [0x4e69e0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a8af2
mov edx, dword [eax + 4]
jmp 0x4a8af4
mov edx, eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x6c], eax
lea eax, [0x502c2b]
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.004a7b40
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 + 0x44], 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, [0x4e69e0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a8baf
mov edx, dword [eax + 4]
jmp 0x4a8bb1
mov edx, eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x6c], eax
lea eax, [0x502c2b]
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.004a7b40
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 + 0x44], 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, [0x4e69e0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a8c72
mov edx, dword [eax + 4]
jmp 0x4a8c74
mov edx, eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x6c], eax
lea eax, [0x502c2b]
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.004a7b40
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 + 0x44], 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, [0x4e69e0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a8d35
mov edx, dword [eax + 4]
jmp 0x4a8d37
mov edx, eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x6c], eax
lea eax, [0x502c2b]
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.004a7b40
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.004a85c0