Function at 0x406ec0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cad8c
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xd8], eax
mov edi, dword [ebp + 0x24]
lea esi, [eax + 0x4c]
mov dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
cmp esi, ecx
je 0x406f24
cmp dword [ebp + 0x20], 8
mov eax, ecx
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00403240
mov eax, dword [ebp - 0xd8]
add eax, 0x64
mov dword [ebp - 0xdc], eax
cmp eax, esi
je 0x406f46
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x406f3b
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00403240
lea eax, [ebp - 0xb8]
push str.13221327054209601718227045004444
push eax
call fcn.00445d5c
mov esi, eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 1
push str.63036957046756381267660968490129
push eax
call fcn.00445d5c
push esi
push eax
push dword [ebp - 0xdc]
mov byte [ebp - 4], 2
call fcn.00443c5f
mov edx, dword [ebp - 0x8c]
add esp, 0x1c
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x406fc6
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406fbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407872
push edx
push ecx
call fcn.0059c9cd
add esp, 8
mov edx, dword [ebp - 0xa4]
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x407026
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40701c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407877
push edx
push ecx
call fcn.0059c9cd
add esp, 8
xor eax, eax
mov dword [ebp - 0xc0], 0
push eax
push 0x656858
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
call fcn.00403240
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x656858
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00403240
mov esi, dword [ebp - 0xd8]
add esi, 0x4c
mov byte [ebp - 4], 4
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x407091
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004479b4
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0044792f
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xe0], eax
add esp, 0x10
cmp ecx, eax
je 0x407105
call fcn.00402fe0
mov eax, dword [ebp - 0xe0]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x78], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0xa4]
cmp edx, 8
jb 0x407145
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40713b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40787c
push edx
push ecx
call fcn.0059c9cd
add esp, 8
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004443cc
push 0
call fcn.005aa5a6
mov dword [ebp - 0xe4], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xa0]
push eax
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00403d20
push dword [ebp + 8]
mov ecx, dword [ebp - 0xd8]
call fcn.00407c70
test al, al
je 0x4073b8
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xe0], 1
cmovae eax, dword [ebp - 0xd0]
push eax
call fcn.005aa4d3
mov ecx, dword [ebp - 0xd8]
add esp, 4
add eax, dword [ecx]
cmp eax, dword [ebp - 0xe4]
jl 0x407227
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x407390
cmp dword [ebp - 0x14], 8
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00403240
jmp 0x407390
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.004443cc
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x407240
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0044528f
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xe4], eax
add esp, 8
cmp ecx, eax
je 0x40728c
call fcn.00402fe0
mov eax, dword [ebp - 0xe4]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x48], xmm0
mov word [eax], cx
lea ecx, [ebp - 0xb8]
call fcn.00402fe0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.00403100
cmp dword [ebp - 0x48], 0
jne 0x40730a
push dword [ebp - 0xdc]
push esi
call fcn.00406c00
add esp, 8
test al, al
jne 0x40730a
push dword [ebp - 0xdc]
lea eax, [ebp - 0xb8]
push eax
call fcn.004443cc
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x4072dd
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0044528f
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00406e80
lea ecx, [ebp - 0x70]
call fcn.00402fe0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 8
call fcn.00403100
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00406c00
add esp, 8
test al, al
je 0x4073b8
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x40733f
cmp dword [ebp - 0x14], 8
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00403240
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0xe8], esp
push eax
call fcn.00403d20
sub esp, 0x18
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xe4], esp
mov ecx, esp
push eax
call fcn.00403d20
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
push esi
call fcn.00403d20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xd8]
push eax
mov byte [ebp - 4], 8
call fcn.00408220
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.004081a0
mov ecx, eax
call fcn.00411b60
mov esi, 1
jmp 0x40765e
cmp dword [ebp + 0x28], 0
jne 0x4073d1
push 0
push 0x656858
mov ecx, edi
call fcn.00403240
jmp 0x40765c
cmp dword [edi + 0x10], 0
jne 0x407492
cmp dword [ebp + 8], 0
mov eax, dword [ebp - 0xd8]
je 0x40742d
add eax, 0x1c
cmp dword [eax + 0x14], 8
jb 0x4073f2
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00447bb6
add esp, 8
mov ecx, edi
push eax
call fcn.00406e80
lea ecx, [ebp - 0x70]
call fcn.00402fe0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00447a9c
add esp, 8
mov byte [ebp - 4], 0xd
jmp 0x407471
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x407438
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00447bb6
add esp, 8
mov ecx, edi
push eax
call fcn.00406e80
lea ecx, [ebp - 0x70]
call fcn.00402fe0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00447a9c
add esp, 8
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x40747b
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00405a30
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.00402fe0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40749c
mov eax, dword [edi]
push eax
call fcn.004468d0
push esi
push dword [ebp - 0xdc]
call fcn.00406c00
mov ecx, dword [ebp - 0xd8]
add esp, 0xc
push edi
test al, al
jne 0x4074d7
push 0
call fcn.004078b0
test eax, eax
setne byte [ebp - 0xd1]
test eax, eax
jne 0x4074e7
mov ecx, dword [ebp - 0xd8]
push edi
push 1
call fcn.004078b0
test eax, eax
setne byte [ebp - 0xd1]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4074f1
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40763e
cmp byte [ebp - 0xd1], 0
je 0x40763e
cmp dword [ebp - 0xe0], 0
lea eax, [ebp - 0x40]
jne 0x40751d
push 2
jmp 0x40751f
push 3
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.004081a0
mov ecx, eax
call fcn.00411b60
cmp dword [ebp - 0x48], 0
jne 0x4075f2
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.004443cc
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xf
jb 0x40755e
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0044528f
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00406e80
lea ecx, [ebp - 0x70]
call fcn.00402fe0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 8
call fcn.00403100
cmp dword [ebp - 0x48], 0
jne 0x4075f2
push dword [ebp - 0xdc]
push esi
call fcn.00406c00
add esp, 8
test al, al
jne 0x4075f2
push dword [ebp - 0xdc]
lea eax, [ebp - 0xb8]
push eax
call fcn.004443cc
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x10
jb 0x4075c5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0044528f
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00406e80
lea ecx, [ebp - 0x70]
call fcn.00402fe0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 8
call fcn.00403100
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe8], esp
push edi
call fcn.00403d20
sub esp, 0x18
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x58]
mov dword [ebp - 0xe4], esp
mov ecx, esp
push eax
call fcn.00403d20
sub esp, 0x18
mov byte [ebp - 4], 0x12
mov ecx, esp
push esi
call fcn.00403d20
push dword [ebp + 8]
mov ecx, dword [ebp - 0xd8]
mov byte [ebp - 4], 8
call fcn.00408220
jmp 0x40765c
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 1
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.004081a0
mov ecx, eax
call fcn.00411b60
xor esi, esi
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x407698
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40768e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407881
push edx
push ecx
call fcn.0059c9cd
add esp, 8
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x4076d8
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4076ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407886
push edx
push ecx
call fcn.0059c9cd
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40770c
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407702
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40788b
push edx
push ecx
call fcn.0059c9cd
add esp, 8
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 8
jb 0x40775b
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407751
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407890
push edx
push ecx
call fcn.0059c9cd
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp edx, 8
jb 0x4077ac
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4077a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407895
push edx
push ecx
call fcn.0059c9cd
add esp, 8
mov edx, dword [ebp - 0xbc]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x407800
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4077f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40789a
push edx
push ecx
call fcn.0059c9cd
add esp, 8
mov edx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
cmp edx, 8
jb 0x407853
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407849
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40789f
push edx
push ecx
call fcn.0059c9cd
add esp, 8
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.0059cf09
mov esp, ebp
pop ebp
ret 0x24
call fcn.005a57f9
call fcn.005a57f9
call fcn.005a57f9
call fcn.005a57f9
call fcn.005a57f9
call fcn.005a57f9
call fcn.005a57f9
call fcn.005a57f9
call fcn.005a57f9
call fcn.005a57f9
int3