Function at 0x4050a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b622
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
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.004367e0
mov edx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xb4]
cmp edx, 8
jb 0x405136
test ecx, ecx
je 0x405b5f
cmp edx, 8
lea eax, [ebp - 0xb4]
cmovae eax, ecx
cmp word [eax], 0
je 0x405b5f
cmp edx, 8
lea eax, [ebp - 0xb4]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405b53
cmp dword [ebp - 0xa0], 8
lea eax, [ebp - 0xb4]
cmovae eax, dword [ebp - 0xb4]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0043c6d0
add esp, 8
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 2
push eax
call fcn.00407c00
mov ecx, eax
call fcn.00407ce0
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 3
push eax
call fcn.00407c00
mov ecx, eax
call fcn.00407c60
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.0040b620
mov esi, eax
add esp, 4
lea eax, [ebp - 0x9c]
cmp eax, esi
je 0x4052dc
mov edx, dword [ebp - 0x88]
cmp edx, 8
jb 0x40529b
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405291
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c01
push edx
push ecx
call fcn.0041dbcb
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.0040b950
mov esi, eax
add esp, 4
lea eax, [ebp - 0x84]
cmp eax, esi
je 0x405377
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x40533f
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405335
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c06
push edx
push ecx
call fcn.0041dbcb
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.0040b2f0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x6c]
cmp eax, esi
je 0x405406
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x4053d4
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4053ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c0b
push edx
push ecx
call fcn.0041dbcb
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 0x4919c0
lea eax, [ebp - 0x9c]
push 0x491608
push eax
call fcn.00423930
push 0x4919c0
lea eax, [ebp - 0x84]
push 0x491608
push eax
call fcn.00423930
push 0x4919c0
lea eax, [ebp - 0x6c]
push 0x491608
push eax
call fcn.00423930
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.004240f0
mov esi, eax
add esp, 0x2c
lea eax, [ebp - 0x54]
cmp eax, esi
je 0x4054d7
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x4054a3
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405499
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c10
push edx
push ecx
call fcn.0041dbcb
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.00404210
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.004240f0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x3c]
cmp eax, esi
je 0x405569
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x405535
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40552b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c15
push edx
push ecx
call fcn.0041dbcb
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.00404210
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.004240f0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x24]
cmp eax, esi
je 0x4055f8
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x4055c4
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4055ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c1a
push edx
push ecx
call fcn.0041dbcb
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.00404210
cmp dword [ebp - 0xbc], 0
je 0x405961
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 0x40565f
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 0x40565f
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, esi
shr eax, 0x13
test al, 1
je 0x4056a4
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 0x4056a4
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, esi
shr eax, 0x17
test al, 1
je 0x4056e0
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 0x4056e0
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, esi
shr eax, 0x19
test al, 1
je 0x40571c
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 0x40571c
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, esi
shr eax, 0x14
test al, 1
je 0x405758
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 0x405758
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov edx, dword [ebp - 0x10]
pop edi
cmp edx, 0x10
jb 0x40578d
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405783
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c1f
push edx
push ecx
call fcn.0041dbcb
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 0x4057d3
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4057c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c1f
push edx
push ecx
call fcn.0041dbcb
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 0x405819
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40580f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c1f
push edx
push ecx
call fcn.0041dbcb
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 0x405865
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40585b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c1f
push edx
push ecx
call fcn.0041dbcb
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 0x4058b6
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4058ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c1f
push edx
push ecx
call fcn.0041dbcb
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 0x40590d
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405903
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c1f
push edx
push ecx
call fcn.0041dbcb
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.00404210
lea ecx, [ebp - 0x12c]
call fcn.00404210
lea ecx, [ebp - 0xcc]
call fcn.00404210
mov edx, dword [ebp - 0xa0]
mov esi, 1
mov ecx, dword [ebp - 0xb4]
jmp 0x405b61
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x405995
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40598b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c1f
push edx
push ecx
call fcn.0041dbcb
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 0x4059db
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4059d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c1f
push edx
push ecx
call fcn.0041dbcb
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 0x405a21
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405a17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c1f
push edx
push ecx
call fcn.0041dbcb
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 0x405a6d
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405a63
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c1f
push edx
push ecx
call fcn.0041dbcb
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 0x405abe
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405ab4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c1f
push edx
push ecx
call fcn.0041dbcb
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 0x405b15
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c1f
push edx
push ecx
call fcn.0041dbcb
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.00404210
lea ecx, [ebp - 0x12c]
call fcn.00404210
lea ecx, [ebp - 0xcc]
call fcn.00404210
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xa0]
xor esi, esi
cmp edx, 8
jb 0x405b95
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c24
push edx
push ecx
call fcn.0041dbcb
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 0x405bee
mov ecx, dword [ebp - 0xfc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405be4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c24
push edx
push ecx
call fcn.0041dbcb
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.00455d9f
call fcn.00455d9f
call fcn.00455d9f
call fcn.00455d9f
call fcn.00455d9f
call fcn.00455d9f
call fcn.00455d9f
call fcn.00455d9f
int3