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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x496ada
sub esp, 0x7c
mov eax, 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x496a96
movzx edx, byte [0xc5cc40]
test dl, dl
je 0x496a8a
mov dword [0xc5cc44], ecx
mov edx, dword [0xc6f140]
test edx, edx
jne 0x496a73
mov eax, dword [esp + 0x84]
mov dword [0xc5cc48], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x496a68
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x49660d
or edx, 0x80
mov ebx, edx
and edx, 0x1f
cmp edx, 0x17
jne 0x496a2a
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.004a0b90
mov eax, dword [esp + 0xc]
test eax, eax
je 0x496a19
cmp eax, 1
je 0x496a08
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], ecx
call fcn.004a3100
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x28]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
lea edx, [0x928080]
cmp edx, ecx
jne 0x496abc
movzx ecx, byte [eax + 0xf]
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
test cl, 0x80
jne 0x49682b
cmp edx, 4
je 0x4967bd
and ecx, 0x1f
cmp ecx, 0x18
je 0x49674f
mov dword [esp + 0x70], eax
mov dword [esp], eax
call fcn.00409dd0
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
lea ecx, [0x84bf00]
mov dword [esp], ecx
call fcn.00409d90
mov eax, dword [esp + 4]
lea ecx, [0x4a66e0]
mov dword [eax], ecx
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x49673d
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x49671f
mov ecx, dword [esp + 0x70]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0x10], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x70]
call fcn.0044c860
lea edi, [ecx + 0x10]
mov eax, dword [esp + 0x54]
call fcn.0044c860
mov eax, ecx
jmp 0x496714
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.0044c860
mov eax, ecx
jmp 0x4966f5
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov edx, dword [eax]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
lea ebx, [0x8235a0]
mov dword [esp], ebx
call fcn.00409d90
mov eax, dword [esp + 4]
lea ecx, [0x4a64f0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x4967ab
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0044c860
mov eax, ecx
jmp 0x4967a0
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
lea ebx, [0x823540]
mov dword [esp], ebx
call fcn.00409d90
mov eax, dword [esp + 4]
lea ecx, [0x4a6480]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x496819
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x5c]
call fcn.0044c860
mov eax, ecx
jmp 0x49680e
cmp edx, 2
ja 0x49691e
cmp edx, 1
je 0x4968b0
cmp edx, 2
jne 0x4966b6
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax]
mov dword [esp + 0x68], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
lea ebx, [0x823360]
mov dword [esp], ebx
call fcn.00409d90
mov eax, dword [esp + 4]
lea ecx, [0x4a6640]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x49689e
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x68]
call fcn.0044c860
mov eax, ecx
jmp 0x496893
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
lea ebx, [0x823480]
mov dword [esp], ebx
call fcn.00409d90
mov eax, dword [esp + 4]
lea ecx, [0x4a6690]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x49690c
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x64]
call fcn.0044c860
mov eax, ecx
jmp 0x496901
cmp edx, 4
je 0x49699a
cmp edx, 8
jne 0x4966b6
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x44], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
lea ebx, [0x823420]
mov dword [esp], ebx
call fcn.00409d90
mov eax, dword [esp + 4]
lea ecx, [0x4a6590]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x496988
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x60]
call fcn.0044c860
mov eax, ecx
jmp 0x49697d
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
lea ebx, [0x8233c0]
mov dword [esp], ebx
call fcn.00409d90
mov eax, dword [esp + 4]
lea ecx, [0x4a65f0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x4969f6
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x6c]
call fcn.0044c860
mov eax, ecx
jmp 0x4969eb
lea eax, [0x8bf690]
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea eax, [0x8bf68c]
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov dword [esp + 0x48], edx
lea eax, [0x836c60]
mov dword [esp], eax
call fcn.00409d90
mov edi, dword [esp + 4]
mov dword [edi + 4], 7
mov eax, dword [0xc6f140]
test eax, eax
jne 0x496a5b
lea eax, [0x89942b]
mov dword [edi], eax
jmp 0x496aa1
lea eax, [0x89942b]
call fcn.0044c860
jmp 0x496aa1
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x49660d
lea edi, [0xc5cc48]
mov eax, dword [esp + 0x84]
call fcn.0044c860
jmp 0x4965e5
mov eax, dword [esp + 0x84]
jmp 0x4965e5
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x49660d
mov eax, dword [esp + 0x48]
mov dword [edi + 8], eax
lea eax, [0x81b700]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.00427650
ud2
mov dword [esp], ecx
lea eax, [0x890da0]
mov dword [esp + 4], eax
lea eax, [0x886040]
mov dword [esp + 8], eax
call fcn.00407280
ud2
call fcn.0044b100
jmp fcn.00496580