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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4165bc
sub esp, 0x60
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 0x415fbf
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x415fbf
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x415fbf
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x415fe7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x415fe7
mov dword [eax + 8], 0xfffffade
jmp 0x415fe7
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x415fdd
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x415fdd
mov dword [eax + 8], 0xfffffade
add esp, 0x60
ret
inc dword [0x86e76c]
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
call fcn.00415de0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x416018
xor eax, eax
jmp 0x416024
call fcn.00423930
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x415fe1
lea eax, [0x86ebd8]
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.00448b50
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
call fcn.00415de0
movzx eax, byte [esp + 0x10]
test al, al
je 0x41619d
mov eax, dword [0x893e78]
cmp eax, 1
jne 0x416093
mov eax, 1
jmp 0x4160a1
cmp eax, 2
jne 0x41609f
mov eax, 2
jmp 0x4160a1
xor eax, eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x64]
cmp ecx, 2
sete dl
mov byte [esp + 0x23], dl
lea ebx, [0x8388a0]
mov dword [esp], ebx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.00448b50
lea eax, [0x8388c0]
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.00448b50
movzx eax, byte [esp + 0x23]
mov byte [0x86ebec], al
movzx eax, byte [0x877f28]
test al, al
je 0x416185
nop
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [0x877f58]
mov ecx, dword [0x877f5c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00454f90
mov eax, dword [0x877f58]
mov ecx, dword [0x877f5c]
add eax, 1
adc ecx, 0
mov dword [0x877f58], eax
mov dword [0x877f5c], ecx
mov eax, dword [0x86e410]
mov dword [esp + 0x54], eax
mov ecx, dword [0x86e414]
mov dword [esp + 0x38], ecx
xor edx, edx
jmp 0x4161cc
nop
lea eax, [0x86ebd8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00448e70
add esp, 0x60
ret
mov ebx, dword [esp + 0x34]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jge 0x416201
mov dword [esp + 0x34], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x4c], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.00401fd0
mov eax, dword [0x873978]
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x4161bd
jmp 0x416505
call fcn.00417f80
lea eax, [0x68886c]
mov dword [esp], eax
call fcn.00462160
mov eax, dword [0x893940]
mov dword [0x86ec10], eax
mov dword [0x86ec14], eax
mov ecx, dword [0x89395c]
cmp ecx, eax
jge 0x416236
mov dword [0x86ec10], ecx
lea eax, [0x8946b0]
mov dword [esp], eax
call fcn.00402240
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x86ec4c], eax
mov dword [0x86ec48], ecx
mov dword [0x86ec38], 0
mov dword [0x86ec3c], 0
mov eax, dword [esp + 0x28]
mov dword [0x86ebe8], eax
call fcn.00464590
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [0x86ec1c], eax
mov dword [0x86ec18], ecx
mov dword [0x86ec44], eax
mov dword [0x86ec40], ecx
movzx eax, byte [0x877f28]
test al, al
je 0x4162f7
nop
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00454f90
lea eax, [0x688944]
mov dword [esp], eax
call fcn.00462160
lea eax, [0x688870]
mov dword [esp], eax
call fcn.00462160
call fcn.00418f60
nop
lea eax, [0x86ec0c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402140
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [0x893940]
lea ebx, [0x894660]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
call fcn.0041e120
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [0x893ec0]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00419550
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4163ab
mov byte [esp], 0
call fcn.00444c30
lea eax, [0x89393c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402210
mov eax, dword [0x89393c]
cmp eax, 1
jne 0x4163d3
mov eax, 1
jmp 0x4163d9
cmp eax, 2
sete al
mov byte [0x893c84], al
test al, al
je 0x4163ea
mov eax, 1
jmp 0x4163f1
movzx eax, byte [0x893c85]
mov byte [0x893c80], al
nop
mov dword [0x86eb98], 0xffffffff
mov dword [0x86eba4], 0xffffffff
call fcn.0041a2d0
call fcn.0041dfd0
lea eax, [0x893934]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402210
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 + 0x50], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [0x4165d0]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
mov dword [esp], ecx
call fcn.00462160
lea eax, [0x8388c0]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00448e70
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4164cf
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4164c7
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x4164d5
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x4164d5
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4164e5
lea eax, [0x688880]
mov dword [esp], eax
call fcn.00462100
nop
lea eax, [0x86ebd8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00448e70
add esp, 0x60
ret
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
call fcn.00437f70
lea eax, [0x66e76f]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00438870
mov eax, dword [esp + 0x2c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00438670
lea eax, [0x66d9f1]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00438870
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004384f0
lea eax, [0x66f2c7]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00438870
mov dword [esp + 4], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004384f0
call fcn.00438190
call fcn.00437fe0
lea eax, [0x6737eb]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.004362e0
nop
call fcn.00462270
jmp fcn.00415f50