Function at 0x427050
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x449314]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x10], cx
push edi
mov edi, 0x57
test ebx, ebx
je 0x4273a6
test eax, eax
je 0x4273a6
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427090
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
add eax, eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x42739b
push dword [ebp - 0x18]
push esi
push ebx
call fcn.00427c40
test eax, eax
jne 0x4270db
push ebx
push dword [ebp - 0x18]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4270e0
sub ecx, edx
xor eax, eax
sar ecx, 1
cmp ecx, 3
jb 0x427163
push 2
push esi
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push 3
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [ebp - 0xc], ax
add esp, 0x14
mov eax, dword [ebp - 0xc]
add eax, 0xffffff9f
cmp ax, 0x19
ja 0x427161
cmp word [esi + 2], 0x3a
jne 0x427161
cmp word [esi + 4], 0x5c
jne 0x427161
push 2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x427161
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x427161
movzx eax, word [esi]
jmp 0x427163
xor eax, eax
mov word [ebp - 0x14], ax
test ax, ax
je 0x42739b
xor edi, edi
mov dword [ebp - 0x12], 0x3a
nop dword [eax]
add edi, 0x104
mov dword [ebp - 0xc], edi
lea eax, [edi + edi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x427393
push edi
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4271da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edi, 0x57
cmp esi, 0x7a
jne 0x427398
mov edi, dword [ebp - 0xc]
jmp 0x427180
xor eax, eax
mov dword [ebp - 0x18], eax
lea edi, [eax + 0x57]
mov eax, dword [str.DeviceHarddiskVolume]
test eax, eax
je 0x427387
xor edi, edi
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp esi, eax
je 0x42721e
mov eax, dword [edi*8 + 0x44911c]
inc edi
mov dword [ebp - 0x18], edi
test eax, eax
jne 0x4271f1
push esi
lea edi, [eax + 0x57]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x427398
mov ecx, dword [edi*8 + 0x449114]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427230
mov eax, dword [ebp - 0x18]
sub ecx, edx
sar ecx, 1
mov edi, 0x57
mov eax, dword [eax*8 + 0x449118]
lea ecx, [esi + ecx*2]
sub eax, 2
je 0x427343
sub eax, 1
je 0x4272ec
sub eax, 1
jne 0x427387
mov eax, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x43d7d8
push ecx
call eax
mov ebx, eax
test ebx, ebx
je 0x427387
mov edi, dword [ebp - 0x1c]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427290
sub ecx, edx
mov edx, ebx
sar ecx, 1
lea eax, [edx + 2]
mov dword [ebp - 0xc], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4272a7
sub edx, dword [ebp - 0xc]
sar edx, 1
lea eax, [edx + ecx]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jbe 0x427382
lea eax, [edi + 4]
push eax
push ebx
push 0x440638
push ecx
push dword [ebp - 0x20]
call fcn.0041c2a0
add esp, 0x14
xor edi, edi
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x427398
mov eax, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x43d7d8
push ecx
call eax
mov edx, eax
test edx, edx
je 0x427387
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x427306
sub ebx, ecx
mov ecx, edx
sar ebx, 1
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427320
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jbe 0x427382
mov eax, dword [ebp - 0x1c]
add eax, 4
push eax
push edx
jmp 0x4272ca
mov edi, dword [ebp - 0x1c]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427350
mov eax, dword [ebp + 0x10]
sub ecx, edx
sar ecx, 1
cmp eax, ecx
jbe 0x427382
push edi
push eax
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
xor edi, edi
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x427398
mov edi, 0x7a
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x427398
mov edi, 0x57
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0043624e
mov esp, ebp
pop ebp
ret 0xc