Function at 0x4066b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596892
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x61e0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xd8], ebx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xdc], eax
lea edi, [ebx + 0x4c]
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
mov dword [ebp - 0xe4], edi
cmp edi, eax
je 0x406712
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00402ae0
add ebx, 0x64
cmp ebx, edi
je 0x406725
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebx
call fcn.00402ae0
lea eax, [ebp - 0x28]
push str.63615166036855371160304467461515
push eax
call fcn.00424f3f
mov esi, eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 1
push str.95172403455928254459072330566821
push eax
call fcn.00424f3f
push esi
push eax
push ebx
mov byte [ebp - 4], 2
call fcn.0041f3fc
mov eax, dword [ebp - 0x8c]
add esp, 0x1c
cmp eax, 8
jb 0x406777
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x90], 0
cmp eax, 8
jb 0x4067ac
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004030a0
call fcn.0042b4db
test al, al
je 0x4067ce
pop ebx
pop eax
pop edi
push esi
push esp
pop ecx
pop ecx
pop edi
pop ebp
pop esi
pop eax
pop edi
push edx
push esp
pop esi
pop ebx
pop eax
push esi
push esp
mov edi, dword [ebp - 0xe4]
xor eax, eax
mov dword [ebp - 0xbc], 7
push eax
push 0x615ac8
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.004029e0
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x615ac8
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.004029e0
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 8
jb 0x406830
mov eax, dword [edi]
jmp 0x406832
mov eax, edi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0042ab40
mov byte [ebp - 4], 5
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042aa55
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x406893
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x406876
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0x44], 7
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00402c00
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4068ac
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004030a0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0041fc3d
push 0
call fcn.0043dfbd
mov dword [ebp - 0xe8], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 9
mov dword [ebp - 0xe0], eax
call fcn.0042b78d
test al, al
je 0x406914
pop eax
push esp
pop eax
push esi
pop esi
push edx
push edi
push ebp
pop ecx
push ecx
push eax
push ebp
push ebx
push ecx
push eax
pop ebx
call fcn.0042b970
test al, al
je 0x40692d
push ebx
pop edx
push esi
push edx
push esi
pop esp
push ecx
pop edx
pop ecx
pop ebx
push ebp
push esi
push ebx
pop ebp
push edx
pop edx
call fcn.0042b5ef
test al, al
je 0x40695a
pop esi
push esp
pop ecx
push esp
push ecx
pop esi
pop esi
pop eax
pop eax
push ebx
push edi
push edi
pop ebp
push ebx
push ecx
push esp
pop edi
pop ecx
push esi
pop edx
push ebp
pop ecx
push edx
pop edi
push eax
pop esi
pop ebx
pop edx
pop eax
pop esp
mov edi, dword [ebp - 0xe4]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x88]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x406997
mov eax, dword [ecx]
jmp 0x406999
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push edi
mov word [eax], dx
call fcn.00402ae0
push dword [ebp + 8]
mov esi, dword [ebp - 0xd8]
mov ecx, esi
call fcn.00405a00
test al, al
je 0x406c15
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xe0], 1
cmovae eax, dword [ebp - 0xd0]
push eax
call fcn.0043deea
add eax, dword [esi]
add esp, 4
cmp eax, dword [ebp - 0xe8]
jl 0x406a12
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0x70]
cmp eax, ecx
je 0x406bc2
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00402ae0
jmp 0x406bc2
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041fc3d
add esp, 8
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x406a2e
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042a238
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00402640
lea ecx, [ebp - 0x28]
call fcn.00402600
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00402760
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jne 0x406aca
mov esi, dword [ebp - 0xd8]
mov ecx, edi
add esi, 0x64
mov edx, esi
call fcn.00407440
test al, al
je 0x406ac4
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.0041fc3d
add esp, 8
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x406a94
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042a238
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00402640
lea ecx, [ebp - 0x28]
call fcn.00402600
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00402760
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0xd8]
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x88]
push dword [ebp - 0x78]
cmovae ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push ebx
push eax
call fcn.00404de0
add esp, 0x10
test eax, eax
jne 0x406c15
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0x70]
cmp eax, ecx
je 0x406b15
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00402ae0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x406b46
mov eax, dword [ecx]
jmp 0x406b48
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x70]
push edx
push eax
call fcn.00402ae0
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0xe8], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x406b8e
mov eax, dword [ecx]
jmp 0x406b90
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x88]
push edx
push eax
call fcn.00402ae0
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
push edi
call fcn.00402720
mov eax, dword [ebp + 8]
mov ecx, esi
push eax
mov byte [ebp - 4], 9
call fcn.00406000
cmp dword [ebp - 0xa4], 0x10
lea esi, [ebp - 0xb8]
mov eax, dword [0x6278a0]
cmovae esi, dword [ebp - 0xb8]
test eax, eax
jne 0x406bfe
push 0x104
call fcn.0041b125
add esp, 4
mov dword [ebp - 0xec], eax
mov ecx, eax
call fcn.0040e110
mov dword [0x6278a0], eax
push 0
push esi
sub esp, 8
mov ecx, eax
call fcn.0040ecb0
mov esi, 1
jmp 0x406f15
cmp dword [ebp + 0x28], 0
jne 0x406c30
mov ecx, dword [ebp - 0xdc]
push 0x615ac8
call fcn.00402990
jmp 0x406f13
mov ebx, dword [ebp - 0xdc]
cmp dword [ebx + 0x10], 0
jne 0x406ce9
mov eax, dword [ebp + 8]
test eax, eax
je 0x406c8d
add esi, 0x1c
cmp dword [esi + 0x14], 8
jb 0x406c52
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0042af01
add esp, 8
mov ecx, ebx
push eax
call fcn.00402640
lea ecx, [ebp - 0x28]
call fcn.00402600
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042ad09
add esp, 8
mov byte [ebp - 4], 0xe
jmp 0x406cd1
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x406c98
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0042af01
add esp, 8
mov ecx, ebx
push eax
call fcn.00402640
lea ecx, [ebp - 0x28]
call fcn.00402600
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042ad09
add esp, 8
mov byte [ebp - 4], 0xf
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00407270
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00402600
call fcn.0042b7d2
test al, al
je 0x406d1a
pop esi
pop ecx
pop ebp
pop ebp
pop ebp
pop edi
pop ecx
pop esp
pop ecx
pop edi
push ebx
pop ebx
pop esi
pop edx
push ecx
push edx
pop ebx
pop esp
pop edi
pop edi
pop eax
push esi
push ebx
push ebp
pop ebx
pop ebp
pop eax
pop eax
mov ebx, dword [ebp - 0xdc]
mov edi, dword [ebp - 0xe4]
cmp dword [ebx + 0x14], 8
jb 0x406d24
mov eax, dword [ebx]
jmp 0x406d26
mov eax, ebx
push eax
call fcn.0042329d
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x406d39
mov ecx, dword [edi]
jmp 0x406d3b
mov ecx, edi
mov esi, dword [ebp - 0xd8]
add esi, 0x64
cmp dword [esi + 0x14], 8
jb 0x406d4e
mov eax, dword [esi]
jmp 0x406d50
mov eax, esi
push dword [edi + 0x10]
push ecx
push dword [esi + 0x10]
push eax
call fcn.00404de0
mov ecx, dword [ebp - 0xd8]
add esp, 0x10
push ebx
test eax, eax
je 0x406d88
push 0
call fcn.00406330
test eax, eax
setne al
mov byte [ebp - 0xd1], al
test al, al
jne 0x406d98
mov ecx, dword [ebp - 0xd8]
push ebx
push 1
call fcn.00406330
test eax, eax
setne byte [ebp - 0xd1]
cmp dword [ebx + 0x14], 8
jb 0x406da2
mov eax, dword [ebx]
jmp 0x406da4
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406eed
cmp byte [ebp - 0xd1], 0
je 0x406eed
cmp dword [ebp - 0xe0], 0
lea eax, [ebp - 0xb8]
jne 0x406dd3
push 2
jmp 0x406dd5
push 3
cmp dword [ebp - 0xa4], 0x10
cmovae eax, dword [ebp - 0xb8]
push eax
sub esp, 8
call fcn.00403810
mov ecx, eax
call fcn.0040ecb0
cmp dword [ebp - 0x30], 0
jne 0x406ea1
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041fc3d
add esp, 8
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 0x10
jb 0x406e19
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042a238
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00402640
lea ecx, [ebp - 0x28]
call fcn.00402600
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00402760
cmp dword [ebp - 0x30], 0
jne 0x406ea1
mov edx, esi
mov ecx, edi
call fcn.00407440
test al, al
je 0x406ea1
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.0041fc3d
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.00402750
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042a238
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00402640
lea ecx, [ebp - 0x28]
call fcn.00402600
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00402760
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
push ebx
call fcn.00402720
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x40]
mov dword [ebp - 0xe8], esp
mov ecx, esp
push eax
call fcn.00402720
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push edi
call fcn.00402720
push dword [ebp + 8]
mov ecx, dword [ebp - 0xd8]
mov byte [ebp - 4], 9
call fcn.00406000
jmp 0x406f13
cmp dword [ebp - 0xa4], 0x10
lea eax, [ebp - 0xb8]
push 1
cmovae eax, dword [ebp - 0xb8]
push eax
sub esp, 8
call fcn.00403810
mov ecx, eax
call fcn.0040ecb0
xor esi, esi
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x406f2a
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x406f59
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0x74], 7
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.00402760
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x406f90
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x406fb9
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x406feb
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0xbc], 7
lea ecx, [ebp + 0xc]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.00402600
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ae59
mov esp, ebp
pop ebp
ret 0x24