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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2640
call fcn.10212f90
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
mov dword [ebp - 0x2634], esi
mov dword [ebp - 0x2638], edi
cmp dword [edi + 0x14], 8
jb 0x1002d4e6
mov eax, dword [edi]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x262c], eax
cmp eax, 0xffffffff
je 0x1002d535
lea ecx, [ebp - 0x2630]
xor ebx, ebx
push ecx
push eax
mov dword [ebp - 0x2630], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x1002d550
cmp dword [ebp - 0x2630], ebx
jne 0x1002d550
push dword [ebp - 0x262c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov ecx, esi
call fcn.10006aa0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0
push 1
push 0
push 2
push 0
push dword [ebp - 0x262c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x2640], eax
test eax, eax
je 0x1002d773
push 1
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x263c], eax
test eax, eax
je 0x1002d767
push 0x104
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetMappedFileNameW
test eax, eax
je 0x1002d75b
xor eax, eax
mov word [ebp - 0x2624], ax
lea eax, [ebp - 0x2624]
push eax
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1002d75b
mov eax, dword [0x1021c6ac]
lea edi, [ebp - 0x2624]
movzx ecx, word [ebp - 0x2624]
mov dword [ebp - 0xc], eax
mov ax, word [0x1021c6b0]
mov word [ebp - 8], ax
mov dword [ebp - 0x2628], ebx
lea ebx, [ebx]
push 0x104
lea eax, [ebp - 0x624]
mov word [ebp - 0xc], cx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1002d72c
lea esi, [ebp - 0x624]
lea ecx, [esi + 2]
jmp 0x1002d630
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002d630
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x1002d72c
push esi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10213547
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
mov dword [ebp - 0x2628], ecx
test eax, eax
jne 0x1002d732
cmp word [ebp + esi*2 - 0x214], 0x5c
lea esi, [ebp + esi*2 - 0x214]
jne 0x1002d732
push 0x208
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.102134e7
push esi
lea eax, [ebp - 0xc]
push eax
push 0x1021c6b4
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.1000bd10
lea eax, [ebp - 0x41c]
add esp, 0x20
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002d6c6
sub eax, edx
sar eax, 1
cmp eax, 0x7ffffffe
jbe 0x1002d6e7
xor eax, eax
mov word [ebp - 0x214], ax
jmp 0x1002d727
lea ecx, [ebp - 0x214]
mov edx, 0x104
lea ebx, [ebp - 0x41c]
mov esi, ecx
sub ebx, esi
lea esp, [esp]
test eax, eax
je 0x1002d722
movzx esi, word [ebx + ecx]
test si, si
je 0x1002d71b
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x1002d700
jmp 0x1002d71f
test edx, edx
jne 0x1002d722
sub ecx, 2
xor eax, eax
mov word [ecx], ax
mov ebx, 1
mov ecx, dword [ebp - 0x2628]
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x1002d732
test ecx, ecx
jne 0x1002d74f
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x1002d600
mov esi, dword [ebp - 0x2634]
mov edi, dword [ebp - 0x2638]
push dword [ebp - 0x263c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x2640]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x262c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1002d535
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x214]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002d7a3
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10008240
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret