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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x499e50
sub esp, 0x5c
mov eax, 0
mov dword [esp + 0x58], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
call fcn.0048dcc0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x499cbd
mov eax, dword [ecx + 0x10]
mov dword [esp], edx
call eax
movzx eax, byte [esp + 4]
test al, al
je 0x499cb9
nop
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0048cad0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x499cb5
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea eax, [0x499e60]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x58], eax
mov byte [esp + 0x23], 1
mov dword [esp], ecx
mov dword [esp + 4], 0xffffffff
call fcn.0048b860
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x10]
nop
mov ebx, dword [esp + 8]
mov dword [esp + 0x38], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00408fa0
mov eax, dword [esp + 0xc]
lea ecx, [0x4d2a18]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004621c0
xor eax, eax
jmp 0x499cc8
add esp, 0x5c
ret
add esp, 0x5c
ret
add esp, 0x5c
ret
mov ecx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jge 0x499e36
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x38]
lea edx, [ecx + eax*8]
mov ebx, dword [edx]
mov dword [esp + 0x3c], ebx
mov edx, dword [edx + 4]
mov dword [esp + 0x2c], edx
mov ebp, dword [esp + 0x68]
mov dword [esp], ebp
mov esi, dword [esp + 0x6c]
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.00498e90
movzx eax, byte [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test ecx, ecx
jne 0x499e17
test al, al
je 0x499cc1
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x54], edx
lea edx, [esp + 0x48]
mov dword [esp], edx
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.0049b1d0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0x10]
inc ebx
cmp ecx, ebx
jae 0x499de9
mov dword [esp + 0x24], ebp
mov dword [esp + 0x34], edx
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x4a56a0]
mov dword [esp + 0x10], eax
call fcn.00446c30
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x80], ebx
lea ecx, [eax + ebx*8 - 4]
mov dword [ecx], ebp
lea edi, [eax + ebx*8 - 8]
mov ecx, dword [0x577530]
test ecx, ecx
jne 0x499e0b
mov dword [edi], edx
jmp 0x499cc1
mov eax, edx
call fcn.0045d890
jmp 0x499cc1
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x58]
mov eax, dword [edx]
call eax
add esp, 0x5c
ret
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x58]
mov eax, dword [edx]
call eax
add esp, 0x5c
ret
call fcn.0045c480
jmp fcn.00499b50