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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c3d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push esi
push edi
mov dword [ebp - 0x4c], ecx
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x50], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push ecx
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x44], eax
call fcn.10013e40
mov dword [ebp - 4], edi
mov esi, 0x41
nop dword [eax + eax]
lea ecx, [esi - 0x41]
mov eax, 1
shl eax, cl
test dword [ebp - 0x44], eax
je 0x1000f450
push esi
xor eax, eax
mov dword [ebp - 0x30], 0
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.10007860
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x2c]
mov eax, edi
mov edx, dword [ebp - 0x30]
sub eax, edx
cmp eax, 2
jb 0x1000f2f7
cmp edi, 8
lea eax, [ebp - 0x40]
lea ecx, [edx + 2]
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], ecx
mov dword [eax + edx*2], 0x5c003a
xor edx, edx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x40]
jmp 0x1000f30f
push 2
push 0x1004d534
mov byte [ebp - 0x48], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x48]
push 2
call fcn.10019d50
mov edi, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x18], 0
or edi, 2
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x10], edi
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x1000f388
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f37e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f56b
push edx
push ecx
call fcn.1001a1f6
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 7
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1000f3b8
cmp eax, 2
jne 0x1000f412
mov edx, str.Drive:
lea ecx, [ebp - 0xe8]
call fcn.10016f00
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov ecx, eax
call fcn.10019730
push eax
call fcn.100171c0
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000f412
shr eax, 4
and al, 1
je 0x1000f412
lea edx, [ebp - 0xe8]
lea ecx, [ebp - 0x28]
call fcn.1000eb70
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1000f450
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f446
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f56b
push edx
push ecx
call fcn.1001a1f6
add esp, 8
inc esi
cmp si, 0x5a
jbe 0x1000f290
mov byte [ebp - 4], 4
xor eax, eax
mov esi, dword [ebp - 0x4c]
or edi, 8
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x50], edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
test cl, 2
jne 0x1000f4ae
mov eax, dword [ebp - 0xc4]
mov edx, dword [eax]
test edx, edx
je 0x1000f4ae
cmp edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xd4]
cmovb edx, dword [ebp - 0xac]
mov ecx, dword [eax]
sub edx, ecx
sar edx, 1
push edx
jmp 0x1000f4d8
test cl, 4
jne 0x1000f4e0
mov eax, dword [ebp - 0xc8]
mov edx, dword [eax]
test edx, edx
je 0x1000f4e0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax]
add eax, eax
sub eax, ecx
add eax, edx
sar eax, 1
push eax
push ecx
mov ecx, esi
call fcn.10015ab0
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xec], eax
lea ecx, [ebp - 0xe4]
call fcn.10013a90
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xec], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x98], vtable.std::ios_base.0
call fcn.1001b9c0
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10020517
int3