Function at 0x10018710
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061a13
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x1007f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x268], esi
push 0
push 0x100714cd
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
call fcn.1000e0a0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
call fcn.1001d0c0
test al, al
jne 0x10018822
push 0
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push 0x100714cd
mov byte [esi], al
call fcn.1000e0a0
mov eax, dword [ebp - 0x238]
cmp eax, 8
jb 0x100187ef
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.10019260
mov ecx, dword [ebp - 0x220]
xor eax, eax
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
cmp ecx, 0x10
jb 0x10018a6c
inc ecx
push ecx
jmp 0x10018a5b
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.1003b430
add esp, 0xc
lea eax, [ebp - 0x24c]
cmp dword [ebp - 0x238], 8
cmovae eax, dword [ebp - 0x24c]
push str.deviceId.db
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], 0
mov word [ebp - 0x280], ax
cmp word [ebp - 0x21c], ax
jne 0x10018889
xor ecx, ecx
jmp 0x100188a1
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018892
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x280]
call fcn.10019160
lea edx, [ebp - 0x280]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
call fcn.100185a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x26c]
cmp eax, 8
jb 0x100188eb
inc eax
lea ecx, [ebp - 0x280]
push eax
push dword [ebp - 0x280]
call fcn.10019260
xor eax, eax
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x270], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10018a89
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x1001893a
mov eax, dword [ecx]
jmp 0x1001893c
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.1000e1a0
lea ecx, [ebp - 0x298]
call fcn.1001cc80
add esp, 0x18
mov edi, eax
lea eax, [ebp - 0x234]
cmp eax, edi
je 0x100189ae
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x10018987
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.1000e830
push edi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
call fcn.1000e5b0
mov eax, dword [ebp - 0x284]
cmp eax, 0x10
jb 0x100189cc
inc eax
lea ecx, [ebp - 0x298]
push eax
push dword [ebp - 0x298]
call fcn.1000e830
lea eax, [ebp - 0x234]
mov ecx, esi
push eax
call fcn.1000abb0
mov eax, dword [ebp - 0x250]
cmp eax, 0x10
jb 0x100189f8
inc eax
lea ecx, [ebp - 0x264]
push eax
push dword [ebp - 0x264]
call fcn.1000e830
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x250], 0xf
mov dword [ebp - 0x254], 0
mov byte [ebp - 0x264], 0
cmp eax, 8
jb 0x10018a31
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.10019260
xor eax, eax
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x10018a6c
inc eax
push eax
push dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.1000e830
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.10037fa1
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x298]
call fcn.10018be0
mov edi, eax
lea eax, [ebp - 0x234]
cmp eax, edi
je 0x10018ae5
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x10018abe
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.1000e830
push edi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
call fcn.1000e5b0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x284]
cmp eax, 0x10
jb 0x10018b07
inc eax
lea ecx, [ebp - 0x298]
push eax
push dword [ebp - 0x298]
call fcn.1000e830
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x268], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x10018b2a
mov eax, dword [ecx]
jmp 0x10018b2c
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.1000e1a0
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x10018b60
mov eax, dword [ecx]
jmp 0x10018b62
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.1000e1a0
mov byte [ebp - 4], 4
call fcn.1001c9b0
add esp, 0x30
test al, al
jne 0x100189cc
push 0x100714cd
mov ecx, esi
call fcn.1000ac30
mov eax, dword [ebp - 0x250]
cmp eax, 0x10
jb 0x10018bb3
inc eax
lea ecx, [ebp - 0x264]
push eax
push dword [ebp - 0x264]
call fcn.1000e830
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x250], 0xf
mov dword [ebp - 0x254], 0
mov byte [ebp - 0x264], 0
call fcn.10018ff0
jmp 0x10018a4e