Function at 0x45afc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559d27
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5ab3e4]
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 - 0x22c], edx
mov edi, ecx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x228], edi
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x228], edi
mov ecx, dword [eax]
mov eax, dword [0x5b4be0]
cmp eax, dword [ecx + 4]
jle 0x45b086
push 0x5b4be0
call fcn.004dffff
add esp, 4
cmp dword [0x5b4be0], 0xffffffff
jne 0x45b086
mov dword [ebp - 4], 0
push 0x40
mov dword [0x5b4be4], 0
mov dword [0x5b4be8], 0
call fcn.004df7b6
push 0x5630e0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5b4be4], eax
call fcn.004dfb4c
push 0x5b4be0
mov dword [ebp - 4], 0xffffffff
call fcn.004dffb5
add esp, 0xc
cmp byte [0x5ac068], 0
je 0x45b1e1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x45b1da
mov eax, ebx
mov dword [ebp - 0x224], eax
test bl, 1
je 0x45b1ce
mov eax, dword [0x58da94]
mov dword [ebp - 0x18], eax
mov ax, word [0x58da98]
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 0x45b1c8
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b113
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00429470
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.0045bea0
mov edx, dword [ebp - 0x250]
lea eax, [ebp - 0x18]
lea ecx, [eax + 2]
mov dword [ebp - 0x228], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b161
sub eax, dword [ebp - 0x228]
lea ecx, [edx + 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00429470
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x45b1c8
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b1be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b293
push edx
push ecx
call fcn.004dfb61
add esp, 8
mov eax, dword [ebp - 0x224]
inc esi
shr ebx, 1
cmp eax, 2
jae 0x45b0a5
mov byte [0x5ac068], 0
mov esi, dword [0x5b4be4]
mov eax, dword [esi]
mov dword [ebp - 0x224], eax
cmp eax, esi
je 0x45b234
cmp dword [eax + 0x24], 8
lea edi, [eax + 0x10]
lea ebx, [edi + 0x18]
mov eax, edi
jb 0x45b203
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
push dword [ebp - 0x22c]
call fcn.00527d91
add esp, 0xc
test eax, eax
je 0x45b272
lea ecx, [ebp - 0x224]
call fcn.0042af60
mov eax, dword [ebp - 0x224]
cmp eax, esi
jne 0x45b1f3
mov edi, dword [ebp - 0x230]
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
push 0x58a57c
mov word [edi], ax
call fcn.00429470
mov eax, edi
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.004df59c
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x10]
mov eax, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x230]
lea ecx, [eax + ecx*2]
push ecx
push ebx
push esi
call fcn.00437950
add esp, 0xc
mov eax, esi
jmp 0x45b256
call fcn.0052430b
int3