Function at 0x4ae280
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5552b0]
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 0x4ae2c0
movzx ecx, word [eax + 0x526204]
mov word [ebp + eax - 0x10], cx
add eax, 2
test cx, cx
jne 0x4ae2c0
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 0x4ae2f6
dec eax
je 0x4ae3e1
jmp 0x4ae4cd
push 0x800
call fcn.004e5420
push 0x800
mov ebx, eax
push 0
push ebx
call fcn.004e8ba0
push ebx
lea edx, [ebp - 0x10]
call fcn.004add40
push 9
push ebx
mov dword [ebp - 0x214], eax
mov esi, ebx
call fcn.004e53f9
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x4ae3cb
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.004e8ba0
mov eax, edi
sub eax, esi
sar eax, 1
add eax, eax
push eax
lea ecx, [ebp - 0x210]
push esi
push ecx
call fcn.004ebc70
add esp, 0x18
cmp dword [ebp - 0x214], 0
je 0x4ae3b3
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x210]
jmp 0x4ae380
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ae3a6
test dx, dx
je 0x4ae3a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ae3a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ae380
xor eax, eax
jmp 0x4ae3ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4ae4f0
lea esi, [edi + 2]
push 9
push esi
call fcn.004e53f9
mov edi, eax
add esp, 8
test edi, edi
jne 0x4ae335
push 0x800
push 0
push ebx
call fcn.004e8ba0
push ebx
call fcn.004e577a
add esp, 0x10
push 0x800
call fcn.004e5420
push 0x800
mov ebx, eax
push 0
push ebx
call fcn.004e8ba0
push ebx
lea edx, [ebp - 0x10]
call fcn.004add40
push 9
push ebx
mov dword [ebp - 0x214], eax
mov esi, ebx
call fcn.004e53f9
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x4ae4b1
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call fcn.004e8ba0
mov ecx, edi
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
lea edx, [ebp - 0x210]
push esi
push edx
call fcn.004ebc70
add esp, 0x18
cmp dword [ebp - 0x214], 0
je 0x4ae499
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x210]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ae48c
test dx, dx
je 0x4ae488
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ae48c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ae466
xor eax, eax
jmp 0x4ae491
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4ae54b
lea esi, [edi + 2]
push 9
push esi
call fcn.004e53f9
mov edi, eax
add esp, 8
test edi, edi
jne 0x4ae420
push 0x800
push 0
push ebx
call fcn.004e8ba0
push ebx
call fcn.004e577a
mov esi, dword [ebp - 0x21c]
add esp, 0x10
inc esi
mov dword [ebp - 0x21c], esi
cmp esi, 0x1a
jl 0x4ae2b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4746
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 0x4ae510
push 0x800
push 0
push ebx
call fcn.004e8ba0
push ebx
call fcn.004e577a
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004e4746
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 0x4ae564
jmp 0x4ae51f