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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4998e3
sub esp, 0x68
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.00499c10
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 4]
test eax, eax
jne 0x4998c7
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x74]
mov dword [esp + 0x4c], ecx
add ebx, ecx
mov dword [esp + 0x24], ebx
mov ebp, dword [eax + 0x40]
mov dword [esp + 0x28], ebp
add ebp, ebx
mov dword [esp + 0x48], ebp
mov edi, dword [eax + 0x44]
mov dword [esp + 0x44], edi
mov ebp, dword [eax + 0x64]
mov dword [esp + 0x18], ebp
mov edi, dword [eax + 0x68]
mov dword [esp + 0x54], edi
mov eax, dword [eax + 0x78]
mov dword [esp + 0x40], eax
lea edi, [0x4be8a0]
mov dword [esp], edi
call fcn.00409640
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
add edx, ecx
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
adc edx, ebx
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
add ebp, esi
mov ebp, dword [esp + 0x44]
adc ebp, edx
mov ebx, dword [0x582c60]
test ebx, ebx
jne 0x4998b0
mov ebx, dword [esp + 0x54]
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebp
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 0x60]
movzx ebx, word [ecx + 0x18]
mov word [esp + 4], bx
mov dword [esp], edx
call fcn.004994e0
mov edx, dword [esp + 8]
test edx, edx
je 0x499888
lea eax, [0x4e4720]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x14], ecx
mov ebx, dword [esp + 0x6c]
movzx ebp, word [ebx + 0x16]
test bp, 8
jne 0x4997c1
xor edx, edx
xor ebp, ebp
mov dword [esp + 0x60], edx
mov dword [esp + 0x2c], ebp
call fcn.0048bd30
mov eax, dword [esp + 4]
mov dword [esp + 0x64], eax
mov ecx, dword [esp]
mov dword [esp + 0x3c], ecx
lea edx, [0x4c12a0]
mov dword [esp], edx
call fcn.00409640
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [0x582c60]
test ecx, ecx
jne 0x4997ac
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov ecx, dword [0x582c60]
test ecx, ecx
jne 0x49978e
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [0x582c60]
test ecx, ecx
jne 0x49977c
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x20], ecx
lea ecx, [0x4e4860]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x68
ret
lea edi, [eax + 0x20]
mov ecx, eax
mov eax, dword [esp + 0x60]
call fcn.00447660
mov eax, ecx
jmp 0x49975a
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x64]
call fcn.00447660
lea edi, [ecx + 0x18]
mov eax, dword [esp + 0x6c]
call fcn.00447660
mov eax, ecx
jmp 0x499742
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.00447660
mov eax, ecx
jmp 0x499723
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x48], eax
mov ebp, dword [esp + 0x28]
add eax, ebp
mov dword [esp + 0x20], eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x1c], eax
mov ebx, dword [ebx + 0x78]
mov dword [esp + 0x40], ebx
lea edi, [0x4be8a0]
mov dword [esp], edi
call fcn.00409640
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
add ecx, edx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
adc ecx, edx
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x28]
add edx, ebx
mov edx, dword [esp + 0x44]
adc ecx, edx
mov edx, dword [0x582c60]
mov ebx, dword [esp + 0x20]
mov ebp, ebx
add ebx, 0x10
mov ebx, ecx
adc ecx, 0
test edx, edx
jne 0x499876
mov edx, dword [esp + 0x58]
mov dword [eax + 4], edx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], ebx
mov ebx, dword [esp + 0x38]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
mov edx, eax
lea ebp, [0x4e4720]
jmp 0x4996da
lea edi, [eax + 4]
mov edx, eax
mov eax, dword [esp + 0x58]
call fcn.00447660
mov eax, edx
jmp 0x499853
mov eax, dword [0x571c4c]
mov ecx, dword [0x571c48]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x68
ret
lea ebx, [eax + 4]
mov edi, ebx
mov eax, dword [esp + 0x54]
call fcn.00447660
mov eax, dword [esp + 0x5c]
jmp 0x499664
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
add esp, 0x68
ret
call fcn.00445f00
jmp fcn.00499590