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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x10250150]
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 - 0x844], ebx
cmp ebx, 0xffffffff
je 0x101ccce9
lea eax, [ebp - 0x838]
mov dword [ebp - 0x838], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x101cccfa
cmp dword [ebp - 0x838], eax
jne 0x101cccfa
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.10212f74
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 - 0x848], esi
test esi, esi
jne 0x101ccd40
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.10212f74
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 - 0x840], eax
test eax, eax
jne 0x101ccd88
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.10212f74
mov esp, ebp
pop ebp
ret
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x218]
xor edi, edi
mov dword [ebp - 0x83c], edi
push 0x104
push eax
push dword [ebp - 0x840]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetMappedFileNameW
test eax, eax
je 0x101ccf3f
push 0x208
lea eax, [ebp - 0x422]
push edi
push eax
call fcn.102134e7
add esp, 0xc
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 0x101ccf3f
push 0x208
lea eax, [ebp - 0x62c]
push edi
push eax
call fcn.102134e7
mov eax, dword [0x1021c6ac]
lea edi, [ebp - 0x424]
movzx ecx, word [ebp - 0x424]
add esp, 0xc
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov ax, word [0x1021c6b0]
mov word [ebp - 8], ax
lea ebx, [ebx]
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 0x101ccf10
lea esi, [ebp - 0x62c]
lea ecx, [esi + 2]
jmp 0x101cce70
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x101cce70
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x101ccf10
push esi
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10213547
xor ebx, ebx
add esp, 0xc
test eax, eax
sete bl
test eax, eax
jne 0x101ccf10
push 0x208
push eax
lea eax, [ebp - 0x834]
push eax
call fcn.102134e7
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x834]
push 0x1021c6b4
push eax
call fcn.101cc410
push 0x104
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.1020ed30
add esp, 0x2c
mov dword [ebp - 0x83c], 1
jmp 0x101ccf10
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x101ccf10
test ebx, ebx
jne 0x101ccf2d
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x101cce40
mov ebx, dword [ebp - 0x844]
mov esi, dword [ebp - 0x848]
mov edi, dword [ebp - 0x83c]
push dword [ebp - 0x840]
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 0x101ccf5f
push 2
jmp 0x101ccf76
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x84c]
call fcn.100290b0
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.10212f74
mov esp, ebp
pop ebp
ret