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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x415e78
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 0x4158cf
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x4158cf
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x4158cf
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4158f7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4158f7
mov dword [eax + 8], 0xfffffade
jmp 0x4158f7
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4158ed
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4158ed
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0x60051c]
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.00415700
movzx eax, byte [esp + 0x10]
test al, al
jne 0x415928
xor eax, eax
jmp 0x415934
call fcn.00422510
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x4158f1
lea eax, [0x600878]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00446990
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.00415700
movzx eax, byte [esp + 0x10]
test al, al
je 0x415a95
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x60088c], al
mov eax, dword [0x626718]
cmp eax, 1
jne 0x4159ae
mov eax, 1
jmp 0x4159bc
cmp eax, 2
jne 0x4159ba
mov eax, 2
jmp 0x4159bc
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x5e62ec]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00446990
lea eax, [0x5e630c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00446990
movzx eax, byte [0x60a9c8]
test al, al
je 0x415a7d
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x60a9f8]
mov ecx, dword [0x60a9fc]
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.00454470
mov eax, dword [0x60a9f8]
add eax, 1
mov ecx, dword [0x60a9fc]
mov dword [0x60a9f8], eax
adc ecx, 0
mov dword [0x60a9fc], ecx
mov eax, dword [0x600388]
mov dword [esp + 0x44], eax
mov ecx, dword [0x60038c]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x415ac4
nop
lea eax, [0x600878]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00446ca0
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 0x415af9
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.00401c10
mov eax, dword [esp + 4]
mov ecx, dword [0x606410]
cmp ecx, eax
je 0x415ab5
jmp 0x415dc1
call fcn.00417890
lea eax, [0x52af8c]
mov dword [esp], eax
call fcn.0045fbb0
mov eax, dword [0x6263b8]
mov dword [0x6008b8], eax
mov dword [0x6008bc], eax
mov ecx, dword [0x6263d4]
cmp ecx, eax
jge 0x415b2e
mov dword [0x6008b8], ecx
lea eax, [0x626c50]
mov dword [esp], eax
call fcn.00401e50
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x6008f4], eax
mov dword [0x6008f0], ecx
mov dword [0x6008e0], 0
mov dword [0x6008e4], 0
mov eax, dword [esp + 0x14]
mov dword [0x600888], eax
call fcn.00461eb0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x6008c4], eax
mov dword [0x6008c0], ecx
mov dword [0x6008ec], eax
mov dword [0x6008e8], ecx
movzx eax, byte [0x60a9c8]
test al, al
je 0x415bef
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.00454470
lea eax, [0x52b058]
mov dword [esp], eax
call fcn.0045fbb0
lea eax, [0x52af90]
mov dword [esp], eax
call fcn.0045fbb0
call fcn.004188b0
inc dword [0x6008b4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [0x6263b8]
lea ebx, [0x626be0]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
call fcn.0041cbd0
mov eax, dword [0x626c40]
mov ecx, dword [0x626c44]
mov dword [0x600908], eax
mov dword [0x60090c], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415c67
mov byte [esp], 0
call fcn.00442bf0
lea eax, [0x6263b4]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401e20
mov eax, dword [0x6263b4]
cmp eax, 1
jne 0x415c8f
mov eax, 1
jmp 0x415c95
cmp eax, 2
sete al
mov byte [0x6265b4], al
test al, al
je 0x415ca6
mov eax, 1
jmp 0x415cad
movzx eax, byte [0x6265b5]
mov byte [0x6265b0], al
nop
mov dword [0x600838], 0xffffffff
mov dword [0x600844], 0xffffffff
call fcn.00418ea0
call fcn.0041cae0
lea eax, [0x6263ac]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401e20
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, [0x415e90]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.0045fbb0
lea eax, [0x5e630c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00446ca0
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 0x415d8b
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x415d83
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x415d91
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x415d91
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415da1
lea eax, [0x52afa0]
mov dword [esp], eax
call fcn.0045fb50
nop
lea eax, [0x600878]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00446ca0
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.00436280
lea eax, [0x520a11]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00436eb0
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00436cb0
lea eax, [0x5202e2]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00436eb0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00436b50
lea eax, [0x520ee9]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00436eb0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00436b50
call fcn.004364a0
call fcn.004362f0
lea eax, [0x523312]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00434b80
nop
call fcn.0045fcc0
jmp fcn.00415860