Function at 0x480220
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1455
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4d9164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov eax, dword [0x4b96c0]
xor edi, edi
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
mov ax, word [0x4b96c4]
xor ecx, ecx
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov word [ebp - 0x14], ax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ecx
mov eax, 0x41
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], eax
nop word [eax + eax]
cmp edi, ecx
je 0x48029f
mov word [edi], ax
add edi, 2
mov dword [ebp - 0x24], edi
jmp 0x4802b5
lea eax, [ebp - 0x1c]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0047fb90
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp ax, 0x5a
jbe 0x480290
mov eax, 0x61
mov dword [ebp - 0x1c], eax
cmp edi, ecx
je 0x4802d6
mov word [edi], ax
add edi, 2
mov dword [ebp - 0x24], edi
jmp 0x4802ec
lea eax, [ebp - 0x1c]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0047fb90
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp ax, 0x7a
jbe 0x4802c7
push 0x208
mov dword [ebp - 0x4c], ecx
call fcn.00481be8
mov esi, eax
add esp, 4
mov dword [ebp - 0x44], esi
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 1
mov dword [ebp - 0x58], eax
cmp eax, edi
je 0x480586
nop dword [eax]
movzx eax, word [eax]
push 0x104
mov dword [ebp - 0x64], eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x480575
mov ecx, esi
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480362
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00437950
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x30]
cmp ecx, 8
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x5c], edx
cmp word [eax + edx*2 - 2], 0x5c
je 0x4804b6
cmp edx, ecx
jae 0x4803c1
lea eax, [edx + 1]
cmp ecx, 8
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
mov dword [eax + edx*2], 0x5c
jmp 0x4804b6
mov eax, 0x7ffffffe
sub eax, edx
cmp eax, 1
jb 0x4805e8
lea eax, [edx + 1]
mov edx, eax
mov dword [ebp - 0x48], eax
or edx, 7
cmp edx, 0x7ffffffe
jbe 0x4803eb
mov edx, 0x7ffffffe
jmp 0x48040f
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x1c], eax
mov eax, 0x7ffffffe
sub eax, dword [ebp - 0x1c]
cmp ecx, eax
jbe 0x480405
mov edx, 0x7ffffffe
jmp 0x48040f
mov eax, dword [ebp - 0x1c]
add eax, ecx
cmp edx, eax
cmovb edx, eax
xor ecx, ecx
mov dword [ebp - 0x1c], edx
add edx, 1
setb cl
neg ecx
or ecx, edx
push ecx
lea ecx, [ebp - 0x40]
call fcn.00437a60
mov ecx, dword [ebp - 0x1c]
mov edx, eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x5c]
add ecx, ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x54], edx
push ecx
lea eax, [edx + ecx]
mov dword [ebp - 0x48], eax
jb 0x48049a
mov eax, dword [ebp - 0x40]
push eax
push edx
mov dword [ebp - 0x1c], eax
call fcn.00483190
mov eax, dword [ebp - 0x48]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0x50]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x1000
jb 0x48048e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4805e3
mov eax, edx
push ecx
push eax
call fcn.00481131
add esp, 8
jmp 0x4804b0
lea eax, [ebp - 0x40]
push eax
push edx
call fcn.00483190
mov eax, dword [ebp - 0x48]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
movups xmm0, xmmword [ebp - 0x40]
mov ecx, dword [ebp - 0x60]
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x64]
movups xmmword [ebp - 0x80], xmm0
lea ecx, [ecx + 0x30]
mov word [ebp - 0x68], ax
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x70], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0047f9e0
mov edx, dword [ebp - 0x6c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x48053b
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480531
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4805e3
push edx
push ecx
call fcn.00481131
add esp, 8
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x480575
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48056b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4805e3
push edx
push ecx
call fcn.00481131
add esp, 8
mov eax, dword [ebp - 0x58]
add eax, 2
mov dword [ebp - 0x58], eax
cmp eax, edi
jne 0x480320
test esi, esi
je 0x480595
push 2
push esi
call fcn.00481131
add esp, 8
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x4805c8
mov ecx, dword [ebp - 0x4c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x4805be
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4805e3
push ecx
push edx
call fcn.00481131
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004810ea
mov esp, ebp
pop ebp
ret
call fcn.004861f9
call fcn.00437ba0
int3