Function at 0x1006a800
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014b218
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1019646c]
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.10017640
mov ecx, eax
test ecx, ecx
je 0x1006b12e
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.1006a530
add esp, 4
lea ecx, [ebp - 0x45]
call fcn.100642e0
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10018c20
add esp, 0xc
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.10018af0
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 0x1006a8c7
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 0x1006a8dc
xor esi, esi
jmp 0x1006b0ec
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.10017640
mov ecx, eax
test ecx, ecx
je 0x1006b138
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.1006d0f0
lea ecx, [ebp - 0x1c]
call fcn.1006d0f0
lea ecx, [ebp - 0x45]
call fcn.10061f50
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10018c20
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.10018af0
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 0x1006a997
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.1006cdc0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x1006a9b8
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x10154bd0
push eax
call fcn.10039060
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006aa02
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a9f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b142
push edx
push ecx
call fcn.100f5c1c
add esp, 8
push ecx
mov ecx, esp
push 0x10154eac
call fcn.10012770
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100668b0
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.10060d30
lea ecx, [ebp - 0x28]
call fcn.1006d0f0
lea ecx, [ebp - 0x1c]
call fcn.1006d0f0
lea ecx, [ebp - 0x45]
call fcn.100629a0
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10018c20
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 8
call fcn.10018af0
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 0x1006aa89
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.1006cdc0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x1006aaaa
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x10154bd0
push eax
call fcn.10039060
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006aaf4
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006aaea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b147
push edx
push ecx
call fcn.100f5c1c
add esp, 8
push ecx
mov ecx, esp
push 0x10154eac
call fcn.10012770
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100668b0
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.10060d30
lea ecx, [ebp - 0x28]
call fcn.1006d0f0
lea ecx, [ebp - 0x1c]
call fcn.1006d0f0
lea ecx, [ebp - 0x45]
call fcn.10061810
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10018c20
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.10018af0
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 0x1006ab7b
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.1006cdc0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x1006ab9c
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x10154bd0
push eax
call fcn.10039060
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006abe6
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006abdc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b14c
push edx
push ecx
call fcn.100f5c1c
add esp, 8
push ecx
mov ecx, esp
push 0x10154eac
call fcn.10012770
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100668b0
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.10060d30
lea ecx, [ebp - 0x28]
call fcn.1006d0f0
lea ecx, [ebp - 0x1c]
call fcn.1006d0f0
lea ecx, [ebp - 0x45]
call fcn.10063c90
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10018c20
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
call fcn.10018af0
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 0x1006ac6d
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.1006cdc0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x1006ac8e
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x10154bd0
push eax
call fcn.10039060
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006acd8
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006acce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b151
push edx
push ecx
call fcn.100f5c1c
add esp, 8
push ecx
mov ecx, esp
push 0x10154eac
call fcn.10012770
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100668b0
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.10060d30
lea ecx, [ebp - 0x28]
call fcn.1006d0f0
lea ecx, [ebp - 0x1c]
call fcn.1006d0f0
lea ecx, [ebp - 0x45]
call fcn.10065570
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10018c20
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
call fcn.10018af0
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 0x1006ad5f
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.1006cdc0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xf
jb 0x1006ad80
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x10154bd0
push eax
call fcn.10039060
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006adca
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006adc0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b156
push edx
push ecx
call fcn.100f5c1c
add esp, 8
push ecx
mov ecx, esp
push 0x10154eac
call fcn.10012770
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100668b0
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.10060d30
lea ecx, [ebp - 0x28]
call fcn.1006d0f0
lea ecx, [ebp - 0x1c]
call fcn.1006d0f0
lea ecx, [ebp - 0x45]
call fcn.100628b0
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10018c20
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x10
call fcn.10018af0
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 0x1006ae51
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.1006cdc0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x1006ae72
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x10154bd0
push eax
call fcn.10039060
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006aebc
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006aeb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b15b
push edx
push ecx
call fcn.100f5c1c
add esp, 8
push ecx
mov ecx, esp
push 0x10154eac
call fcn.10012770
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100668b0
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.10060d30
lea ecx, [ebp - 0x28]
call fcn.1006d0f0
lea ecx, [ebp - 0x1c]
call fcn.1006d0f0
lea ecx, [ebp - 0x45]
call fcn.10063550
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10018c20
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x12
call fcn.10018af0
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 0x1006af43
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.1006cdc0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x13
jb 0x1006af65
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push 0x10154bd0
push eax
call fcn.10039060
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1006afaf
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006afa5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b160
push edx
push ecx
call fcn.100f5c1c
add esp, 8
push ecx
mov ecx, esp
push 0x10154eac
call fcn.10012770
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100668b0
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.10060d30
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 0x1006b0b6
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.10016ac0
mov eax, dword [ebp - 0x40]
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ebx, 0x10154eac
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.10017b50
call fcn.1006d170
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 0x1006b020
mov esi, dword [ebp - 0x4c]
or ebx, 0xffffffff
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x50]
lea ecx, [ebp - 0x40]
call fcn.10061260
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1006b0d9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.1001eae0
lea ecx, [ebp - 0x28]
call fcn.1001eae0
mov esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x34]
call fcn.1001eae0
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1006b110
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.100f5f8d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10013b40
push 0x80004005
call fcn.10013b40
call fcn.10119a73
call fcn.10119a73
call fcn.10119a73
call fcn.10119a73
call fcn.10119a73
call fcn.10119a73
call fcn.10119a73
int3