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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x415791
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 0x4156ba
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x4156ba
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x4156ba
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x415249
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x415249
mov dword [eax + 8], 0xfffffade
jmp 0x415251
inc dword [0x601fbc]
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.004150b0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4156a9
xor eax, eax
test al, al
jne 0x41524b
nop
lea eax, [0x6025c0]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043e360
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.004150b0
movzx eax, byte [esp + 0x10]
test al, al
je 0x415689
mov eax, dword [esp + 0x50]
cmp eax, 2
sete al
mov byte [0x6025d4], al
mov eax, dword [0x61347c]
cmp eax, 1
jne 0x415673
mov eax, 1
mov dword [esp + 0x14], eax
lea ecx, [0x5ea114]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043e360
movzx eax, byte [0x60b128]
test al, al
jne 0x415602
mov eax, dword [0x601eb0]
mov dword [esp + 0x40], eax
mov ecx, dword [0x601eb4]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x41535e
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x415393
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 [0x604d28]
cmp eax, ecx
je 0x41534f
jmp 0x4156dc
call fcn.00416940
lea eax, [0x527634]
mov dword [esp], eax
call fcn.004545c0
mov eax, dword [0x61323c]
mov dword [0x602600], eax
mov dword [0x602604], eax
mov ecx, dword [0x613244]
cmp eax, ecx
jle 0x4153c8
mov dword [0x602600], ecx
lea eax, [0x615e80]
mov dword [esp], eax
call fcn.00402180
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [0x602638], eax
mov dword [0x60263c], ecx
mov dword [0x602628], 0
mov dword [0x60262c], 0
mov eax, dword [esp + 0x14]
mov dword [0x6025d0], eax
call fcn.00456f10
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [0x602608], eax
mov dword [0x60260c], ecx
mov dword [0x602630], eax
mov dword [0x602634], ecx
movzx eax, byte [0x60b128]
test al, al
jne 0x4155b4
lea eax, [0x527708]
mov dword [esp], eax
call fcn.004545c0
lea eax, [0x527638]
mov dword [esp], eax
call fcn.004545c0
call fcn.004177d0
inc dword [0x6025fc]
lea eax, [0x6137a0]
mov dword [esp], eax
call fcn.00413a40
mov eax, dword [0x6148ec]
mov ecx, dword [0x6148e8]
mov dword [0x602650], ecx
mov dword [0x602654], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4155a6
nop
lea eax, [0x613238]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402160
mov eax, dword [0x613238]
cmp eax, 1
jne 0x41559b
mov eax, 1
mov byte [0x613374], al
test al, al
je 0x41558f
mov eax, 1
mov byte [0x613370], al
nop
mov dword [0x602598], 0xffffffff
mov dword [0x6025a4], 0xffffffff
call fcn.00417c30
call fcn.0041b550
lea eax, [0x61322c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402160
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [0x6137d0], ecx
mov dword [0x6137d4], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea eax, [0x451ab0]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.004545c0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41557e
lea eax, [0x6025c0]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043e670
add esp, 0x4c
ret
nop
lea eax, [0x52764c]
mov dword [esp], eax
call fcn.00454560
jmp 0x41555f
movzx eax, byte [0x613375]
jmp 0x4154da
cmp eax, 2
sete al
jmp 0x4154c7
mov byte [esp], 0
call fcn.0043a990
jmp 0x41549c
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.00449b50
jmp 0x415443
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x60b15c]
mov ecx, dword [0x60b158]
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.00449b50
mov eax, dword [0x60b158]
add eax, 1
mov ecx, dword [0x60b15c]
mov dword [0x60b158], eax
adc ecx, 0
mov dword [0x60b15c], ecx
jmp 0x415337
cmp eax, 2
jne 0x415682
mov eax, 2
jmp 0x415301
xor eax, eax
jmp 0x415301
nop
lea eax, [0x6025c0]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043e670
add esp, 0x4c
ret
call fcn.0041d6e0
cmp dword [esp], 0xffffffff
setne al
jmp 0x415284
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4156d8
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4156d8
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.0042f670
lea eax, [0x51ce1c]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.0042ff10
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.0042fd50
lea eax, [0x51c7d2]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.0042ff10
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042fc20
lea eax, [0x51d210]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.0042ff10
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042fc20
call fcn.0042f890
call fcn.0042f6e0
lea eax, [0x51f293]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0042dee0
nop
call fcn.004546e0
jmp fcn.004151d0