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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4167f8
sub esp, 0x50
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 0x41624f
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x41624f
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x41624f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x416277
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416277
mov dword [eax + 8], 0xfffffade
jmp 0x416277
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x41626d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x41626d
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0x86e03c]
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.00416080
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4162a8
xor eax, eax
jmp 0x4162b4
call fcn.00422450
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x416271
lea eax, [0x86e4d8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00446740
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.00416080
movzx eax, byte [esp + 0x10]
test al, al
je 0x416415
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x86e4ec], al
mov eax, dword [0x894fb8]
cmp eax, 1
jne 0x41632e
mov eax, 1
jmp 0x41633c
cmp eax, 2
jne 0x41633a
mov eax, 2
jmp 0x41633c
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x837138]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00446740
lea eax, [0x837158]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00446740
movzx eax, byte [0x879168]
test al, al
je 0x4163fd
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x879198]
mov ecx, dword [0x87919c]
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.00451e90
mov eax, dword [0x879198]
add eax, 1
mov ecx, dword [0x87919c]
mov dword [0x879198], eax
adc ecx, 0
mov dword [0x87919c], ecx
mov eax, dword [0x86dc60]
mov dword [esp + 0x44], eax
mov ecx, dword [0x86dc64]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x416444
nop
lea eax, [0x86e4d8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00446a50
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 0x416479
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.00401be0
mov eax, dword [esp + 4]
mov ecx, dword [0x874bb0]
cmp ecx, eax
je 0x416435
jmp 0x416741
call fcn.004181b0
lea eax, [0x6ac9d0]
mov dword [esp], eax
call fcn.0045e310
mov eax, dword [0x894b74]
mov dword [0x86e518], eax
mov dword [0x86e51c], eax
mov ecx, dword [0x894b90]
cmp ecx, eax
jge 0x4164ae
mov dword [0x86e518], ecx
lea eax, [0x895730]
mov dword [esp], eax
call fcn.00401e20
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x86e554], eax
mov dword [0x86e550], ecx
mov dword [0x86e540], 0
mov dword [0x86e544], 0
mov eax, dword [esp + 0x14]
mov dword [0x86e4e8], eax
call fcn.00460740
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x86e524], eax
mov dword [0x86e520], ecx
mov dword [0x86e54c], eax
mov dword [0x86e548], ecx
movzx eax, byte [0x879168]
test al, al
je 0x41656f
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.00451e90
lea eax, [0x6aca9c]
mov dword [esp], eax
call fcn.0045e310
lea eax, [0x6ac9d4]
mov dword [esp], eax
call fcn.0045e310
call fcn.004191c0
inc dword [0x86e514]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [0x894b74]
lea ebx, [0x8956c0]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
call fcn.0041d4f0
mov eax, dword [0x895720]
mov ecx, dword [0x895724]
mov dword [0x86e568], eax
mov dword [0x86e56c], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4165e7
mov byte [esp], 0
call fcn.00442b00
lea eax, [0x894b70]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401df0
mov eax, dword [0x894b70]
cmp eax, 1
jne 0x41660f
mov eax, 1
jmp 0x416615
cmp eax, 2
sete al
mov byte [0x894e14], al
test al, al
je 0x416626
mov eax, 1
jmp 0x41662d
movzx eax, byte [0x894e15]
mov byte [0x894e10], al
nop
mov dword [0x86e498], 0xffffffff
mov dword [0x86e4a4], 0xffffffff
call fcn.004197b0
call fcn.0041d400
lea eax, [0x894b68]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401df0
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 + 0x40], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x416810]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.0045e310
lea eax, [0x837158]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00446a50
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x41670b
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416703
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x416711
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x416711
mov eax, dword [esp + 0x14]
test eax, eax
je 0x416721
lea eax, [0x6ac9e4]
mov dword [esp], eax
call fcn.0045e2b0
nop
lea eax, [0x86e4d8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00446a50
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.00436440
lea eax, [0x692b80]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00436d20
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00436b20
lea eax, [0x692131]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00436d20
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004369c0
lea eax, [0x6933fc]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00436d20
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004369c0
call fcn.00436660
call fcn.004364b0
lea eax, [0x696d40]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00434910
nop
call fcn.0045e420
jmp fcn.004161e0