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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41413c
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 0x413b3f
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x413b3f
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x413b3f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x413b67
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x413b67
mov dword [eax + 8], 0xfffffade
jmp 0x413b67
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x413b5d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x413b5d
mov dword [eax + 8], 0xfffffade
add esp, 0x60
ret
inc dword [0x5260bc]
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.00413960
movzx eax, byte [esp + 0x10]
test al, al
jne 0x413b98
xor eax, eax
jmp 0x413ba4
call fcn.004214b0
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x413b61
lea eax, [0x5263b8]
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.00443d40
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.00413960
movzx eax, byte [esp + 0x10]
test al, al
je 0x413d1d
mov eax, dword [0x54aed8]
cmp eax, 1
jne 0x413c13
mov eax, 1
jmp 0x413c21
cmp eax, 2
jne 0x413c1f
mov eax, 2
jmp 0x413c21
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, [0x5152c8]
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.00443d40
lea eax, [0x5152e8]
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.00443d40
movzx eax, byte [esp + 0x23]
mov byte [0x5263cc], al
movzx eax, byte [0x52f1e8]
test al, al
je 0x413d05
nop
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [0x52f218]
mov ecx, dword [0x52f21c]
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.0044eae0
mov eax, dword [0x52f218]
mov ecx, dword [0x52f21c]
add eax, 1
adc ecx, 0
mov dword [0x52f218], eax
mov dword [0x52f21c], ecx
mov eax, dword [0x525fb0]
mov dword [esp + 0x54], eax
mov ecx, dword [0x525fb4]
mov dword [esp + 0x38], ecx
xor edx, edx
jmp 0x413d4c
nop
lea eax, [0x5263b8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00444060
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 0x413d81
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.00401fc0
mov eax, dword [0x52ac38]
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x413d3d
jmp 0x414085
call fcn.00415b00
lea eax, [0x4a0438]
mov dword [esp], eax
call fcn.0045a250
mov eax, dword [0x54abcc]
mov dword [0x5263f0], eax
mov dword [0x5263f4], eax
mov ecx, dword [0x54abe8]
cmp ecx, eax
jge 0x413db6
mov dword [0x5263f0], ecx
lea eax, [0x54b4d0]
mov dword [esp], eax
call fcn.00402210
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x52642c], eax
mov dword [0x526428], ecx
mov dword [0x526418], 0
mov dword [0x52641c], 0
mov eax, dword [esp + 0x28]
mov dword [0x5263c8], eax
call fcn.0045c590
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [0x5263fc], eax
mov dword [0x5263f8], ecx
mov dword [0x526424], eax
mov dword [0x526420], ecx
movzx eax, byte [0x52f1e8]
test al, al
je 0x413e77
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.0044eae0
lea eax, [0x4a04f4]
mov dword [esp], eax
call fcn.0045a250
lea eax, [0x4a043c]
mov dword [esp], eax
call fcn.0045a250
call fcn.00416ae0
nop
lea eax, [0x5263ec]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402130
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [0x54abcc]
lea ebx, [0x54b480]
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.0041bca0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [0x54af20]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.004170d0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x413f2b
mov byte [esp], 0
call fcn.004414d0
lea eax, [0x54abc8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004021f0
mov eax, dword [0x54abc8]
cmp eax, 1
jne 0x413f53
mov eax, 1
jmp 0x413f59
cmp eax, 2
sete al
mov byte [0x54ad64], al
test al, al
je 0x413f6a
mov eax, 1
jmp 0x413f71
movzx eax, byte [0x54ad65]
mov byte [0x54ad60], al
nop
mov dword [0x526378], 0xffffffff
mov dword [0x526384], 0xffffffff
call fcn.00417e50
call fcn.0041bb50
lea eax, [0x54abc0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004021f0
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, [0x414150]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
mov dword [esp], ecx
call fcn.0045a250
lea eax, [0x5152e8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00444060
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 0x41404f
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x414047
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x414055
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x414055
mov eax, dword [esp + 0x28]
test eax, eax
je 0x414065
lea eax, [0x4a044c]
mov dword [esp], eax
call fcn.0045a1f0
nop
lea eax, [0x5263b8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00444060
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.00434b90
lea eax, [0x496c23]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00435490
mov eax, dword [esp + 0x2c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00435290
lea eax, [0x496552]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00435490
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00435110
lea eax, [0x497141]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00435490
mov dword [esp + 4], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00435110
call fcn.00434db0
call fcn.00434c00
lea eax, [0x499674]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.004333e0
nop
call fcn.0045a360
jmp fcn.00413ad0