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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x415d18
sub esp, 0x50
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 0x41576f
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x41576f
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x41576f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x415797
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x415797
mov dword [eax + 8], 0xfffffade
jmp 0x415797
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x41578d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x41578d
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0x7c08fc]
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.004155a0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4157c8
xor eax, eax
jmp 0x4157d4
call fcn.00421970
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x415791
lea eax, [0x7c0c98]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00445940
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.004155a0
movzx eax, byte [esp + 0x10]
test al, al
je 0x415935
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x7c0cac], al
mov eax, dword [0x7e7978]
cmp eax, 1
jne 0x41584e
mov eax, 1
jmp 0x41585c
cmp eax, 2
jne 0x41585a
mov eax, 2
jmp 0x41585c
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x78d598]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00445940
lea eax, [0x78d5b8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00445940
movzx eax, byte [0x7cbb48]
test al, al
je 0x41591d
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x7cbb78]
mov ecx, dword [0x7cbb7c]
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.00451200
mov eax, dword [0x7cbb78]
add eax, 1
mov ecx, dword [0x7cbb7c]
mov dword [0x7cbb78], eax
adc ecx, 0
mov dword [0x7cbb7c], ecx
mov eax, dword [0x7c0540]
mov dword [esp + 0x44], eax
mov ecx, dword [0x7c0544]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x415964
nop
lea eax, [0x7c0c98]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00445c50
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 0x415999
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 [0x7c7590]
cmp ecx, eax
je 0x415955
jmp 0x415c61
call fcn.004176d0
lea eax, [0x645b20]
mov dword [esp], eax
call fcn.0045d430
mov eax, dword [0x7e7558]
mov dword [0x7c0cd8], eax
mov dword [0x7c0cdc], eax
mov ecx, dword [0x7e7574]
cmp ecx, eax
jge 0x4159ce
mov dword [0x7c0cd8], ecx
lea eax, [0x7e81f0]
mov dword [esp], eax
call fcn.00401e50
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x7c0d14], eax
mov dword [0x7c0d10], ecx
mov dword [0x7c0d00], 0
mov dword [0x7c0d04], 0
mov eax, dword [esp + 0x14]
mov dword [0x7c0ca8], eax
call fcn.0045f7f0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x7c0ce4], eax
mov dword [0x7c0ce0], ecx
mov dword [0x7c0d0c], eax
mov dword [0x7c0d08], ecx
movzx eax, byte [0x7cbb48]
test al, al
je 0x415a8f
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.00451200
lea eax, [0x645bec]
mov dword [esp], eax
call fcn.0045d430
lea eax, [0x645b24]
mov dword [esp], eax
call fcn.0045d430
call fcn.004186e0
inc dword [0x7c0cd4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [0x7e7558]
lea ebx, [0x7e8180]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
call fcn.0041ca10
mov eax, dword [0x7e81e0]
mov ecx, dword [0x7e81e4]
mov dword [0x7c0d28], eax
mov dword [0x7c0d2c], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415b07
mov byte [esp], 0
call fcn.00441d00
lea eax, [0x7e7554]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401e20
mov eax, dword [0x7e7554]
cmp eax, 1
jne 0x415b2f
mov eax, 1
jmp 0x415b35
cmp eax, 2
sete al
mov byte [0x7e77b4], al
test al, al
je 0x415b46
mov eax, 1
jmp 0x415b4d
movzx eax, byte [0x7e77b5]
mov byte [0x7e77b0], al
nop
mov dword [0x7c0c58], 0xffffffff
mov dword [0x7c0c64], 0xffffffff
call fcn.00418cd0
call fcn.0041c920
lea eax, [0x7e754c]
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 + 0x7c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x415d30]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.0045d430
lea eax, [0x78d5b8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00445c50
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x415c2b
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x415c23
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x415c31
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x415c31
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415c41
lea eax, [0x645b34]
mov dword [esp], eax
call fcn.0045d3d0
nop
lea eax, [0x7c0c98]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00445c50
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.004356d0
lea eax, [0x62fe11]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00435fb0
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00435db0
lea eax, [0x62f397]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00435fb0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00435c50
lea eax, [0x6305b6]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00435fb0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00435c50
call fcn.004358f0
call fcn.00435740
lea eax, [0x633d56]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00433ee0
nop
call fcn.0045d540
jmp fcn.00415700