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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4173ac
sub esp, 0x60
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x7c]
mov ecx, dword [eax + 0x18]
test byte [eax], al
mov eax, dword fs:[0x14]
mov eax, dword [eax]
cmp dword [ecx], eax
je 0x416daf
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x416daf
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x416daf
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x416dd7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416dd7
mov dword [eax + 8], 0xfffffade
jmp 0x416dd7
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x416dcd
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416dcd
mov dword [eax + 8], 0xfffffade
add esp, 0x60
ret
inc dword [0xcc32fc]
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
call fcn.00416bd0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x416e08
xor eax, eax
jmp 0x416e14
call fcn.00424720
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x416dd1
lea eax, [0xcc3998]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.00449ab0
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
call fcn.00416bd0
movzx eax, byte [esp + 0x10]
test al, al
je 0x416f8d
mov eax, dword [0xce9858]
cmp eax, 1
jne 0x416e83
mov eax, 1
jmp 0x416e91
cmp eax, 2
jne 0x416e8f
mov eax, 2
jmp 0x416e91
xor eax, eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x64]
cmp ecx, 2
sete dl
mov byte [esp + 0x23], dl
lea ebx, [0xc87c2c]
mov dword [esp], ebx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.00449ab0
lea eax, [0xc87c4c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.00449ab0
movzx eax, byte [esp + 0x23]
mov byte [0xcc39ac], al
movzx eax, byte [0xccd728]
test al, al
je 0x416f75
nop
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [0xccd758]
mov ecx, dword [0xccd75c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00455fa0
mov eax, dword [0xccd758]
mov ecx, dword [0xccd75c]
add eax, 1
adc ecx, 0
mov dword [0xccd758], eax
mov dword [0xccd75c], ecx
mov eax, dword [0xcc2ce0]
mov dword [esp + 0x54], eax
mov ecx, dword [0xcc2ce4]
mov dword [esp + 0x38], ecx
xor edx, edx
jmp 0x416fbc
nop
lea eax, [0xcc3998]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449dd0
add esp, 0x60
ret
mov ebx, dword [esp + 0x34]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jge 0x416ff1
mov dword [esp + 0x34], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x4c], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.00402370
mov eax, dword [0xcc9178]
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x416fad
jmp 0x4172f5
call fcn.00418d70
lea eax, [0x95b600]
mov dword [esp], eax
call fcn.00464290
mov eax, dword [0xce91a8]
mov dword [0xcc39d0], eax
mov dword [0xcc39d4], eax
mov ecx, dword [0xce91c4]
cmp ecx, eax
jge 0x417026
mov dword [0xcc39d0], ecx
lea eax, [0xcea210]
mov dword [esp], eax
call fcn.004025e0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0xcc3a0c], eax
mov dword [0xcc3a08], ecx
mov dword [0xcc39f8], 0
mov dword [0xcc39fc], 0
mov eax, dword [esp + 0x28]
mov dword [0xcc39a8], eax
call fcn.004666f0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [0xcc39dc], eax
mov dword [0xcc39d8], ecx
mov dword [0xcc3a04], eax
mov dword [0xcc3a00], ecx
movzx eax, byte [0xccd728]
test al, al
je 0x4170e7
nop
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00455fa0
lea eax, [0x95b6dc]
mov dword [esp], eax
call fcn.00464290
lea eax, [0x95b604]
mov dword [esp], eax
call fcn.00464290
call fcn.00419d50
nop
lea eax, [0xcc39cc]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004024e0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [0xce91a8]
lea ebx, [0xcea1c0]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
call fcn.0041ef10
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [0xce98a0]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.0041a340
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41719b
mov byte [esp], 0
call fcn.00445b90
lea eax, [0xce91a4]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004025b0
mov eax, dword [0xce91a4]
cmp eax, 1
jne 0x4171c3
mov eax, 1
jmp 0x4171c9
cmp eax, 2
sete al
mov byte [0xce9654], al
test al, al
je 0x4171da
mov eax, 1
jmp 0x4171e1
movzx eax, byte [0xce9655]
mov byte [0xce9650], al
nop
mov dword [0xcc3958], 0xffffffff
mov dword [0xcc3964], 0xffffffff
call fcn.0041b0c0
call fcn.0041edc0
lea eax, [0xce919c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004025b0
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x7c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [0x4173c0]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
mov dword [esp], ecx
call fcn.00464290
lea eax, [0xc87c4c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449dd0
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4172bf
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4172b7
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x4172c5
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x4172c5
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4172d5
lea eax, [0x95b614]
mov dword [esp], eax
call fcn.00464230
nop
lea eax, [0xcc3998]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449dd0
add esp, 0x60
ret
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
call fcn.00438ed0
lea eax, [0x932f39]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.004397d0
mov eax, dword [esp + 0x2c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.004395d0
lea eax, [0x932085]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.004397d0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00439450
lea eax, [0x9339b6]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.004397d0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00439450
call fcn.004390f0
call fcn.00438f40
lea eax, [0x938932]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00437170
nop
call fcn.004643a0
jmp fcn.00416d40