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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x49a302
sub esp, 0x5c
call fcn.0049c110
mov eax, dword [esp]
mov dword [esp + 0x40], eax
mov byte [eax + 0x80], 1
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x14], ecx
call fcn.004a1cf0
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00449c80
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0x84]
mov ebx, dword [eax + 0x8c]
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x3c], ebp
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], esi
test ecx, ecx
je 0x49a115
cmp ecx, 1
je 0x49a052
movzx edi, byte [eax + 0x7c]
xchg edi, eax
test al, al
xchg edi, eax
je 0x49a029
nop
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.00408490
mov eax, dword [esp + 0xc]
lea ecx, [0x53777c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0047b440
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
mov ecx, dword [eax + 0x84]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 0x88]
mov dword [esp + 0x34], edx
xor ebx, ebx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x44], ebx
xor ebx, ebx
mov dword [esp + 0x28], ebx
jmp 0x49a18a
lea eax, [0x4f1f00]
mov dword [esp], eax
call fcn.0040aa30
mov edi, dword [esp + 4]
mov dword [edi + 8], 0
mov eax, dword [0x62f5e0]
lea ecx, [edi + 0xc]
test eax, eax
jne 0x49a081
mov dword [edi + 0xc], 0
jmp 0x49a08e
xor eax, eax
mov edx, edi
mov edi, ecx
call fcn.0045d410
mov edi, edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x20]
mov dword [edi + 4], edx
mov edx, dword [0x62f5e0]
test edx, edx
jne 0x49a0af
mov eax, dword [esp + 0x3c]
mov dword [edi], eax
jmp 0x49a0b8
mov eax, dword [esp + 0x3c]
call fcn.0045d410
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x84]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x68]
lea ecx, [edx + ecx*8]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
lea ebx, [0x4ef4e0]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00408740
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x38]
mov dword [edx + 8], ecx
mov ecx, dword [0x62f5e0]
test ecx, ecx
jne 0x49a104
mov dword [edx + 0xc], eax
jmp 0x49a10d
mov edi, dword [esp + 0x54]
call fcn.0045d410
lea eax, [0x5373d0]
jmp 0x49a151
lea eax, [0x4efee0]
mov dword [esp], eax
call fcn.0040aa30
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x20]
mov dword [edi + 4], eax
mov eax, dword [0x62f5e0]
test eax, eax
jne 0x49a140
mov eax, dword [esp + 0x3c]
mov dword [edi], eax
jmp 0x49a149
mov eax, dword [esp + 0x3c]
call fcn.0045d410
lea eax, [0x5373bc]
mov edx, edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
call fcn.0049c1b0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], eax
add esp, 0x5c
ret
inc ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x2c], edi
cmp ebx, edx
jge 0x49a28e
mov dword [esp + 0x24], ebx
mov ebp, dword [ecx + ebx*4]
test ebx, ebx
jle 0x49a1b9
mov esi, dword [eax + 0x84]
lea esi, [esi + ebx*4 - 4]
cmp dword [esi], ebp
jne 0x49a1b9
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x44]
jmp 0x49a179
mov eax, dword [esp + 0x68]
lea ecx, [eax + ebp*8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
lea ebx, [0x4ef4e0]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00408740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x49a267
mov ebx, dword [esp + 0x28]
inc ebx
mov ebp, dword [esp + 0x2c]
cmp ebp, ebx
jb 0x49a1fe
mov eax, dword [esp + 0x44]
jmp 0x49a242
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x4ef4e0]
mov dword [esp + 0x10], eax
call fcn.00446290
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov ebp, edi
lea esi, [eax + ebx*8 - 8]
mov dword [esi], edx
lea edi, [eax + ebx*8 - 4]
mov edx, dword [0x62f5e0]
test edx, edx
jne 0x49a25a
mov dword [edi], ecx
jmp 0x49a273
mov edx, eax
mov eax, ecx
call fcn.0045d410
mov eax, edx
jmp 0x49a273
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x34]
mov edi, ebp
mov esi, eax
mov eax, dword [esp + 0x40]
mov ebp, ebx
mov ebx, dword [esp + 0x24]
jmp 0x49a179
lea eax, [0x4f1f60]
mov dword [esp], eax
call fcn.0040aa30
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x20]
mov dword [edi + 4], eax
mov eax, dword [0x62f5e0]
test eax, eax
jne 0x49a2b9
mov ecx, dword [esp + 0x3c]
mov dword [edi], ecx
jmp 0x49a2c2
mov eax, dword [esp + 0x3c]
call fcn.0045d410
mov ecx, dword [esp + 0x28]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x10], ecx
mov ecx, dword [0x62f5e0]
test ecx, ecx
jne 0x49a2e3
mov eax, dword [esp + 0x44]
mov dword [edi + 8], eax
jmp 0x49a2f5
lea ecx, [edi + 8]
mov eax, dword [esp + 0x44]
mov edx, edi
mov edi, ecx
call fcn.0045d410
mov edi, edx
lea eax, [0x5373e4]
mov edx, edi
jmp 0x49a151
call fcn.0045c000
jmp fcn.00499f40