Function at 0x4065f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591ee3
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x61ea64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xd8], esi
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xe0], eax
lea edi, [esi + 0x4c]
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp edi, eax
je 0x406652
cmp dword [ebp + 0x20], 8
mov ecx, edi
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
push eax
call fcn.00401730
lea ecx, [esi + 0x64]
cmp ecx, edi
je 0x40666c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x406663
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.00401730
lea eax, [ebp - 0x28]
push str.13221327054209601718227045004444
push eax
call fcn.00416b93
mov esi, eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
push str.63036957046756381267660968490129
push eax
call fcn.00416b93
mov edx, dword [ebp - 0xd8]
push esi
push eax
add edx, 0x64
mov byte [ebp - 4], 2
push edx
call fcn.00412213
mov byte [ebp - 4], 1
add esp, 0x1c
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x4066ea
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4066e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f4e
push edx
push ecx
call fcn.00565ee4
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp edx, 8
jb 0x40673e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406734
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f53
push edx
push ecx
call fcn.00565ee4
add esp, 8
xor eax, eax
mov dword [ebp - 0xc0], 0
push eax
push 0x612278
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
call fcn.00401730
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x612278
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00401730
mov byte [ebp - 4], 4
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4067a0
mov eax, dword [edi]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0041c3f7
mov byte [ebp - 4], 5
lea eax, [ebp - 0xb8]
cmp dword [ebp - 0xa4], 8
cmovae eax, dword [ebp - 0xb8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041c372
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0xb8]
cmp eax, esi
je 0x40680f
mov ecx, eax
call fcn.004015f0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0xb8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0xa8], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406849
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40683f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f58
push edx
push ecx
call fcn.00565ee4
add esp, 8
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00412902
push 0
call fcn.0056f73f
mov dword [ebp - 0xdc], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x88]
push eax
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00403190
push dword [ebp + 8]
mov esi, dword [ebp - 0xd8]
mov ecx, esi
call fcn.004057b0
test al, al
je 0x406bc4
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xe4], 1
cmovae eax, dword [ebp - 0xd0]
push eax
call fcn.0056f66c
add eax, dword [esi]
add esp, 4
cmp eax, dword [ebp - 0xdc]
jl 0x406928
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0x70]
cmp ecx, eax
je 0x406b94
cmp dword [ebp - 0x5c], 8
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.00401730
jmp 0x406b94
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00412902
add esp, 8
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x406941
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041bc98
mov esi, eax
add esp, 8
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x406982
mov ecx, eax
call fcn.004015f0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x30], xmm0
mov word [esi], ax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4069bc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4069b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f5d
push edx
push ecx
call fcn.00565ee4
add esp, 8
xor eax, eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 0x10
jb 0x406a08
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4069fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f62
push edx
push ecx
call fcn.00565ee4
add esp, 8
cmp dword [ebp - 0x30], 0
jne 0x406ae1
mov esi, dword [ebp - 0xd8]
mov ecx, edi
add esi, 0x64
mov edx, esi
call fcn.00407070
test al, al
je 0x406ae1
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00412902
add esp, 8
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x406a45
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041bc98
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00403150
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406a95
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406a8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f67
push edx
push ecx
call fcn.00565ee4
add esp, 8
xor eax, eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 0x10
jb 0x406ae1
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406ad7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f6c
push edx
push ecx
call fcn.00565ee4
add esp, 8
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x88]
mov edx, dword [ebp - 0x30]
lea esi, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x88]
cmp dword [ebp - 0x2c], 8
cmovae esi, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x78]
jne 0x406bc4
test edx, edx
je 0x406b25
sub esi, ecx
nop
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x406bc4
add ecx, 2
sub edx, 1
jne 0x406b10
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0x70]
cmp ecx, eax
je 0x406b43
cmp dword [ebp - 0x5c], 8
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.00401730
sub esp, 0x18
lea eax, [ebp - 0x70]
mov ecx, esp
mov dword [ebp - 0xe8], esp
push eax
call fcn.00403190
sub esp, 0x18
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x88]
mov dword [ebp - 0xdc], esp
mov ecx, esp
push eax
call fcn.00403190
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
push edi
call fcn.00403190
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xd8]
push eax
mov byte [ebp - 4], 8
call fcn.00405d40
cmp dword [ebp - 0x8c], 0x10
lea eax, [ebp - 0xa0]
push 0
cmovae eax, dword [ebp - 0xa0]
push eax
sub esp, 8
call fcn.00403450
mov ecx, eax
call fcn.0040eee0
mov esi, 1
jmp 0x406eeb
cmp dword [ebp + 0x28], 0
jne 0x406be1
mov ecx, dword [ebp - 0xe0]
push 0
push 0x612278
call fcn.00401730
jmp 0x406ee9
mov esi, dword [ebp - 0xe0]
cmp dword [esi + 0x10], 0
jne 0x406cda
cmp dword [ebp + 8], 0
mov eax, dword [ebp - 0xd8]
je 0x406c75
add eax, 0x1c
cmp dword [eax + 0x14], 8
jb 0x406c08
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041c5f9
add esp, 8
mov ecx, esi
push eax
call fcn.00403150
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x406c57
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406c4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f71
push edx
push ecx
call fcn.00565ee4
add esp, 8
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041c4df
add esp, 8
mov byte [ebp - 4], 0xd
jmp 0x406cb9
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x406c80
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041c5f9
add esp, 8
mov ecx, esi
push eax
call fcn.00403150
lea ecx, [ebp - 0x58]
call fcn.004015f0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041c4df
add esp, 8
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x406cc3
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00407000
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
call fcn.004015f0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x406ce4
mov eax, dword [esi]
push eax
call fcn.00415b7e
add esp, 4
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x406cf7
mov ecx, dword [edi]
mov edx, dword [ebp - 0xd8]
cmp dword [edx + 0x78], 8
lea eax, [edx + 0x64]
jb 0x406d09
mov eax, dword [edx + 0x64]
mov edx, dword [edx + 0x74]
cmp edx, dword [edi + 0x10]
jne 0x406d39
test edx, edx
je 0x406d54
sub eax, ecx
mov dword [ebp - 0xdc], eax
nop dword [eax]
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x406d39
mov eax, dword [ebp - 0xdc]
add ecx, 2
sub edx, 1
jne 0x406d20
jmp 0x406d54
mov ecx, dword [ebp - 0xd8]
push esi
push 0
call fcn.004061b0
test eax, eax
setne byte [ebp - 0xd1]
test eax, eax
jne 0x406d6b
mov ecx, dword [ebp - 0xd8]
push esi
push 1
call fcn.004061b0
test eax, eax
setne byte [ebp - 0xd1]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x406d75
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406ec3
cmp byte [ebp - 0xd1], 0
je 0x406ec3
cmp dword [ebp - 0xe4], 0
lea eax, [ebp - 0xa0]
jne 0x406da4
push 2
jmp 0x406da6
push 3
cmp dword [ebp - 0x8c], 0x10
cmovae eax, dword [ebp - 0xa0]
push eax
sub esp, 8
call fcn.00403450
mov ecx, eax
call fcn.0040eee0
cmp dword [ebp - 0x30], 0
jne 0x406e77
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00412902
add esp, 8
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 0x10
jb 0x406de7
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041bc98
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00403150
lea ecx, [ebp - 0x58]
call fcn.004015f0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.004016a0
cmp dword [ebp - 0x30], 0
jne 0x406e77
mov edx, dword [ebp - 0xd8]
mov ecx, edi
lea edx, [edx + 0x64]
call fcn.00407070
test al, al
je 0x406e77
mov eax, dword [ebp - 0xd8]
add eax, 0x64
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00412902
add esp, 8
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 0x10
jb 0x406e4d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041bc98
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00403150
lea ecx, [ebp - 0x58]
call fcn.004015f0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.004016a0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe8], esp
push esi
call fcn.00403190
sub esp, 0x18
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x40]
mov dword [ebp - 0xdc], esp
mov ecx, esp
push eax
call fcn.00403190
sub esp, 0x18
mov byte [ebp - 4], 0x12
mov ecx, esp
push edi
call fcn.00403190
push dword [ebp + 8]
mov ecx, dword [ebp - 0xd8]
mov byte [ebp - 4], 8
call fcn.00405d40
jmp 0x406ee9
cmp dword [ebp - 0x8c], 0x10
lea eax, [ebp - 0xa0]
push 1
cmovae eax, dword [ebp - 0xa0]
push eax
sub esp, 8
call fcn.00403450
mov ecx, eax
call fcn.0040eee0
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.004015f0
lea ecx, [ebp - 0x88]
call fcn.004015f0
lea ecx, [ebp - 0xa0]
call fcn.004016a0
lea ecx, [ebp - 0xb8]
call fcn.004015f0
lea ecx, [ebp - 0x70]
call fcn.004015f0
lea ecx, [ebp - 0xd0]
call fcn.004015f0
lea ecx, [ebp + 0xc]
call fcn.004015f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565c09
mov esp, ebp
pop ebp
ret 0x24
call fcn.0056e889
call fcn.0056e889
call fcn.0056e889
call fcn.0056e889
call fcn.0056e889
call fcn.0056e889
call fcn.0056e889
call fcn.0056e889
int3