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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x415b31
sub esp, 0x4c
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 0x415a5a
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x415a5a
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x415a5a
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4155e9
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4155e9
mov dword [eax + 8], 0xfffffade
jmp 0x4155f1
inc dword [0x66ab9c]
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
call fcn.00415450
movzx eax, byte [esp + 0x10]
test al, al
jne 0x415a49
xor eax, eax
test al, al
jne 0x4155eb
nop
lea eax, [0x66b140]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043e5d0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xc], ecx
call fcn.00415450
movzx eax, byte [esp + 0x10]
test al, al
je 0x415a29
mov eax, dword [esp + 0x50]
cmp eax, 2
sete al
mov byte [0x66b154], al
mov eax, dword [0x67c03c]
cmp eax, 1
jne 0x415a13
mov eax, 1
mov dword [esp + 0x14], eax
lea ecx, [0x64a118]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043e5d0
movzx eax, byte [0x673ca8]
test al, al
jne 0x4159a2
mov eax, dword [0x66aa78]
mov dword [esp + 0x40], eax
mov ecx, dword [0x66aa7c]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x4156fe
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x415733
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, 0x358
mov dword [esp], ebx
call fcn.00401f70
mov eax, dword [esp + 4]
mov ecx, dword [0x66d8a8]
cmp eax, ecx
je 0x4156ef
jmp 0x415a7c
call fcn.00416ce0
lea eax, [0x567780]
mov dword [esp], eax
call fcn.00454290
mov eax, dword [0x67bdc0]
mov dword [0x66b180], eax
mov dword [0x66b184], eax
mov ecx, dword [0x67bdc8]
cmp eax, ecx
jle 0x415768
mov dword [0x66b180], ecx
lea eax, [0x67f240]
mov dword [esp], eax
call fcn.00402180
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [0x66b1b8], eax
mov dword [0x66b1bc], ecx
mov dword [0x66b1a8], 0
mov dword [0x66b1ac], 0
mov eax, dword [esp + 0x14]
mov dword [0x66b150], eax
call fcn.00456bc0
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [0x66b188], eax
mov dword [0x66b18c], ecx
mov dword [0x66b1b0], eax
mov dword [0x66b1b4], ecx
movzx eax, byte [0x673ca8]
test al, al
jne 0x415954
lea eax, [0x56784c]
mov dword [esp], eax
call fcn.00454290
lea eax, [0x567784]
mov dword [esp], eax
call fcn.00454290
call fcn.00417b70
inc dword [0x66b17c]
lea eax, [0x67c360]
mov dword [esp], eax
call fcn.00413de0
mov eax, dword [0x67dcac]
mov ecx, dword [0x67dca8]
mov dword [0x66b1d0], ecx
mov dword [0x66b1d4], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x415946
nop
lea eax, [0x67bdbc]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402160
mov eax, dword [0x67bdbc]
cmp eax, 1
jne 0x41593b
mov eax, 1
mov byte [0x67bf14], al
test al, al
je 0x41592f
mov eax, 1
mov byte [0x67bf10], al
nop
mov dword [0x66b118], 0xffffffff
mov dword [0x66b124], 0xffffffff
call fcn.00417fd0
call fcn.0041b8f0
lea eax, [0x67bdb0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402160
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [0x67c390], ecx
mov dword [0x67c394], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea eax, [0x451780]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.00454290
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41591e
lea eax, [0x66b140]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043e8e0
add esp, 0x4c
ret
nop
lea eax, [0x567794]
mov dword [esp], eax
call fcn.00454230
jmp 0x4158ff
movzx eax, byte [0x67bf15]
jmp 0x41587a
cmp eax, 2
sete al
jmp 0x415867
mov byte [esp], 0
call fcn.0043ac00
jmp 0x41583c
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.00449820
jmp 0x4157e3
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x673cdc]
mov ecx, dword [0x673cd8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
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.00449820
mov eax, dword [0x673cd8]
add eax, 1
mov ecx, dword [0x673cdc]
mov dword [0x673cd8], eax
adc ecx, 0
mov dword [0x673cdc], ecx
jmp 0x4156d7
cmp eax, 2
jne 0x415a22
mov eax, 2
jmp 0x4156a1
xor eax, eax
jmp 0x4156a1
nop
lea eax, [0x66b140]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043e8e0
add esp, 0x4c
ret
call fcn.0041dac0
cmp dword [esp], 0xffffffff
setne al
jmp 0x415624
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x415a78
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x415a78
mov dword [eax + 8], 0xfffffade
add esp, 0x4c
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.0042f8e0
lea eax, [0x55c003]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00430180
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.0042ffc0
lea eax, [0x55b970]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00430180
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042fe90
lea eax, [0x55c426]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00430180
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042fe90
call fcn.0042fb00
call fcn.0042f950
lea eax, [0x55e6f3]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0042e200
nop
call fcn.004543b0
jmp fcn.00415570