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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4142b2
sub esp, 0x40
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 0x413daf
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x413daf
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x413daf
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x413dd7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x413dd7
mov dword [eax + 8], 0xfffffade
jmp 0x413dd7
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x413dcd
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x413dcd
mov dword [eax + 8], 0xfffffade
add esp, 0x40
ret
inc dword [0x7c108c]
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0xc], ebx
call fcn.00413be0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x413e08
xor eax, eax
jmp 0x413e14
call fcn.0041e320
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x413dd1
lea eax, [0x7c1358]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043db20
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xc], ecx
call fcn.00413be0
movzx eax, byte [esp + 0x10]
test al, al
je 0x413f75
mov eax, dword [esp + 0x44]
cmp eax, 2
sete al
mov byte [0x7c136c], al
mov eax, dword [0x7e7558]
cmp eax, 1
jne 0x413e8e
mov eax, 1
jmp 0x413e9c
cmp eax, 2
jne 0x413e9a
mov eax, 2
jmp 0x413e9c
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x530098]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043db20
lea eax, [0x5300b8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043db20
movzx eax, byte [0x7cb7c8]
test al, al
je 0x413f5d
nop
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov eax, dword [0x7cb7f8]
mov ecx, dword [0x7cb7fc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00447830
mov eax, dword [0x7cb7f8]
add eax, 1
mov ecx, dword [0x7cb7fc]
mov dword [0x7cb7f8], eax
adc ecx, 0
mov dword [0x7cb7fc], ecx
mov eax, dword [0x7c0db0]
mov dword [esp + 0x34], eax
mov ecx, dword [0x7c0db4]
mov dword [esp + 0x1c], ecx
xor edx, edx
jmp 0x413fa4
nop
lea eax, [0x7c1358]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043de30
add esp, 0x40
ret
mov ebx, dword [esp + 0x18]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
cmp edx, ecx
jge 0x413fd3
mov dword [esp + 0x18], edx
mov ecx, dword [eax + edx*4]
mov ecx, dword [ecx + 0x30]
test byte [ecx], al
add ecx, 0x24c
mov dword [esp], ecx
call fcn.00402180
mov eax, dword [esp + 4]
cmp dword [0x7c7210], eax
je 0x413f95
jmp 0x41429b
call fcn.00415780
lea eax, [0x6f67d4]
mov dword [esp], eax
call fcn.00450370
mov eax, dword [0x7e71bc]
mov dword [0x7c1398], eax
mov dword [0x7c139c], eax
mov ecx, dword [0x7e71d4]
cmp ecx, eax
jge 0x414008
mov dword [0x7c1398], ecx
lea eax, [0x7e7cd0]
mov dword [esp], eax
call fcn.004023c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x7c13d4], eax
mov dword [0x7c13d0], ecx
mov dword [0x7c13c0], 0
mov dword [0x7c13c4], 0
mov eax, dword [esp + 0x14]
mov dword [0x7c1368], eax
call fcn.00452720
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov dword [0x7c13a4], eax
mov dword [0x7c13a0], ecx
mov dword [0x7c13cc], eax
mov dword [0x7c13c8], ecx
movzx eax, byte [0x7cb7c8]
test al, al
je 0x4140c9
nop
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00447830
lea eax, [0x6f6898]
mov dword [esp], eax
call fcn.00450370
lea eax, [0x6f67d8]
mov dword [esp], eax
call fcn.00450370
call fcn.00416370
inc dword [0x7c1394]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [0x7e71bc]
lea ebx, [0x7e7c60]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
call fcn.00419d80
mov eax, dword [0x7e7cc0]
mov ecx, dword [0x7e7cc4]
mov dword [0x7c13e8], eax
mov dword [0x7c13ec], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414141
mov byte [esp], 0
call fcn.0043a340
lea eax, [0x7e71b8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402390
mov eax, dword [0x7e71b8]
cmp eax, 1
jne 0x414169
mov eax, 1
jmp 0x41416f
cmp eax, 2
sete al
mov byte [0x7e73a4], al
test al, al
je 0x414180
mov eax, 1
jmp 0x414187
movzx eax, byte [0x7e73a5]
mov byte [0x7e73a0], al
nop
mov dword [0x7c1318], 0xffffffff
mov dword [0x7c1324], 0xffffffff
call fcn.00416960
call fcn.00419c90
lea eax, [0x7e71b0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402390
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 + 0x30], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
lea ecx, [0x4142c0]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
mov dword [esp], ecx
call fcn.00450370
lea eax, [0x5300b8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043de30
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x414265
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x41425d
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x41426b
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x41426b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41427b
lea eax, [0x6f67e8]
mov dword [esp], eax
call fcn.00450310
nop
lea eax, [0x7c1358]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043de30
add esp, 0x40
ret
lea eax, [0x59007f]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0042e5b0
nop
call fcn.00450480
jmp fcn.00413d40