Function at 0x45ec90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f387
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5b03ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], edx
mov ebx, ecx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x224], ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5bb4f0]
cmp eax, dword [ecx + 4]
jle 0x45ed56
push 0x5bb4f0
call fcn.004e573f
add esp, 4
cmp dword [0x5bb4f0], 0xffffffff
jne 0x45ed56
mov dword [ebp - 4], 0
push 0x40
mov dword [0x5bb4f4], 0
mov dword [0x5bb4f8], 0
call fcn.004e4ef6
push 0x568770
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5bb4f4], eax
call fcn.004e528c
push 0x5bb4f0
mov dword [ebp - 4], 0xffffffff
call fcn.004e56f5
add esp, 0xc
cmp byte [0x5b1058], 0
je 0x45ee7b
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x45ee6e
mov edi, ebx
test bl, 1
je 0x45ee62
mov eax, dword [0x591ac4]
mov dword [ebp - 0x18], eax
mov ax, word [0x591ac8]
mov word [ebp - 0x14], ax
lea eax, [esi + 0x41]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x45ee62
xor eax, eax
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ede0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24c]
call fcn.00429120
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0045fc40
mov edx, dword [ebp - 0x234]
lea eax, [ebp - 0x18]
lea ecx, [eax + 2]
mov dword [ebp - 0x224], ecx
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45ee30
sub eax, dword [ebp - 0x224]
lea ecx, [edx + 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00429120
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0xffffffff
call fcn.00428da0
inc esi
shr ebx, 1
cmp edi, 2
jae 0x45ed75
mov ebx, dword [ebp - 0x22c]
mov byte [0x5b1058], 0
mov esi, dword [0x5bb4f4]
mov eax, dword [esi]
mov dword [ebp - 0x224], eax
cmp eax, esi
je 0x45eec8
nop dword [eax]
cmp dword [eax + 0x24], 8
lea edi, [eax + 0x10]
mov eax, edi
jb 0x45ee9d
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
push dword [ebp - 0x228]
call fcn.0052d41c
add esp, 0xc
test eax, eax
je 0x45ef06
lea ecx, [ebp - 0x224]
call fcn.0042a340
mov eax, dword [ebp - 0x224]
cmp eax, esi
jne 0x45ee90
xor eax, eax
mov dword [ebx + 0x10], 0
push eax
mov dword [ebx + 0x14], 7
mov ecx, ebx
push 0x58f620
mov word [ebx], ax
call fcn.00429120
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4cdc
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x10]
mov eax, dword [ebp - 0x228]
lea ecx, [eax + ecx*2]
push ecx
lea eax, [edi + 0x18]
push eax
push ebx
call fcn.00439be0
add esp, 0xc
jmp 0x45eee8