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

Disassembly:
mov ecx, dword [0x85d738]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x414456
sub esp, 0x4c
mov eax, dword [0x85d738]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x7c]
mov ecx, dword [0x85d738]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x18]
cmp dword [eax], ecx
je 0x413f67
mov edx, dword [eax + 0x7c]
cmp edx, 1
jg 0x413f67
mov ebx, dword [eax + 0x78]
test ebx, ebx
jne 0x413f67
lea ebx, [edx - 1]
nop
mov dword [eax + 0x7c], ebx
cmp edx, 1
jne 0x413f8f
movzx eax, byte [ecx + 0x65]
test al, al
je 0x413f8f
mov dword [ecx + 8], 0xfffffade
jmp 0x413f8f
mov edx, dword [eax + 0x7c]
lea ebx, [edx - 1]
nop
mov dword [eax + 0x7c], ebx
cmp edx, 1
jne 0x413f85
movzx eax, byte [ecx + 0x65]
test al, al
je 0x413f85
mov dword [ecx + 8], 0xfffffade
add esp, 0x4c
ret
inc dword [0x83834c]
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
call fcn.00413d90
movzx eax, byte [esp + 0x10]
test al, al
jne 0x413fc0
xor eax, eax
jmp 0x413fcc
call fcn.0041fc10
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x413f89
nop
lea eax, [0x838618]
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.0043f1f0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
call fcn.00413d90
movzx eax, byte [esp + 0x10]
test al, al
je 0x414142
mov eax, dword [0x85da7c]
cmp eax, 1
jne 0x41403c
mov eax, 1
jmp 0x41404a
cmp eax, 2
jne 0x414048
mov eax, 2
jmp 0x41404a
xor eax, eax
mov dword [esp + 0x20], eax
lea ecx, [0x491088]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.0043f1f0
nop
lea eax, [0x491084]
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.0043f1f0
mov eax, dword [esp + 0x50]
cmp eax, 2
sete cl
mov byte [0x83862c], cl
movzx ecx, byte [0x841cc4]
test cl, cl
je 0x41412a
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x841d04]
mov ecx, dword [0x841d08]
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.00449110
mov eax, dword [0x841d04]
mov ecx, dword [0x841d08]
add eax, 1
mov dword [0x841d04], eax
adc ecx, 0
mov dword [0x841d08], ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [0x838270]
mov dword [esp + 0x40], ecx
mov edx, dword [0x838274]
mov dword [esp + 0x28], edx
xor ebx, ebx
jmp 0x414175
nop
lea eax, [0x838618]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043f560
add esp, 0x4c
ret
mov ebp, dword [esp + 0x24]
lea ebx, [ebp + 1]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
cmp ebx, edx
jge 0x4141a3
mov dword [esp + 0x24], ebx
mov eax, dword [ecx + ebx*4]
mov eax, dword [eax + 0x30]
test byte [eax], al
add eax, 0x24c
mov dword [esp], eax
call fcn.00402d60
mov eax, dword [esp + 4]
cmp dword [0x83d6d0], eax
je 0x414162
jmp 0x41443f
call fcn.00415560
lea eax, [0x7c6388]
mov dword [esp], eax
call fcn.004515f0
mov eax, dword [0x85d6f8]
mov dword [0x838650], eax
mov dword [0x838654], eax
mov ecx, dword [0x85d6fc]
cmp ecx, eax
jge 0x4141d8
mov dword [0x838650], ecx
lea eax, [0x85dec8]
mov dword [esp], eax
call fcn.00402fd0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x83868c], eax
mov dword [0x838688], ecx
mov dword [0x838678], 0
mov dword [0x83867c], 0
mov eax, dword [esp + 0x20]
mov dword [0x838628], eax
call fcn.00453800
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov dword [0x83865c], ecx
mov dword [0x838658], eax
mov dword [0x838684], ecx
mov dword [0x838680], eax
lea eax, [0x7c6390]
mov dword [esp], eax
call fcn.004515f0
lea eax, [0x7c6394]
mov dword [esp], eax
call fcn.004515f0
call fcn.004160b0
nop
lea eax, [0x83864c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402ed0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [0x85d6f8]
lea ebx, [0x85de60]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
call fcn.0041a7c0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea edx, [0x85d9a0]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00416670
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4142f8
mov byte [esp], 0
call fcn.0043cdd0
nop
lea eax, [0x85d674]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402fa0
mov eax, dword [0x85d674]
cmp eax, 1
jne 0x414321
mov eax, 1
jmp 0x414327
cmp eax, 2
sete al
mov byte [0x85d834], al
mov byte [0x85d830], al
nop
mov dword [0x8385d8], 0xffffffff
mov dword [0x8385e4], 0xffffffff
call fcn.00417390
call fcn.0041a670
lea eax, [0x85d678]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402fa0
mov eax, dword [0x85d738]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x7c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea ecx, [0x414460]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x44]
mov dword [esp], ecx
call fcn.004515f0
nop
lea eax, [0x491084]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043f560
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x7c]
lea edx, [ecx - 1]
nop
mov ebx, dword [0x85d738]
mov ebx, dword fs:[ebx]
mov ebx, dword [ebx]
mov dword [eax + 0x7c], edx
cmp ecx, 1
jne 0x414408
movzx eax, byte [ebx + 0x65]
test al, al
je 0x414400
mov dword [ebx + 8], 0xfffffade
mov eax, dword [esp + 0x20]
test eax, eax
jmp 0x41440e
mov eax, dword [esp + 0x20]
test eax, eax
jmp 0x41440e
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41441f
nop
lea eax, [0x7c63a0]
mov dword [esp], eax
call fcn.00451590
nop
lea eax, [0x838618]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043f560
add esp, 0x4c
ret
lea eax, [0x7c005e]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00430110
nop
call fcn.004516e0
jmp fcn.00413f00