Function at 0x1000cf80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f00b
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x1004234c]
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
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc64], eax
mov eax, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0xc5c], eax
lea eax, [ebp - 0xc40]
push 0
push eax
mov dword [ebp - 0xc6c], 0
call fcn.1001a520
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.1001a520
add esp, 0x18
call fcn.10016140
test al, al
je 0x1000d00d
push eax
pop ebx
pop edx
push edi
push edi
pop esp
pop esp
push esi
push esi
pop edx
push edx
pop ebx
push edx
push esi
push edi
push ebp
pop ebp
call fcn.10016ae0
test al, al
je 0x1000d036
pop eax
pop edx
pop ecx
pop ebx
pop edx
push ebx
pop ebp
pop edi
push esp
pop esp
push esp
push edi
pop edx
push edi
push ebx
pop edx
push edx
push edx
push edx
pop esi
push eax
push ebx
pop edx
push esi
pop esp
push ebp
push edi
pop edx
pop ebx
push edx
pop edx
push ebx
call fcn.100160d0
test al, al
je 0x1000d052
push edi
pop ecx
push edi
push ebp
pop ecx
push edx
pop edx
push esi
pop esi
pop ebp
pop edi
push ebx
push ecx
push esp
pop esp
pop esi
push edx
pop ebp
push eax
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.1001a520
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.1001a520
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1001a520
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1001a520
add esp, 0x30
call fcn.10016610
test al, al
je 0x1000d0c8
push edi
push edi
push ebp
pop edi
push esi
pop ebx
pop ecx
push ecx
push edi
push esp
pop ecx
pop esi
pop esp
push esi
pop esi
push ecx
push esi
pop edi
pop esi
pop ebp
push edx
push eax
pop edx
pop edx
push edi
push edx
push edi
push esi
pop ebp
pop esi
call fcn.10016990
test al, al
je 0x1000d0e5
push esp
pop esp
push esp
pop edx
push edx
pop edi
pop edi
pop eax
push ebx
push ecx
pop ecx
push ebx
push ebx
pop edi
pop ebp
pop ebx
push ecx
push edi
pop ebp
push edi
call fcn.100168b0
test al, al
je 0x1000d10d
pop esi
pop esp
pop edi
push edx
push ecx
push edi
push edi
pop ecx
push eax
push ebx
push ebp
push eax
push eax
pop ebx
push esp
pop ecx
push esp
pop ecx
pop ebx
push esp
pop edx
pop edx
push ecx
pop edi
pop edi
push ebp
pop esi
pop esi
push ebx
pop eax
pop esi
xor eax, eax
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], 0
mov word [ebp - 0xc58], ax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc40]
push 0x1a
push eax
push 0
call fcn.1000d570
add esp, 0x10
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xc40]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x422], ax
test ax, ax
jne 0x1000d143
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.1001a9b0
add esp, 8
mov dword [ebp - 0xc60], eax
call fcn.100161b0
test al, al
je 0x1000d199
push ebp
pop ebp
pop edi
push edx
pop ebx
push esi
pop ecx
pop edi
pop edi
pop esp
pop eax
push ecx
push ecx
pop esi
push edi
push edx
push esi
pop esp
push eax
pop ebp
push edi
push esi
pop ecx
pop ebp
pop eax
push esp
pop ecx
pop edi
pop eax
pop esp
call fcn.10016060
test al, al
je 0x1000d1b6
pop esi
pop ebx
pop ecx
pop edx
pop edx
push eax
pop ebp
pop ebp
push esi
push ebp
push ebx
pop edx
push edx
push esp
pop edx
push edi
pop ebx
pop edx
pop ecx
push ecx
call fcn.10016ae0
test al, al
je 0x1000d1db
push eax
pop edi
pop edi
pop ecx
push edx
pop edx
push eax
push esi
pop esi
pop eax
push esi
push edx
push edi
push ebp
pop esi
push esi
pop ecx
push ebp
pop esp
push edx
push ecx
pop edi
pop esp
pop edi
pop ebp
push ebp
push ecx
push esi
mov eax, dword [ebp - 0xc60]
test eax, eax
jne 0x1000d237
push dword [ebp - 0xc5c]
lea eax, [ebp - 0xc58]
push eax
call fcn.1000c900
mov ebx, dword [ebp - 0xc64]
xor eax, eax
add esp, 8
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0xc58]
push eax
call fcn.10007160
mov ecx, dword [ebp - 0xc44]
cmp ecx, 8
jb 0x1000d551
inc ecx
push ecx
jmp 0x1000d540
xor ecx, ecx
mov word [eax], cx
nop dword [eax]
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x832], ax
test ax, ax
jne 0x1000d240
lea ecx, [ebp - 0x830]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1000d261
mov eax, dword [0x10031a04]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ecx], eax
mov eax, dword [str.ocal]
mov dword [ecx + 4], eax
mov eax, dword [0x10031a0c]
mov dword [ecx + 8], eax
mov ax, word [0x10031a10]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x830]
push eax
call ebx
test eax, eax
mov esi, 1
mov eax, 0
cmovne eax, esi
mov dword [ebp - 0xc60], eax
call fcn.10016a70
test al, al
je 0x1000d2dc
push ecx
push esi
push edx
pop edx
push ecx
pop edi
push ecx
push esp
push edx
pop ecx
pop ebx
push esp
push esi
push eax
push ecx
push ebp
pop ebx
push esi
pop esp
push edi
pop esi
pop esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 1
xor ecx, ecx
nop
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x62a], ax
test ax, ax
jne 0x1000d2e0
lea ecx, [ebp - 0x628]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1000d301
mov eax, dword [str.LocalLow]
mov dword [ecx], eax
mov eax, dword [0x10031a18]
mov dword [ecx + 4], eax
mov eax, dword [0x10031a1c]
mov dword [ecx + 8], eax
mov eax, dword [0x10031a20]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10031a24]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x628]
push eax
call ebx
test eax, eax
mov eax, 0
cmovne eax, esi
xor ecx, ecx
mov dword [ebp - 0xc68], eax
nop
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xa3a], ax
test ax, ax
jne 0x1000d350
lea ecx, [ebp - 0xa38]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1000d371
mov eax, dword [str.Roaming]
mov dword [ecx], eax
mov eax, dword [0x10031a2c]
mov dword [ecx + 4], eax
mov eax, dword [0x10031a30]
mov dword [ecx + 8], eax
mov eax, dword [0x10031a34]
mov dword [ecx + 0xc], eax
mov ax, word [0x10031a38]
mov word [ecx + 0x10], ax
call fcn.100166f0
test al, al
je 0x1000d3cf
push edi
push ebx
pop edx
pop esi
push ebx
push eax
push eax
push edi
push esi
pop ecx
push ebx
pop ebx
pop esi
pop edx
push ecx
pop ecx
push esp
pop edi
push esp
pop edx
push ebp
push ebp
push eax
push ebx
pop esi
push edx
pop eax
push edx
pop ecx
push ecx
push esi
pop ebp
call fcn.100167d0
test al, al
je 0x1000d3ea
pop esi
push ebx
pop eax
pop ebp
pop eax
push esp
push ecx
push edx
pop ebp
push eax
push esp
push ebx
push ebx
push esi
push ebp
pop ecx
pop ecx
push esp
call fcn.100160d0
test al, al
je 0x1000d405
push esi
pop ebp
pop edx
push ebx
push esp
pop ebx
pop ecx
pop edi
pop edx
pop eax
push ebx
push ebx
push edx
push edx
push edi
push edx
pop ebp
push ecx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0xa38]
push eax
call esi
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
mov ecx, dword [ebp - 0xc60]
test ecx, ecx
je 0x1000d4d4
mov ecx, dword [ebp - 0xc68]
test ecx, ecx
je 0x1000d4d4
test eax, eax
je 0x1000d4d4
push dword [ebp - 0xc5c]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push str._s_s_
push eax
call fcn.100079d0
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x1000d484
lea eax, [ebp - 0x218]
push eax
call fcn.1000c770
add esp, 4
cmp word [ebp - 0x218], 0
jne 0x1000d4a5
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.10007770
jmp 0x1000d50c
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d4b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.10007770
jmp 0x1000d50c
call fcn.100167d0
test al, al
je 0x1000d4f7
pop edx
push edx
pop ebx
pop edi
pop eax
push ebp
push edi
push edx
push eax
push eax
pop ebx
pop ebx
push esi
pop ebx
pop ecx
push ebp
pop ebx
push edi
push eax
pop ecx
push edx
push eax
push ecx
pop esi
push eax
push esp
push dword [ebp - 0xc5c]
lea eax, [ebp - 0xc58]
push eax
call fcn.1000c900
add esp, 8
mov ebx, dword [ebp - 0xc64]
xor eax, eax
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0xc58]
push eax
call fcn.10007160
mov eax, dword [ebp - 0xc44]
cmp eax, 8
jb 0x1000d551
inc eax
push eax
push dword [ebp - 0xc58]
lea ecx, [ebp - 0xc58]
call fcn.10007870
mov eax, ebx
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.10017646
mov esp, ebp
pop ebp
ret