Function at 0x5f5240
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov esi, dword [ebp + 0xc]
mov eax, dword [0x646040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x220]
mov ecx, edi
push esi
call fcn.00556510
push edi
call fcn.0045dec0
add esp, 4
mov ebx, eax
cmp byte [edi + 0xb], 0
jns 0x5f5286
push dword [ebp - 0x220]
call fcn.00564050
add esp, 4
test bl, bl
mov bl, 1
je 0x5f52a3
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, ebx
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0x230]
movdqu xmmword [ebx], xmm0
push eax
push ebx
call fcn.00442c00
add esp, 8
mov al, byte [ebx + 0xc]
cmp al, 1
je 0x5f5305
xor ebx, ebx
test al, 1
je 0x5f528c
cmp byte [ebp - 0x225], 0
jns 0x5f528c
push dword [ebp - 0x230]
call fcn.00564050
add esp, 4
jmp 0x5f528c
mov bl, 1
cmp byte [ebp - 0x231], 0
jns 0x5f52fd
push dword [ebp - 0x23c]
call fcn.00564050
add esp, 4
mov al, byte [ebp - 0x224]
jmp 0x5f52c7
xor eax, eax
dec eax
lea edi, [ebp - 0x23c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
push esi
call fcn.00556510
movsx eax, byte [edi + 0xb]
mov edx, eax
test eax, eax
jns 0x5f532e
mov edx, dword [ebp - 0x238]
test edx, edx
je 0x5f55a6
test al, al
mov ecx, dword [ebp - 0x23c]
mov esi, edi
cmovs esi, ecx
cmp word [esi + edx*2 - 2], 0x5c
je 0x5f5504
test al, al
cmovs edi, ecx
cmp byte [ebp - 0x225], 0
jns 0x5f5363
mov ebx, dword [ebp - 0x230]
push edi
push ebx
call fcn.0056647e
add esp, 8
test eax, eax
je 0x5f52e4
lea edi, [ebp - 0x23c]
mov ecx, edi
mov edx, edi
call fcn.004471e0
mov ebx, eax
mov ecx, edi
call fcn.005f51f0
test al, al
jne 0x5f5428
test bl, bl
je 0x5f5428
pxor xmm0, xmm0
movq qword [ebp - 0x220], xmm0
mov dword [ebp - 0x218], 0
cmp byte [ebp - 0x224], 0
je 0x5f55a9
lea ecx, [ebp - 0x230]
lea esi, [ebp - 0x220]
mov edx, esi
call fcn.004472c0
test al, al
jne 0x5f53db
xor ebx, ebx
jmp 0x5f5408
cmp byte [ebp - 0x231], 0
jns 0x5f53ea
mov edi, dword [ebp - 0x23c]
cmp byte [ebp - 0x215], 0
jns 0x5f53f9
mov esi, dword [ebp - 0x220]
push edi
push esi
call fcn.0056647e
add esp, 8
test eax, eax
sete bl
cmp byte [ebp - 0x215], 0
jns 0x5f52e6
push dword [ebp - 0x220]
call fcn.00564050
add esp, 4
jmp 0x5f52e6
xor ebx, ebx
test al, al
je 0x5f52e6
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
push 0x208
push 0xff
lea esi, [ebp - 0x220]
push esi
call fcn.00568ad0
add esp, 0xc
cmp byte [ebp - 0x231], 0
js 0x5f5462
lea eax, [ebp - 0x23c]
jmp 0x5f5468
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
mov dword [ecx], eax
push 0x104
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x5f52e6
cmp eax, 0x104
je 0x5f52e6
push esi
call fcn.00565872
add esp, 4
cmp byte [ebp - 0x224], 0
je 0x5f55ac
mov edi, eax
movsx eax, byte [ebp - 0x231]
test eax, eax
jns 0x5f54b9
mov eax, dword [ebp - 0x238]
lea ecx, [edi + eax]
add ecx, 0xfffffffe
movsx eax, byte [ebp - 0x225]
mov edx, eax
test eax, eax
jns 0x5f54d2
mov edx, dword [ebp - 0x22c]
cmp ecx, edx
jne 0x5f54fd
test al, al
js 0x5f54e2
lea eax, [ebp - 0x230]
jmp 0x5f54e8
mov eax, dword [ebp - 0x230]
push edi
lea ecx, [ebp - 0x220]
push ecx
push eax
call fcn.0056607a
add esp, 0xc
test eax, eax
je 0x5f555c
xor ebx, ebx
jmp 0x5f52e6
dec edx
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x220]
push eax
push edx
push 0
push edi
call fcn.0053c060
cmp byte [ebp - 0x231], 0
jns 0x5f552f
push dword [ebp - 0x23c]
call fcn.00564050
add esp, 4
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x234], eax
movq xmm0, qword [ebp - 0x220]
movq qword [ebp - 0x23c], xmm0
mov al, byte [ebp - 0x231]
mov ecx, dword [ebp - 0x23c]
jmp 0x5f534f
cmp byte [ebp - 0x224], 0
je 0x5f55af
lea ecx, [ebp - 0x238]
mov eax, dword [ecx - 4]
add eax, 4
cmp byte [ecx + 7], 0
cmovns eax, ecx
cmp byte [ebp - 0x225], 0
js 0x5f5589
lea ecx, [ebp - 0x230]
jmp 0x5f558f
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx + edi*2]
push eax
push ecx
call fcn.0056647e
add esp, 8
test eax, eax
sete bl
jmp 0x5f52e6
int3
int3
int3
int3