Function at 0x4a9050
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3200
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx + 0x10]
lea eax, [ecx + 0x10]
mov edi, dword [eax + 4]
mov dword [ebp - 0x50], eax
cmp esi, edi
je 0x4a90a6
nop word [eax + eax]
mov ecx, esi
call fcn.004a8300
add esi, 8
cmp esi, edi
jne 0x4a9090
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov esi, eax
test esi, esi
je 0x4a943f
lea eax, [esi + 1]
mov dword [ebp - 0x30], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
call fcn.0047bdc0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push esi
call edi
test eax, eax
je 0x4a93ee
push 0x4dd484
lea ecx, [ebp - 0x4c]
call fcn.004609b0
mov byte [ebp - 4], 1
lea edi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae edi, dword [ebp - 0x40]
or esi, 0xffffffff
cmp word [edi], 0
je 0x4a93d2
nop word [eax + eax]
push 0x105
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.0047bdc0
mov byte [ebp - 4], 2
movzx ecx, word [edi]
mov eax, ecx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax - 0xc]
test esi, esi
jle 0x4a945f
cmp dword [eax - 4], 1
jle 0x4a9183
push esi
lea ecx, [ebp - 0x4c]
call fcn.00460fd0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
mov word [eax], cx
mov eax, dword [ebp - 0x4c]
cmp esi, dword [eax - 8]
jg 0x4a945f
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x4c]
push 0x104
mov word [eax + esi*2], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4a935a
lea eax, [ebp - 0x48]
mov dword [ebp - 0x58], eax
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x4a9469
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x44]
mov dword [ebp - 0x5c], eax
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x4a9469
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 7
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9211
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.00461270
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x4a923e
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x4a923e
xor eax, eax
jmp 0x4a9252
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a9243
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x48]
call fcn.00461270
mov edx, dword [ebp - 0x48]
mov esi, dword [edx - 0xc]
test esi, esi
js 0x4a945f
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4a9287
push esi
lea ecx, [ebp - 0x48]
call fcn.004613a0
mov edx, dword [ebp - 0x48]
lea eax, [esi + 1]
push eax
push edx
call fcn.004b387e
mov eax, dword [ebp - 0x48]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x4a945f
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x48]
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x4a92f9
mov dword [ebp - 0x60], esi
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
mov dword [ebp - 0x64], esi
push eax
call fcn.00461190
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
add esi, 4
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
push eax
call fcn.00461190
add eax, 0x10
add esp, 8
mov dword [esi], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x50]
add dword [eax + 4], 8
jmp 0x4a9305
lea ecx, [ebp - 0x48]
push ecx
push esi
mov ecx, eax
call fcn.004a7df0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0xc
or esi, 0xffffffff
mov edx, dword [ebp - 0x44]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a9330
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a935d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a935d
or esi, 0xffffffff
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9362
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4a93b5
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4a93ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a945a
push ecx
push edx
call fcn.004aa25b
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp word [edi], ax
jne 0x4a9130
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4a93ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4a942b
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4a9421
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a945a
push ecx
push edx
call fcn.004aa25b
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
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.004a9b96
mov esp, ebp
pop ebp
ret
call fcn.004b35c4
push 0x80070057
call fcn.00456c80
push 0x80004005
call fcn.00456c80
int3