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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416c13
sub esp, 0x5c
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 0x41663f
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x41663f
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x41663f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x416667
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416667
mov dword [eax + 8], 0xfffffade
jmp 0x416667
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x41665d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x41665d
mov dword [eax + 8], 0xfffffade
add esp, 0x5c
ret
inc dword [0x8f6dcc]
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], ebx
call fcn.00416450
movzx eax, byte [esp + 0x10]
test al, al
jne 0x416698
xor eax, eax
jmp 0x4166a4
call fcn.00424680
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x416661
lea eax, [0x8f7338]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00449780
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], ebx
call fcn.00416450
movzx eax, byte [esp + 0x10]
test al, al
je 0x416805
mov eax, dword [esp + 0x60]
cmp eax, 2
sete cl
mov byte [0x8f734c], cl
mov ecx, dword [0x91e2d8]
cmp ecx, 1
jne 0x41671e
mov ecx, 1
jmp 0x41672c
cmp ecx, 2
jne 0x41672a
mov ecx, 2
jmp 0x41672c
xor ecx, ecx
mov dword [esp + 0x20], ecx
lea eax, [0x8bce6c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00449780
lea eax, [0x8bce8c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00449780
movzx eax, byte [0x902348]
test al, al
je 0x4167ed
nop
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [0x902378]
mov ecx, dword [0x90237c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00455770
mov eax, dword [0x902378]
add eax, 1
mov ecx, dword [0x90237c]
mov dword [0x902378], eax
adc ecx, 0
mov dword [0x90237c], ecx
mov eax, dword [0x8f6948]
mov dword [esp + 0x50], eax
mov ecx, dword [0x8f694c]
mov dword [esp + 0x34], ecx
xor edx, edx
jmp 0x416834
nop
lea eax, [0x8f7338]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449a90
add esp, 0x5c
ret
mov ebx, dword [esp + 0x30]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
cmp edx, ecx
jge 0x416869
mov dword [esp + 0x30], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x48], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.00401f80
mov eax, dword [esp + 4]
mov ecx, dword [0x8fdda0]
cmp ecx, eax
je 0x416825
jmp 0x416b5c
call fcn.00418640
lea eax, [0x6ee7d8]
mov dword [esp], eax
call fcn.00461790
mov eax, dword [0x91ddd4]
mov dword [0x8f7378], eax
mov dword [0x8f737c], eax
mov ecx, dword [0x91ddf0]
cmp ecx, eax
jge 0x41689e
mov dword [0x8f7378], ecx
lea eax, [0x91ecc0]
mov dword [esp], eax
call fcn.004021c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x8f73b4], eax
mov dword [0x8f73b0], ecx
mov dword [0x8f73a0], 0
mov dword [0x8f73a4], 0
mov eax, dword [esp + 0x20]
mov dword [0x8f7348], eax
call fcn.00463bb0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [0x8f7384], eax
mov dword [0x8f7380], ecx
mov dword [0x8f73ac], eax
mov dword [0x8f73a8], ecx
movzx eax, byte [0x902348]
test al, al
je 0x41695f
nop
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00455770
lea eax, [0x6ee8a8]
mov dword [esp], eax
call fcn.00461790
lea eax, [0x6ee7dc]
mov dword [esp], eax
call fcn.00461790
call fcn.004196d0
inc dword [0x8f7374]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [0x91ddd4]
lea ebx, [0x91ec40]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
call fcn.0041e990
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea edx, [0x91e380]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00419d10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x416a02
mov byte [esp], 0
call fcn.004459d0
lea eax, [0x91ddd0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402190
mov eax, dword [0x91ddd0]
cmp eax, 1
jne 0x416a2a
mov eax, 1
jmp 0x416a30
cmp eax, 2
sete al
mov byte [0x91e104], al
test al, al
je 0x416a41
mov eax, 1
jmp 0x416a48
movzx eax, byte [0x91e105]
mov byte [0x91e100], al
nop
mov dword [0x8f72f8], 0xffffffff
mov dword [0x8f7304], 0xffffffff
call fcn.0041aaa0
call fcn.0041e810
lea eax, [0x91ddc8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402190
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 + 0x4c], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea ecx, [0x416c20]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x54]
mov dword [esp], ecx
call fcn.00461790
lea eax, [0x8bce8c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449a90
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x416b26
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416b1e
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x20]
test eax, eax
jmp 0x416b2c
mov eax, dword [esp + 0x20]
test eax, eax
jmp 0x416b2c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x416b3c
lea eax, [0x6ee7ec]
mov dword [esp], eax
call fcn.00461730
nop
lea eax, [0x8f7338]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449a90
add esp, 0x5c
ret
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
call fcn.00438f80
lea eax, [0x6cf401]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00439860
mov eax, dword [esp + 0x28]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00439660
lea eax, [0x6ce3e8]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00439860
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00439500
lea eax, [0x6d0068]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00439860
mov dword [esp + 4], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00439500
call fcn.004391a0
call fcn.00438ff0
lea eax, [0x6d5452]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00437450
nop
call fcn.004618a0
jmp fcn.004165d0