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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4140b7
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 0x413b0f
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x413b0f
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x413b0f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x413b37
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x413b37
mov dword [eax + 8], 0xfffffade
jmp 0x413b37
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x413b2d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x413b2d
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0x55876c]
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.00413970
movzx eax, byte [esp + 0x10]
test al, al
jne 0x413b68
xor eax, eax
jmp 0x413b74
call fcn.0041e700
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x413b31
nop
lea eax, [0x57f36c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00440b40
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.00413970
movzx eax, byte [esp + 0x10]
test al, al
je 0x413cd7
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x57f380], al
mov eax, dword [0x57ebd8]
cmp eax, 1
jne 0x413bef
mov eax, 1
jmp 0x413bfd
cmp eax, 2
jne 0x413bfb
mov eax, 2
jmp 0x413bfd
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x47c05c]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00440b40
nop
lea eax, [0x47c07c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00440b40
movzx eax, byte [0x562f88]
test al, al
je 0x413cbf
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x562fb8]
mov ecx, dword [0x562fbc]
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.0044aaf0
mov eax, dword [0x562fb8]
add eax, 1
mov ecx, dword [0x562fbc]
mov dword [0x562fb8], eax
adc ecx, 0
mov dword [0x562fbc], ecx
mov eax, dword [0x558690]
mov dword [esp + 0x44], eax
mov ecx, dword [0x558694]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x413d06
nop
lea eax, [0x57f36c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00440e50
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 0x413d3b
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.00402380
mov eax, dword [esp + 4]
mov ecx, dword [0x55e9ec]
cmp ecx, eax
je 0x413cf7
jmp 0x414000
call fcn.00415620
lea eax, [0x4a8e6c]
mov dword [esp], eax
call fcn.004557b0
mov eax, dword [0x57e954]
mov dword [0x57f3ac], eax
mov dword [0x57f3b0], eax
mov ecx, dword [0x57e970]
cmp ecx, eax
jge 0x413d70
mov dword [0x57f3ac], ecx
lea eax, [0x57f0f0]
mov dword [esp], eax
call fcn.00402580
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x57f3e8], eax
mov dword [0x57f3e4], ecx
mov dword [0x57f3d4], 0
mov dword [0x57f3d8], 0
mov eax, dword [esp + 0x14]
mov dword [0x57f37c], eax
call fcn.00457bb0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x57f3b8], eax
mov dword [0x57f3b4], ecx
mov dword [0x57f3e0], eax
mov dword [0x57f3dc], ecx
movzx eax, byte [0x562f88]
test al, al
je 0x413e31
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.0044aaf0
lea eax, [0x4a8f1c]
mov dword [esp], eax
call fcn.004557b0
lea eax, [0x4a8e70]
mov dword [esp], eax
call fcn.004557b0
call fcn.00416610
inc dword [0x57f3a8]
lea eax, [0x57f0c0]
mov dword [esp], eax
call fcn.0041a750
mov eax, dword [0x57f0e0]
mov ecx, dword [0x57f0e4]
mov dword [0x57f3fc], eax
mov dword [0x57f400], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413e8f
mov byte [esp], 0
call fcn.0043e560
nop
lea eax, [0x57e950]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402560
mov eax, dword [0x57e950]
cmp eax, 1
jne 0x413eb8
mov eax, 1
jmp 0x413ebe
cmp eax, 2
sete al
mov byte [0x57eab4], al
test al, al
je 0x413ecf
mov eax, 1
jmp 0x413ed6
movzx eax, byte [0x57eab5]
mov byte [0x57eab0], al
nop
mov dword [0x57f338], 0xffffffff
mov dword [0x57f344], 0xffffffff
call fcn.00416c20
call fcn.0041a5b0
lea eax, [0x57e948]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402560
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [0x57f138], eax
mov dword [0x57f13c], 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, [0x4140d0]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.004557b0
nop
lea eax, [0x47c07c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00440e50
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 0x413fc9
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x413fc1
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x413fcf
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x413fcf
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413fe0
nop
lea eax, [0x4a8e7c]
mov dword [esp], eax
call fcn.00455750
nop
lea eax, [0x57f36c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00440e50
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.004323b0
lea eax, [0x4a10ff]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00432c90
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00432a90
lea eax, [0x4a0b48]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00432c90
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00432930
lea eax, [0x4a14cf]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00432c90
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00432930
call fcn.004325d0
call fcn.00432420
lea eax, [0x4a314e]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00430cf0
nop
call fcn.004558c0
jmp fcn.00413aa0