Function at 0x4b0290
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 2
push edi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], esi
xor eax, eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
jmp 0x4b02d0
movzx ecx, word [eax + 0x523b1c]
mov word [ebp + eax - 0x10], cx
add eax, 2
test cx, cx
jne 0x4b02d0
lea eax, [ebp - 0x10]
lea edx, [esi + 0x41]
push eax
mov word [ebp - 0x10], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x4b0306
dec eax
je 0x4b03f1
jmp 0x4b04dd
push 0x800
call fcn.004e4240
push 0x800
mov ebx, eax
push 0
push ebx
call fcn.004e7d90
push ebx
lea edx, [ebp - 0x10]
call fcn.004afd50
push 9
push ebx
mov dword [ebp - 0x214], eax
mov esi, ebx
call fcn.004e46a9
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x4b03db
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.004e7d90
mov eax, edi
sub eax, esi
sar eax, 1
add eax, eax
push eax
lea ecx, [ebp - 0x210]
push esi
push ecx
call fcn.004eaf30
add esp, 0x18
cmp dword [ebp - 0x214], 0
je 0x4b03c3
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x210]
jmp 0x4b0390
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b03b6
test dx, dx
je 0x4b03b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b03b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b0390
xor eax, eax
jmp 0x4b03bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b0500
lea esi, [edi + 2]
push 9
push esi
call fcn.004e46a9
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b0345
push 0x800
push 0
push ebx
call fcn.004e7d90
push ebx
call fcn.004e424b
add esp, 0x10
push 0x800
call fcn.004e4240
push 0x800
mov ebx, eax
push 0
push ebx
call fcn.004e7d90
push ebx
lea edx, [ebp - 0x10]
call fcn.004afd50
push 9
push ebx
mov dword [ebp - 0x214], eax
mov esi, ebx
call fcn.004e46a9
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x4b04c1
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call fcn.004e7d90
mov ecx, edi
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
lea edx, [ebp - 0x210]
push esi
push edx
call fcn.004eaf30
add esp, 0x18
cmp dword [ebp - 0x214], 0
je 0x4b04a9
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x210]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b049c
test dx, dx
je 0x4b0498
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b049c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b0476
xor eax, eax
jmp 0x4b04a1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b055b
lea esi, [edi + 2]
push 9
push esi
call fcn.004e46a9
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b0430
push 0x800
push 0
push ebx
call fcn.004e7d90
push ebx
call fcn.004e424b
mov esi, dword [ebp - 0x21c]
add esp, 0x10
inc esi
mov dword [ebp - 0x21c], esi
cmp esi, 0x1a
jl 0x4b02c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x218]
mov dword [eax], 2
lea eax, [ebp - 0x10]
mov ecx, eax
sub edx, ecx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4b0520
push 0x800
push 0
push ebx
call fcn.004e7d90
push ebx
call fcn.004e424b
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x220]
mov dword [edx], 3
mov edx, dword [ebp - 0x218]
lea eax, [ebp - 0x10]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4b0574
jmp 0x4b052f