Function at 0x45f120
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x238], edx
mov edi, ecx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x220], 0x410
xor esi, esi
mov dword [ebp - 0x21c], 0x400
mov dword [ebp - 0x218], 0x1000
nop dword [eax]
test ebx, ebx
jne 0x45f312
push edx
push ebx
push dword [ebp + esi*4 - 0x220]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [ebp - 0x238]
inc esi
mov ebx, eax
cmp esi, 3
jb 0x45f170
test ebx, ebx
jne 0x45f312
mov esi, edi
cmp dword [edi], eax
je 0x45f1b0
mov esi, dword [esi]
add esi, 0x124
cmp dword [esi], 0
jne 0x45f1a3
push 0x128
call fcn.004d7188
mov ebx, eax
mov ecx, 4
add esp, 4
mov dword [ebp - 0x23c], ebx
mov dword [ebx], vtable.t_str.0
mov word [ebx + 0x11a], cx
lea ecx, [ebx + 0xc]
mov dword [ebx + 8], ecx
mov byte [ebx + 0x11c], 1
mov dword [ecx], 0
mov dword [ebp - 0x228], ecx
lea ecx, [ebx + 8]
push 1
mov dword [ebx + 0x120], 0
mov dword [ebx + 4], 0
call fcn.00450b00
cmp byte [ebx + 0x11c], 0
mov eax, dword [ebp - 0x228]
jne 0x45f21d
mov eax, dword [ebx + 8]
xor ecx, ecx
mov word [eax + 4], cx
mov dword [ebx + 0x124], ecx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.00450ff0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi], 0
je 0x45f25d
nop word [eax + eax]
mov edi, dword [edi]
add edi, 0x124
cmp dword [edi], 0
jne 0x45f250
push 0x128
call fcn.004d7188
mov esi, eax
add esp, 4
mov eax, 4
mov dword [ebp - 0x23c], esi
mov dword [esi], vtable.t_str.0
lea ecx, [esi + 8]
mov word [esi + 0x11a], ax
lea eax, [esi + 0xc]
mov byte [esi + 0x11c], 1
mov dword [esi + 8], eax
mov dword [eax], 0
push 1
mov dword [ebp - 0x228], eax
mov dword [esi + 0x120], 0
mov dword [esi + 4], 0
call fcn.00450b00
cmp byte [esi + 0x11c], 0
mov eax, dword [ebp - 0x228]
jne 0x45f2ca
mov eax, dword [esi + 8]
xor ecx, ecx
mov word [eax + 4], cx
mov dword [esi + 0x124], ecx
push str.cant_open_proc:
push 0x5971f4
push esi
mov dword [edi], esi
call fcn.00450580
add esp, 0xc
push dword [ebp - 0x238]
push 0x59fc70
push esi
call fcn.00450580
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
push 0x208
call fcn.004e1b5b
add esp, 4
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x230], 0
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45f36a
push str.GetModuleFileNameExW
push eax
call esi
test eax, eax
je 0x45f36a
push 0x104
push dword [ebp - 0x224]
push 0
push ebx
call eax
mov dword [ebp - 0x230], eax
test eax, eax
jne 0x45f3d9
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x45f39d
push str.GetProcessImageFileNameW
push eax
call esi
test eax, eax
je 0x45f39d
push 0x104
push dword [ebp - 0x224]
push ebx
call eax
mov dword [ebp - 0x230], eax
test eax, eax
jne 0x45f3d9
push str.QueryFullProcessImageNameW
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x228], 0x104
test eax, eax
je 0x45f3df
lea ecx, [ebp - 0x228]
push ecx
push esi
push 0
push ebx
call eax
mov dword [ebp - 0x230], eax
jmp 0x45f3df
mov esi, dword [ebp - 0x224]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x22c]
push 0x105
lea ebx, [eax + 8]
mov dword [eax + 0x120], 0x105
mov ecx, ebx
mov dword [ebp - 0x228], ebx
call fcn.00450b00
cmp byte [ebx + 0x114], 0
lea eax, [ebx + 4]
jne 0x45f419
mov eax, dword [ebx]
add eax, 4
cmp word [esi], 0x5c
mov dword [ebp - 0x23c], eax
je 0x45f43c
push esi
push 0x104
push eax
call fcn.004e1af2
add esp, 0xc
jmp 0x45f5a2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call ebx
mov esi, eax
test esi, esi
je 0x45f59c
lea ecx, [esi*2 + 2]
push ecx
call fcn.004e1b5b
add esp, 4
mov dword [ebp - 0x234], eax
lea ecx, [esi + 1]
push eax
push ecx
call ebx
cmp eax, esi
ja 0x45f58e
test eax, eax
je 0x45f58e
mov eax, dword [0x5a13ec]
mov ebx, dword [ebp - 0x234]
mov dword [ebp - 0x21c], eax
mov ax, word [0x5a13f0]
push 0x208
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
nop dword [eax]
nop word [eax + eax]
mov ax, word [ebx]
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x214]
push 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x45f521
lea esi, [ebp - 0x214]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45f4f0
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x45f521
push esi
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x224]
call fcn.004e8041
add esp, 0xc
test eax, eax
je 0x45f560
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f526
sub ecx, edx
sar ecx, 1
je 0x45f58e
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f540
sub ecx, edx
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
cmp word [ebx], ax
jne 0x45f4c0
jmp 0x45f58e
mov eax, dword [ebp - 0x224]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x5a13e0
push 0x103
push 0x104
push dword [ebp - 0x23c]
call fcn.00457420
add esp, 0x18
push dword [ebp - 0x234]
call fcn.004e1b56
add esp, 4
mov ebx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x22c]
call fcn.004502b0
test al, al
je 0x45f617
mov cl, byte [ebx + 0x114]
lea eax, [ebx + 4]
test cl, cl
jne 0x45f5c0
mov eax, dword [ebx]
cmp word [eax + 4], 0x22
jne 0x45f617
mov edx, dword [ebp - 0x22c]
mov eax, dword [edx + 4]
cmp eax, 2
jl 0x45f617
test cl, cl
lea ecx, [ebx + 4]
jne 0x45f5de
mov ecx, dword [ebx]
cmp word [ecx + eax*2 + 2], 0x22
jne 0x45f617
lea esi, [eax - 1]
mov ecx, ebx
push eax
mov dword [edx + 4], esi
call fcn.00450b00
cmp byte [ebx + 0x114], 0
lea eax, [ebx + 4]
jne 0x45f602
mov eax, dword [ebx]
xor ecx, ecx
sub esp, 8
mov word [eax + esi*2 + 4], cx
mov ecx, dword [ebp - 0x22c]
call fcn.004503b0
push dword [ebp - 0x224]
call fcn.004e1b56
add esp, 4
cmp dword [ebp - 0x230], 0
jne 0x45f6cd
cmp dword [edi], 0
mov ebx, edi
je 0x45f64d
nop dword [eax]
mov ebx, dword [ebx]
add ebx, 0x124
cmp dword [ebx], 0
jne 0x45f640
push 0x128
call fcn.004d7188
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x240], esi
call fcn.0044fd40
mov dword [esi + 0x124], 0
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00450ff0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi], 0
je 0x45f69d
mov edi, dword [edi]
add edi, 0x124
cmp dword [edi], 0
jne 0x45f690
push 0x128
call fcn.004d7188
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x240], esi
call fcn.0044fd40
mov dword [esi + 0x124], 0
push str.cant_get_proc_name:
jmp 0x45f2db
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret