Function at 0x1000facd
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
sub esp, 0xe10
lea ebp, [esp - 4]
mov eax, dword [0x10032ba0]
xor eax, ebp
mov dword [ebp + 0xe10], eax
push 0x34
mov eax, 0x10028828
call fcn.10013a45
mov esi, ecx
lea edi, [esi + 0x38]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
je 0x1000fb0e
xor eax, eax
jmp 0x1000fe27
xor eax, eax
cmp ax, word [esi + 0x9c]
jne 0x1000fb07
cmp dword [esi + 0x1c], 8
jb 0x1000fb24
mov eax, dword [esi + 8]
jmp 0x1000fb27
lea eax, [esi + 8]
push eax
lea eax, [ebp + 0x610]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor ebx, ebx
push ebx
mov ecx, edi
call fcn.1000be6a
cmp dword [eax + 0x18], 8
jb 0x1000fb4a
mov eax, dword [eax + 4]
jmp 0x1000fb4d
add eax, 4
push eax
lea eax, [ebp + 0x610]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x610]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1000fb07
lea eax, [ebp + 0x610]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jl 0x1000fc74
lea ecx, [ebp - 0x1c]
call fcn.1000b3c8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.1000b423
lea ecx, [ebp - 0x1c]
test eax, eax
jne 0x1000fbaa
or dword [ebp - 4], 0xffffffff
call fcn.1000b3ea
jmp 0x1000fb07
lea eax, [ebp + 0x610]
push eax
call fcn.1000b45b
test eax, eax
jne 0x1000fbcd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1000b3ea
mov eax, ebx
jmp 0x1000fe27
push 0x1003435c
lea ecx, [ebp - 0x10]
call fcn.10005472
lea eax, [ebp - 0x10]
push eax
push 0x1f4b
mov ecx, 0x100342c8
mov byte [ebp - 4], 1
call fcn.1001206b
push ebx
mov ecx, edi
call fcn.1000be6a
cmp dword [eax + 0x18], 8
jb 0x1000fc04
mov eax, dword [eax + 4]
jmp 0x1000fc07
add eax, 4
push eax
push dword [ebp - 0x10]
lea eax, [ebp]
push 0x1002ad8c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x40]
call fcn.10001200
lea eax, [ebp - 0x40]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 2
call fcn.1000f86c
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.100015a0
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x24], 0x400000
mov dword [ebp - 0x20], ebx
call fcn.1000e9bb
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.100051b7
xor ebx, ebx
inc ebx
jmp 0x1000fbba
push dword [ebp + 0x610]
call fcn.1000c6a8
pop ecx
test eax, eax
je 0x1000fb07
lea eax, [ebp + 0x610]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, 0x1003435c
mov edi, 0x100342c8
cmp eax, 5
jne 0x1000fd90
test dword [ebp + 0xe1c], 0x80000
je 0x1000fb07
lea eax, [ebp + 0x610]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
lea ecx, [ebp - 0x10]
test eax, eax
je 0x1000fd20
call fcn.10005472
lea eax, [ebp - 0x10]
push eax
push 0x1f4c
mov ecx, edi
mov dword [ebp - 4], 3
call fcn.1001206b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
call fcn.10001200
lea eax, [ebp - 0x40]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 4
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.100015a0
mov dword [ebp - 0x18], 0x200000
jmp 0x1000fd71
call fcn.10005472
lea eax, [ebp - 0x10]
push eax
push 0x1f4d
mov ecx, edi
mov dword [ebp - 4], 5
call fcn.1001206b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
call fcn.10001200
lea eax, [ebp - 0x40]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 6
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.100015a0
mov dword [ebp - 0x18], 0x100000
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x68]
call fcn.1000e9bb
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100051b7
push ebx
lea ecx, [ebp - 0x20]
call fcn.10005472
lea eax, [ebp - 0x20]
push eax
push 0x1f4b
mov ecx, edi
mov dword [ebp - 4], 7
call fcn.1001206b
movzx eax, word [ebp + 0x610]
push eax
push dword [ebp - 0x20]
lea eax, [ebp + 0x410]
push 0x1002ae14
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp + 0x410]
push eax
lea ecx, [ebp - 0x40]
call fcn.10001200
lea eax, [ebp - 0x40]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 8
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.100015a0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x18], 0x80000
call fcn.1000e9bb
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.100051b7
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe10]
xor ecx, ebp
call fcn.100135dc
add ebp, 0xe14
leave
ret 4