Function at 0x405380
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d232
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
xor eax, eax
mov dword [ebp - 0xfc], 0
push esi
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 7
mov word [ebp - 0xfc], ax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], 7
mov word [ebp - 0xb4], ax
push eax
mov byte [ebp - 4], 1
call fcn.0040ff60
add esp, 4
movzx eax, al
lea ecx, [ebp - 0xb4]
push 1
push 0
push ecx
lea ecx, [ebp - 0xfc]
push ecx
push eax
call fcn.00445640
mov edx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xb4]
cmp edx, 8
jb 0x405427
test ecx, ecx
je 0x405e50
cmp edx, 8
lea eax, [ebp - 0xb4]
cmovae eax, ecx
cmp word [eax], 0
je 0x405e50
cmp edx, 8
lea eax, [ebp - 0xb4]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405e44
cmp dword [ebp - 0xa0], 8
lea eax, [ebp - 0xb4]
cmovae eax, dword [ebp - 0xb4]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0044b760
add esp, 8
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 2
push eax
call fcn.00409630
mov ecx, eax
call fcn.00409710
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 3
push eax
call fcn.00409630
mov ecx, eax
call fcn.00409690
xor eax, eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], al
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], al
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], al
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040d3a0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x9c]
cmp eax, esi
je 0x4055cd
mov edx, dword [ebp - 0x88]
cmp edx, 8
jb 0x40558c
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405582
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405ef2
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov dword [ebp - 0x8c], 0
xor eax, eax
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x9c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x8c], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xe4]
call fcn.004011d0
lea eax, [ebp - 0xe4]
push eax
call fcn.0040d6d0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x84]
cmp eax, esi
je 0x405668
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x405630
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405626
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405ef7
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov dword [ebp - 0x74], 0
xor eax, eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x84], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x74], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xe4]
call fcn.004011d0
lea eax, [ebp - 0xe4]
push eax
call fcn.0040d070
mov esi, eax
add esp, 4
lea eax, [ebp - 0x6c]
cmp eax, esi
je 0x4056f7
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x4056c5
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4056bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405efc
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x5c], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xe4]
call fcn.004011d0
push 0x4a3944
lea eax, [ebp - 0x9c]
push 0x4a3618
push eax
call fcn.0042fde0
push 0x4a3944
lea eax, [ebp - 0x84]
push 0x4a3618
push eax
call fcn.0042fde0
push 0x4a3944
lea eax, [ebp - 0x6c]
push 0x4a3618
push eax
call fcn.0042fde0
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.004305a0
mov esi, eax
add esp, 0x2c
lea eax, [ebp - 0x54]
cmp eax, esi
je 0x4057c8
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x405794
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40578a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f01
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0xe4]
call fcn.00404350
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.004305a0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x3c]
cmp eax, esi
je 0x40585a
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x405826
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40581c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f06
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x3c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x2c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0xe4]
call fcn.00404350
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.004305a0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x24]
cmp eax, esi
je 0x4058e9
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x4058b5
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4058ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f0b
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x24], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x14], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0xe4]
call fcn.00404350
cmp dword [ebp - 0xbc], 0
je 0x405c52
mov esi, dword [ebp + 8]
mov eax, esi
shr eax, 0x12
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
test al, 1
je 0x405950
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0xcc]
cmovae ecx, dword [ebp - 0x12c]
cmp dword [ebp - 0xb8], 0x10
push ecx
cmovae eax, dword [ebp - 0xcc]
push eax
call edi
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x405950
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, esi
shr eax, 0x13
test al, 1
je 0x405995
cmp dword [ebp - 0x100], 0x10
lea ecx, [ebp - 0x114]
lea eax, [ebp - 0xcc]
cmovae ecx, dword [ebp - 0x114]
cmp dword [ebp - 0xb8], 0x10
push ecx
cmovae eax, dword [ebp - 0xcc]
push eax
call edi
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x405995
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, esi
shr eax, 0x17
test al, 1
je 0x4059d1
cmp dword [ebp - 0x40], 0x10
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0xcc]
cmovae ecx, dword [ebp - 0x54]
cmp dword [ebp - 0xb8], 0x10
push ecx
cmovae eax, dword [ebp - 0xcc]
push eax
call edi
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4059d1
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, esi
shr eax, 0x19
test al, 1
je 0x405a0d
cmp dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0xcc]
cmovae ecx, dword [ebp - 0x24]
cmp dword [ebp - 0xb8], 0x10
push ecx
cmovae eax, dword [ebp - 0xcc]
push eax
call edi
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x405a0d
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, esi
shr eax, 0x14
test al, 1
je 0x405a49
cmp dword [ebp - 0x28], 0x10
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0xcc]
cmovae ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0xb8], 0x10
push ecx
cmovae eax, dword [ebp - 0xcc]
push eax
call edi
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x405a49
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov edx, dword [ebp - 0x10]
pop edi
cmp edx, 0x10
jb 0x405a7e
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405a74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f10
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
cmp edx, 0x10
jb 0x405ac4
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405aba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f10
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
cmp edx, 0x10
jb 0x405b0a
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405b00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f10
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
cmp edx, 8
jb 0x405b56
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f10
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
cmp edx, 8
jb 0x405ba7
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f10
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov edx, dword [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
cmp edx, 8
jb 0x405bfe
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405bf4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f10
push edx
push ecx
call fcn.00429ebb
add esp, 8
xor eax, eax
mov dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
call fcn.00404350
lea ecx, [ebp - 0x12c]
call fcn.00404350
lea ecx, [ebp - 0xcc]
call fcn.00404350
mov edx, dword [ebp - 0xa0]
mov esi, 1
mov ecx, dword [ebp - 0xb4]
jmp 0x405e52
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x405c86
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405c7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f10
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
cmp edx, 0x10
jb 0x405ccc
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405cc2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f10
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
cmp edx, 0x10
jb 0x405d12
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405d08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f10
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
cmp edx, 8
jb 0x405d5e
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405d54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f10
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
cmp edx, 8
jb 0x405daf
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405da5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f10
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov edx, dword [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
cmp edx, 8
jb 0x405e06
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405dfc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f10
push edx
push ecx
call fcn.00429ebb
add esp, 8
xor eax, eax
mov dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
call fcn.00404350
lea ecx, [ebp - 0x12c]
call fcn.00404350
lea ecx, [ebp - 0xcc]
call fcn.00404350
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xa0]
xor esi, esi
cmp edx, 8
jb 0x405e86
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405e7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f15
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov edx, dword [ebp - 0xe8]
xor eax, eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 7
mov word [ebp - 0xb4], ax
cmp edx, 8
jb 0x405edf
mov ecx, dword [ebp - 0xfc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405ed5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f15
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
call fcn.004679af
call fcn.004679af
call fcn.004679af
call fcn.004679af
call fcn.004679af
call fcn.004679af
call fcn.004679af
call fcn.004679af
int3