Function at 0x408f4d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x30
xor ebx, ebx
mov esi, ecx
mov edi, edx
push ebx
push 0x422760
mov dword [ebp - 0x638], esi
mov dword [ebp - 0x63c], edi
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [0x422770], eax
test esi, esi
je 0x408f9b
cmp word [esi], 0x5c
mov al, 1
je 0x408f9d
mov al, bl
mov byte [ebp - 0x62d], al
test esi, esi
je 0x409122
test al, al
jne 0x408fe3
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
xor eax, eax
movsw word es:[edi], word [esi]
mov word [ebp - 0xc], ax
push 0x104
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x409059
mov ebx, 0xc000000d
jmp 0x40936d
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408fe8
sub ecx, edx
sar ecx, 1
cmp ecx, 0xe
jb 0x408fd9
push 0xe
push esi
push 0x4011dc
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x408fd9
mov edi, 0x104
push edi
lea eax, [ebp - 0x62c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x409033
mov ebx, 0xc0000001
jmp 0x40936d
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.0041bcf9
add esp, 0xc
jmp 0x40905f
mov esi, dword [ebp - 0x638]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x409068
sub ecx, edx
sar ecx, 1
lea edi, [ecx*2 + 2]
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x42277c], eax
test eax, eax
jne 0x4090a1
mov ebx, 0xc0000017
jmp 0x40936d
push edi
lea ecx, [ebp - 0x21c]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [ebp - 0x62d], bl
jne 0x4090bf
add esi, 4
jmp 0x4090dd
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4090c8
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 0x1c
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4090e2
sub ecx, edx
sar ecx, 1
lea edi, [ecx*2 + 2]
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x42278c], eax
test eax, eax
je 0x409097
push edi
push esi
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [ebp - 0x63c]
add esp, 0xc
mov byte [0x42276c], bl
call fcn.0040d1b8
cmp eax, 2
jne 0x409139
mov byte [0x42276c], 1
test edi, edi
jne 0x409148
mov edi, 0x4011fc
mov dword [ebp - 0x63c], edi
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40914d
sub ecx, edx
sar ecx, 1
lea edi, [ecx*2 + 2]
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x422778], eax
test eax, eax
je 0x409097
push edi
push dword [ebp - 0x63c]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push ebx
call fcn.0040ba3c
mov ecx, eax
mov dword [0x422788], ecx
test ecx, ecx
jne 0x4091ac
mov ebx, 0xc0000225
jmp 0x40936d
test byte [ebp + 8], 0x10
je 0x4091c3
push ecx
call fcn.0040b416
mov ecx, dword [0x422788]
mov byte [0x42276d], al
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4091c6
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x638], eax
add eax, 0x3c
push eax
push 8
mov dword [ebp - 0x634], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x409097
push dword [ebp - 0x638]
mov dword [edi], 2
push dword [0x422788]
lea eax, [edi + 0x14]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x634]
lea ecx, [ebp - 0x21c]
add esp, 0xc
mov dword [0x422784], eax
mov dword [0x422780], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40923d
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x634], eax
add eax, 0x3c
push eax
push 8
mov dword [ebp - 0x638], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x409097
push dword [ebp - 0x634]
lea eax, [ebp - 0x21c]
push eax
lea eax, [edi + 0x14]
push eax
mov dword [edi], 2
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x638]
add esp, 0xc
mov dword [0x422764], eax
mov dword [0x422760], edi
test esi, esi
je 0x409372
push 0x401208
push esi
cmp byte [ebp - 0x62d], bl
jne 0x4092e1
lea eax, [ebp - 0x10]
push eax
push 0x401234
lea eax, [ebp - 0x424]
push 0x104
push eax
call fcn.0041bc4c
add esp, 0x18
jmp 0x409306
lea eax, [ebp - 0x21c]
push eax
push 0x4011dc
push 0x401244
lea eax, [ebp - 0x424]
push 0x104
push eax
call fcn.0041bc4c
add esp, 0x1c
lea eax, [ebp - 0x634]
push eax
push dword [ebp - 0x63c]
call fcn.0040e504
mov edx, dword [ebp - 0x634]
lea ecx, [ebp - 0x424]
mov word [0x422774], dx
call fcn.0041afa6
mov dword [0x422768], eax
test eax, eax
jne 0x409372
push 2
push ebx
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x422768], eax
test eax, eax
jne 0x409372
mov ebx, 0xc0000001
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x401258
push 4
call fcn.0040d3c6
add esp, 0xc
call fcn.00408e8d
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041b8aa
leave
ret 4