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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416f02
sub esp, 0x4c
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov ecx, dword [eax + 0x18]
test byte [eax], al
mov eax, dword fs:[0x14]
mov eax, dword [eax]
cmp dword [ecx], eax
je 0x416e2b
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x416e2b
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x416e2b
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4169c1
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4169c1
mov dword [eax + 8], 0xfffffade
jmp 0x4169c1
inc dword [0x97c00c]
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
call fcn.00416820
movzx eax, byte [esp + 0x10]
test al, al
jne 0x416e1a
xor eax, eax
test al, al
jne 0x4169bb
nop
lea eax, [0x97c880]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004398c0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xc], ecx
call fcn.00416820
movzx eax, byte [esp + 0x10]
test al, al
je 0x416dfa
mov eax, dword [esp + 0x50]
cmp eax, 2
sete al
mov byte [0x97c894], al
mov eax, dword [0x98f09c]
cmp eax, 1
jne 0x416de4
mov eax, 1
mov dword [esp + 0x14], eax
lea ecx, [0x8a4128]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004398c0
movzx eax, byte [0x986be8]
test al, al
jne 0x416d73
mov eax, dword [0x97be00]
mov dword [esp + 0x40], eax
mov ecx, dword [0x97be04]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x416ace
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x416b03
mov dword [esp + 0x24], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x3c], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x358
mov dword [esp], ebx
call fcn.00401f10
mov eax, dword [esp + 4]
mov ecx, dword [0x98078c]
cmp eax, ecx
je 0x416abf
jmp 0x416e4d
call fcn.004180b0
lea eax, [0x6d59bc]
mov dword [esp], eax
call fcn.0044e990
mov eax, dword [0x98ed10]
mov dword [0x97c8c0], eax
mov dword [0x97c8c4], eax
mov ecx, dword [0x98ed18]
cmp eax, ecx
jle 0x416b38
mov dword [0x97c8c0], ecx
lea eax, [0x9923c0]
mov dword [esp], eax
call fcn.00402110
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [0x97c8f8], eax
mov dword [0x97c8fc], ecx
mov dword [0x97c8e8], 0
mov dword [0x97c8ec], 0
mov eax, dword [esp + 0x14]
mov dword [0x97c890], eax
call fcn.00451200
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov dword [0x97c8c8], ecx
mov dword [0x97c8cc], eax
mov dword [0x97c8f0], ecx
mov dword [0x97c8f4], eax
movzx eax, byte [0x986be8]
test al, al
jne 0x416d24
lea eax, [0x6d5a94]
mov dword [esp], eax
call fcn.0044e990
lea eax, [0x6d59c0]
mov dword [esp], eax
call fcn.0044e990
call fcn.00418fb0
inc dword [0x97c8bc]
lea eax, [0x98f3e0]
mov dword [esp], eax
call fcn.004151f0
mov eax, dword [0x990e2c]
mov ecx, dword [0x990e28]
mov dword [0x97c910], ecx
mov dword [0x97c914], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x416d16
nop
lea eax, [0x98ed0c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004020f0
mov eax, dword [0x98ed0c]
cmp eax, 1
jne 0x416d0b
mov eax, 1
mov byte [0x98ef84], al
test al, al
je 0x416cff
mov eax, 1
mov byte [0x98ef80], al
nop
mov dword [0x97c858], 0xffffffff
mov dword [0x97c864], 0xffffffff
call fcn.0041a0a0
call fcn.0041d660
lea eax, [0x98ed00]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004020f0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [0x98f410], ecx
mov dword [0x98f414], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea eax, [0x44bc00]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.0044e990
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x416cee
lea eax, [0x97c880]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00439bd0
add esp, 0x4c
ret
nop
lea eax, [0x6d59cc]
mov dword [esp], eax
call fcn.0044e930
jmp 0x416ccf
movzx eax, byte [0x98ef85]
jmp 0x416c4a
cmp eax, 2
sete al
jmp 0x416c37
mov byte [esp], 0
call fcn.00435ef0
jmp 0x416c0c
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00443c70
jmp 0x416bb3
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x986c1c]
mov ecx, dword [0x986c18]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00443c70
mov eax, dword [0x986c18]
add eax, 1
mov ecx, dword [0x986c1c]
mov dword [0x986c18], eax
adc ecx, 0
mov dword [0x986c1c], ecx
jmp 0x416aa7
cmp eax, 2
jne 0x416df3
mov eax, 2
jmp 0x416a71
xor eax, eax
jmp 0x416a71
nop
lea eax, [0x97c880]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00439bd0
add esp, 0x4c
ret
call fcn.0041e960
cmp dword [esp], 0xffffffff
setne al
jmp 0x4169f4
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x416e49
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416e49
mov dword [eax + 8], 0xfffffade
add esp, 0x4c
ret
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
call fcn.0042b830
lea eax, [0x6ba567]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.0042c0d0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.0042bf10
lea eax, [0x6b938e]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.0042c0d0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042bde0
lea eax, [0x6bb04e]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.0042c0d0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042bde0
call fcn.0042ba50
call fcn.0042b8a0
lea eax, [0x6bf34f]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0042aa00
nop
call fcn.0044eab0
jmp fcn.00416940