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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4168f7
sub esp, 0x50
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 0x41634f
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x41634f
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x41634f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x416377
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416377
mov dword [eax + 8], 0xfffffade
jmp 0x416377
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x41636d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x41636d
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0x7f00cc]
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xc], ebx
call fcn.004161b0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4163a8
xor eax, eax
jmp 0x4163b4
call fcn.00420f40
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x416371
nop
lea eax, [0x8178ac]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00445800
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
call fcn.004161b0
movzx eax, byte [esp + 0x10]
test al, al
je 0x416517
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x8178c0], al
mov eax, dword [0x816f78]
cmp eax, 1
jne 0x41642f
mov eax, 1
jmp 0x41643d
cmp eax, 2
jne 0x41643b
mov eax, 2
jmp 0x41643d
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x7b9130]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00445800
nop
lea eax, [0x7b9150]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00445800
movzx eax, byte [0x7fb168]
test al, al
je 0x4164ff
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x7fb198]
mov ecx, dword [0x7fb19c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
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.00450a60
mov eax, dword [0x7fb198]
add eax, 1
mov ecx, dword [0x7fb19c]
mov dword [0x7fb198], eax
adc ecx, 0
mov dword [0x7fb19c], ecx
mov eax, dword [0x7efdb8]
mov dword [esp + 0x44], eax
mov ecx, dword [0x7efdbc]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x416546
nop
lea eax, [0x8178ac]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00445b10
add esp, 0x50
ret
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x41657b
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, 0x24c
mov dword [esp], ebx
call fcn.00401eb0
mov eax, dword [esp + 4]
mov ecx, dword [0x7f6bcc]
cmp ecx, eax
je 0x416537
jmp 0x416840
call fcn.00417e60
lea eax, [0x65654c]
mov dword [esp], eax
call fcn.0045d080
mov eax, dword [0x816b74]
mov dword [0x8178ec], eax
mov dword [0x8178f0], eax
mov ecx, dword [0x816b90]
cmp ecx, eax
jge 0x4165b0
mov dword [0x8178ec], ecx
lea eax, [0x817530]
mov dword [esp], eax
call fcn.004020c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x817928], eax
mov dword [0x817924], ecx
mov dword [0x817914], 0
mov dword [0x817918], 0
mov eax, dword [esp + 0x14]
mov dword [0x8178bc], eax
call fcn.0045f520
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x8178f8], eax
mov dword [0x8178f4], ecx
mov dword [0x817920], eax
mov dword [0x81791c], ecx
movzx eax, byte [0x7fb168]
test al, al
je 0x416671
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.00450a60
lea eax, [0x656628]
mov dword [esp], eax
call fcn.0045d080
lea eax, [0x656550]
mov dword [esp], eax
call fcn.0045d080
call fcn.00418e50
inc dword [0x8178e8]
lea eax, [0x817500]
mov dword [esp], eax
call fcn.0041cf90
mov eax, dword [0x817520]
mov ecx, dword [0x817524]
mov dword [0x81793c], eax
mov dword [0x817940], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4166cf
mov byte [esp], 0
call fcn.00441b50
nop
lea eax, [0x816b70]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402090
mov eax, dword [0x816b70]
cmp eax, 1
jne 0x4166f8
mov eax, 1
jmp 0x4166fe
cmp eax, 2
sete al
mov byte [0x816df4], al
test al, al
je 0x41670f
mov eax, 1
jmp 0x416716
movzx eax, byte [0x816df5]
mov byte [0x816df0], al
nop
mov dword [0x817878], 0xffffffff
mov dword [0x817884], 0xffffffff
call fcn.00419460
call fcn.0041cdf0
lea eax, [0x816b68]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402090
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [0x817578], eax
mov dword [0x81757c], ecx
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x416910]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.0045d080
nop
lea eax, [0x7b9150]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00445b10
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x416809
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416801
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x41680f
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x41680f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x416820
nop
lea eax, [0x656560]
mov dword [esp], eax
call fcn.0045d020
nop
lea eax, [0x8178ac]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00445b10
add esp, 0x50
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.00435630
lea eax, [0x63e28c]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00435f10
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00435d10
lea eax, [0x63d8f2]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00435f10
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00435bb0
lea eax, [0x63e9ad]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00435f10
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00435bb0
call fcn.00435850
call fcn.004356a0
lea eax, [0x641deb]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00433c30
nop
call fcn.0045d190
jmp fcn.004162e0