Function at 0x101b25e0
Capabilities:
Get disk information
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push eax
mov dword [ebp - 0x84c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x840], ebx
cmp ebx, 0xffffffff
je 0x101b2659
lea eax, [ebp - 0x838]
mov dword [ebp - 0x838], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x101b266a
cmp dword [ebp - 0x838], eax
jne 0x101b266a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10d2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
push esi
push 0
push 1
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x844], esi
test esi, esi
jne 0x101b26b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
push edi
push 1
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x848], eax
test eax, eax
jne 0x101b26f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
push 0x104
lea ecx, [ebp - 0x218]
xor edi, edi
push ecx
push eax
mov dword [ebp - 0x83c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.101c9176
test eax, eax
je 0x101b2851
xor eax, eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x101b2851
mov eax, dword [0x10205350]
lea edi, [ebp - 0x424]
movzx ecx, word [ebp - 0x424]
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov ax, word [0x10205354]
mov word [ebp - 8], ax
jmp 0x101b2770
push 0x104
lea eax, [ebp - 0x62c]
mov word [ebp - 0xc], cx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x101b2822
lea esi, [ebp - 0x62c]
lea ecx, [esi + 2]
jmp 0x101b27a0
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x101b27a0
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x101b2822
push esi
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x218]
push eax
call sub.msvcrt.dll__wcsnicmp
xor ebx, ebx
add esp, 0xc
test eax, eax
sete bl
test eax, eax
jne 0x101b2822
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x834]
push 0x10205358
push eax
call fcn.101b1de0
push 0x104
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.101ef1c0
add esp, 0x20
mov dword [ebp - 0x83c], 1
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x101b2822
test ebx, ebx
jne 0x101b283f
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x101b2770
mov ebx, dword [ebp - 0x840]
mov esi, dword [ebp - 0x844]
mov edi, dword [ebp - 0x83c]
push dword [ebp - 0x848]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
test edi, edi
jne 0x101b2871
push 2
jmp 0x101b2888
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x84c]
call fcn.10026b00
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret