Function at 0x1006a700
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10155f18
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x101a154c]
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
call fcn.10017d20
mov ecx, eax
test ecx, ecx
je 0x1006b02e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x50], eax
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
call fcn.1006a430
add esp, 4
lea ecx, [ebp - 0x45]
call fcn.100641b0
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100191f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.100190c0
mov edx, dword [ebp - 0x44]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006a7c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x50]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006a7dc
xor esi, esi
jmp 0x1006afec
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 4
call fcn.10017d20
mov ecx, eax
test ecx, ecx
je 0x1006b038
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.1006cfb0
lea ecx, [ebp - 0x1c]
call fcn.1006cfb0
lea ecx, [ebp - 0x45]
call fcn.10061e20
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100191f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.100190c0
mov edx, dword [ebp - 0x44]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006a897
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0xffffffffffffffff
push 0xfde9
push dword [ebp - 0x4c]
lea eax, [ebp - 0x68]
push eax
call fcn.1006cc80
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x1006a8b8
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x1015fbf0
push eax
call fcn.100395a0
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006a902
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a8f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b042
push edx
push ecx
call fcn.100f8c70
add esp, 8
push ecx
mov ecx, esp
push 0x1015fecc
call fcn.10012f50
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100667b0
add esp, 0x10
lea ecx, [ebp - 0x34]
push dword [ebp - 0x44]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
call fcn.10060c00
lea ecx, [ebp - 0x28]
call fcn.1006cfb0
lea ecx, [ebp - 0x1c]
call fcn.1006cfb0
lea ecx, [ebp - 0x45]
call fcn.10062870
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100191f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 8
call fcn.100190c0
mov edx, dword [ebp - 0x44]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006a989
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0xffffffffffffffff
push 0xfde9
push dword [ebp - 0x4c]
lea eax, [ebp - 0x68]
push eax
call fcn.1006cc80
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x1006a9aa
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x1015fbf0
push eax
call fcn.100395a0
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006a9f4
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a9ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b047
push edx
push ecx
call fcn.100f8c70
add esp, 8
push ecx
mov ecx, esp
push 0x1015fecc
call fcn.10012f50
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100667b0
add esp, 0x10
lea ecx, [ebp - 0x34]
push dword [ebp - 0x44]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
call fcn.10060c00
lea ecx, [ebp - 0x28]
call fcn.1006cfb0
lea ecx, [ebp - 0x1c]
call fcn.1006cfb0
lea ecx, [ebp - 0x45]
call fcn.100616e0
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100191f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.100190c0
mov edx, dword [ebp - 0x44]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006aa7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0xffffffffffffffff
push 0xfde9
push dword [ebp - 0x4c]
lea eax, [ebp - 0x68]
push eax
call fcn.1006cc80
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x1006aa9c
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x1015fbf0
push eax
call fcn.100395a0
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006aae6
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006aadc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b04c
push edx
push ecx
call fcn.100f8c70
add esp, 8
push ecx
mov ecx, esp
push 0x1015fecc
call fcn.10012f50
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100667b0
add esp, 0x10
lea ecx, [ebp - 0x34]
push dword [ebp - 0x44]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
call fcn.10060c00
lea ecx, [ebp - 0x28]
call fcn.1006cfb0
lea ecx, [ebp - 0x1c]
call fcn.1006cfb0
lea ecx, [ebp - 0x45]
call fcn.10063b60
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100191f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
call fcn.100190c0
mov edx, dword [ebp - 0x44]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006ab6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0xffffffffffffffff
push 0xfde9
push dword [ebp - 0x4c]
lea eax, [ebp - 0x68]
push eax
call fcn.1006cc80
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x1006ab8e
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x1015fbf0
push eax
call fcn.100395a0
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006abd8
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006abce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b051
push edx
push ecx
call fcn.100f8c70
add esp, 8
push ecx
mov ecx, esp
push 0x1015fecc
call fcn.10012f50
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100667b0
add esp, 0x10
lea ecx, [ebp - 0x34]
push dword [ebp - 0x44]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
call fcn.10060c00
lea ecx, [ebp - 0x28]
call fcn.1006cfb0
lea ecx, [ebp - 0x1c]
call fcn.1006cfb0
lea ecx, [ebp - 0x45]
call fcn.10065440
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100191f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
call fcn.100190c0
mov edx, dword [ebp - 0x44]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006ac5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0xffffffffffffffff
push 0xfde9
push dword [ebp - 0x4c]
lea eax, [ebp - 0x68]
push eax
call fcn.1006cc80
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xf
jb 0x1006ac80
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x1015fbf0
push eax
call fcn.100395a0
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006acca
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006acc0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b056
push edx
push ecx
call fcn.100f8c70
add esp, 8
push ecx
mov ecx, esp
push 0x1015fecc
call fcn.10012f50
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100667b0
add esp, 0x10
lea ecx, [ebp - 0x34]
push dword [ebp - 0x44]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
call fcn.10060c00
lea ecx, [ebp - 0x28]
call fcn.1006cfb0
lea ecx, [ebp - 0x1c]
call fcn.1006cfb0
lea ecx, [ebp - 0x45]
call fcn.10062780
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100191f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x10
call fcn.100190c0
mov edx, dword [ebp - 0x44]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006ad51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0xffffffffffffffff
push 0xfde9
push dword [ebp - 0x4c]
lea eax, [ebp - 0x68]
push eax
call fcn.1006cc80
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x1006ad72
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x1015fbf0
push eax
call fcn.100395a0
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006adbc
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006adb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b05b
push edx
push ecx
call fcn.100f8c70
add esp, 8
push ecx
mov ecx, esp
push 0x1015fecc
call fcn.10012f50
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100667b0
add esp, 0x10
lea ecx, [ebp - 0x34]
push dword [ebp - 0x44]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
call fcn.10060c00
lea ecx, [ebp - 0x28]
call fcn.1006cfb0
lea ecx, [ebp - 0x1c]
call fcn.1006cfb0
lea ecx, [ebp - 0x45]
call fcn.10063420
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100191f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x12
call fcn.100190c0
mov edx, dword [ebp - 0x44]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006ae43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x68]
push 0
push 0xffffffffffffffff
push 0xfde9
push esi
push eax
call fcn.1006cc80
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x13
jb 0x1006ae65
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x1015fbf0
push eax
call fcn.100395a0
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006aeaf
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006aea5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b060
push edx
push ecx
call fcn.100f8c70
add esp, 8
push ecx
mov ecx, esp
push 0x1015fecc
call fcn.10012f50
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100667b0
add esp, 0x10
lea ecx, [ebp - 0x34]
push dword [ebp - 0x44]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
call fcn.10060c00
xor ecx, ecx
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
mov dword [ebp - 0x38], ecx
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
sar eax, 2
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x44], ecx
test eax, eax
je 0x1006afb6
xor ebx, ebx
xor edi, edi
xor esi, esi
nop word [eax + eax]
lea eax, [ebp - 0x40]
push eax
push ebx
push ecx
call fcn.100171a0
mov eax, dword [ebp - 0x40]
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ebx, 0x1015fecc
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x34]
sub esp, 0x18
mov eax, dword [eax + esi*4]
test eax, eax
mov dword [ebp - 0x44], esp
cmovne ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x44]
xor edx, edx
push eax
push ebx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
call fcn.10018230
call fcn.1006d030
mov ebx, dword [ebp - 0x3c]
mov eax, 0x2aaaaaab
mov ecx, ebx
inc esi
sub ecx, dword [ebp - 0x40]
add esp, 0x1c
imul ecx
mov ecx, dword [ebp - 0x40]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add edi, eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
sar eax, 2
cmp esi, eax
jb 0x1006af20
mov esi, dword [ebp - 0x4c]
or ebx, 0xffffffff
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x50]
lea ecx, [ebp - 0x40]
call fcn.10061130
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1006afd9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.1001f0d0
lea ecx, [ebp - 0x28]
call fcn.1001f0d0
mov esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x34]
call fcn.1001f0d0
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1006b010
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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.100f8fe1
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100142b0
push 0x80004005
call fcn.100142b0
call fcn.10124793
call fcn.10124793
call fcn.10124793
call fcn.10124793
call fcn.10124793
call fcn.10124793
call fcn.10124793
int3