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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x415d38
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 0x41578f
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x41578f
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x41578f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4157b7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4157b7
mov dword [eax + 8], 0xfffffade
jmp 0x4157b7
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4157ad
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4157ad
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0x7ba5bc]
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.004155c0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4157e8
xor eax, eax
jmp 0x4157f4
call fcn.00421990
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x4157b1
lea eax, [0x7ba8f8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00445a20
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.004155c0
movzx eax, byte [esp + 0x10]
test al, al
je 0x415955
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x7ba90c], al
mov eax, dword [0x7e0b38]
cmp eax, 1
jne 0x41586e
mov eax, 1
jmp 0x41587c
cmp eax, 2
jne 0x41587a
mov eax, 2
jmp 0x41587c
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x79d264]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00445a20
lea eax, [0x79d284]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00445a20
movzx eax, byte [0x7c4d48]
test al, al
je 0x41593d
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x7c4d78]
mov ecx, dword [0x7c4d7c]
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.00451170
mov eax, dword [0x7c4d78]
add eax, 1
mov ecx, dword [0x7c4d7c]
mov dword [0x7c4d78], eax
adc ecx, 0
mov dword [0x7c4d7c], ecx
mov eax, dword [0x7ba320]
mov dword [esp + 0x44], eax
mov ecx, dword [0x7ba324]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x415984
nop
lea eax, [0x7ba8f8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00445d30
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 0x4159b9
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 [0x7c0790]
cmp ecx, eax
je 0x415975
jmp 0x415c81
call fcn.004176f0
lea eax, [0x64a0dc]
mov dword [esp], eax
call fcn.0045cf90
mov eax, dword [0x7e0740]
mov dword [0x7ba938], eax
mov dword [0x7ba93c], eax
mov ecx, dword [0x7e075c]
cmp ecx, eax
jge 0x4159ee
mov dword [0x7ba938], ecx
lea eax, [0x7e11b0]
mov dword [esp], eax
call fcn.00401e50
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x7ba974], eax
mov dword [0x7ba970], ecx
mov dword [0x7ba960], 0
mov dword [0x7ba964], 0
mov eax, dword [esp + 0x14]
mov dword [0x7ba908], eax
call fcn.0045f380
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x7ba944], eax
mov dword [0x7ba940], ecx
mov dword [0x7ba96c], eax
mov dword [0x7ba968], ecx
movzx eax, byte [0x7c4d48]
test al, al
je 0x415aaf
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.00451170
lea eax, [0x64a1a8]
mov dword [esp], eax
call fcn.0045cf90
lea eax, [0x64a0e0]
mov dword [esp], eax
call fcn.0045cf90
call fcn.00418700
inc dword [0x7ba934]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [0x7e0740]
lea ebx, [0x7e1140]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
call fcn.0041ca30
mov eax, dword [0x7e11a0]
mov ecx, dword [0x7e11a4]
mov dword [0x7ba988], eax
mov dword [0x7ba98c], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415b27
mov byte [esp], 0
call fcn.00441de0
lea eax, [0x7e073c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401e20
mov eax, dword [0x7e073c]
cmp eax, 1
jne 0x415b4f
mov eax, 1
jmp 0x415b55
cmp eax, 2
sete al
mov byte [0x7e0974], al
test al, al
je 0x415b66
mov eax, 1
jmp 0x415b6d
movzx eax, byte [0x7e0975]
mov byte [0x7e0970], al
nop
mov dword [0x7ba8b8], 0xffffffff
mov dword [0x7ba8c4], 0xffffffff
call fcn.00418cf0
call fcn.0041c940
lea eax, [0x7e0734]
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, [0x415d50]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.0045cf90
lea eax, [0x79d284]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00445d30
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 0x415c4b
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x415c43
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x415c51
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x415c51
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415c61
lea eax, [0x64a0f0]
mov dword [esp], eax
call fcn.0045cf30
nop
lea eax, [0x7ba8f8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00445d30
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.004357b0
lea eax, [0x6398a6]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00436090
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00435e90
lea eax, [0x63909d]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00436090
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00435d30
lea eax, [0x639e09]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00436090
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00435d30
call fcn.004359d0
call fcn.00435820
lea eax, [0x63c532]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00433e40
nop
call fcn.0045d0a0
jmp fcn.00415720