Function at 0x4a098b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x238
mov edi, dword [ebp + 0xc]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x230], eax
lea esi, [esp + 0x28]
mov ecx, esi
push edi
call fcn.0040241c
push esi
call fcn.004a02a4
add esp, 4
cmp byte [esi + 0xb], 0
jns 0x4a09d6
push dword [esp + 0x28]
mov ebx, eax
call fcn.004fe838
mov eax, ebx
add esp, 4
mov bl, 1
test al, al
jne 0x4a0c37
mov eax, dword [ebp + 8]
xor ecx, ecx
lea ebx, [esp + 0x18]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
push ebx
push eax
call fcn.004a04e0
add esp, 8
test al, al
je 0x4a0a22
lea ebx, [esp + 8]
mov ecx, ebx
push edi
call fcn.0040241c
mov cl, byte [ebx + 0xb]
test cl, cl
js 0x4a0a29
movzx eax, cl
cmp word [esp + eax*2 + 6], 0x5c
je 0x4a0a3d
jmp 0x4a0ac6
xor esi, esi
jmp 0x4a0c23
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x4a0ac6
dec eax
lea edx, [esp + 0x14]
lea edi, [esp + 8]
lea ecx, [esp + 0x28]
push edx
push eax
push 0
push edi
call fcn.0041cb56
cmp byte [edi + 0xb], 0
js 0x4a0a68
mov word [esp + 8], 0
mov byte [esp + 0x13], 0
jmp 0x4a0a94
mov eax, dword [esp + 8]
mov word [eax], 0
mov dword [esp + 0xc], 0
cmp byte [esp + 0x13], 0
jns 0x4a0a94
push dword [esp + 8]
call fcn.004fe838
add esp, 4
mov dword [esp + 0x10], 0
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
movsd xmm0, qword [esi]
movsd qword [esp + 8], xmm0
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
cmp byte [esp + 0x33], 0
jns 0x4a0ac2
push dword [esp + 0x28]
call fcn.004fe838
add esp, 4
mov cl, byte [esp + 0x13]
test cl, cl
jns 0x4a0ace
mov ebx, dword [esp + 8]
cmp byte [esp + 0x23], 0
jns 0x4a0adb
mov eax, dword [esp + 0x18]
jmp 0x4a0adf
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.005132cc
add esp, 8
test eax, eax
je 0x4a0b54
lea esi, [esp + 8]
mov ecx, esi
mov edx, esi
call fcn.004a07d5
mov ebx, eax
mov ecx, esi
call fcn.004a0892
test al, al
jne 0x4a0b5b
test bl, bl
je 0x4a0b5b
xor eax, eax
lea edi, [esp + 0x28]
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi + 8], eax
lea ecx, [esp + 0x18]
mov edx, edi
call fcn.004a08ce
test al, al
je 0x4a0b79
cmp byte [esp + 0x13], 0
jns 0x4a0b33
mov esi, dword [esp + 8]
lea edi, [esp + 0x28]
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x4a0b43
mov eax, dword [esp + 0x28]
push esi
push eax
call fcn.005132cc
add esp, 8
test eax, eax
sete bl
jmp 0x4a0b7b
mov bl, 1
jmp 0x4a0c0a
xor ebx, ebx
test al, al
je 0x4a0c0a
mov dword [esp + 4], ebx
mov dword [esp], ebx
cmp byte [esp + 0x13], 0
jns 0x4a0b93
mov eax, dword [esp + 8]
jmp 0x4a0b97
xor ebx, ebx
cmp byte [edi + 0xb], 0
jns 0x4a0c0a
push dword [esp + 0x28]
call fcn.004fe838
add esp, 4
jmp 0x4a0c0a
lea eax, [esp + 8]
mov eax, dword [eax]
mov ecx, esp
mov dword [ecx], eax
lea edi, [esp + 0x28]
push 0x104
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x4a0c0a
cmp eax, 0x104
je 0x4a0c0a
push edi
call fcn.00516c94
add esp, 4
mov esi, eax
movzx eax, byte [esp + 0x13]
test al, al
jns 0x4a0bd2
mov eax, dword [esp + 0xc]
lea ecx, [esi + eax]
add ecx, 0xfffffffe
movzx eax, byte [esp + 0x23]
mov edx, eax
test al, al
jns 0x4a0be7
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jne 0x4a0c08
test al, al
jns 0x4a0bf5
mov eax, dword [esp + 0x18]
jmp 0x4a0bf9
lea eax, [esp + 0x18]
push esi
push edi
push eax
call fcn.00513449
add esp, 0xc
test eax, eax
je 0x4a0c4f
xor ebx, ebx
mov esi, ebx
cmp byte [esp + 0x13], 0
jns 0x4a0c1f
push dword [esp + 8]
call fcn.004fe838
add esp, 4
lea ebx, [esp + 0x18]
cmp byte [ebx + 0xb], 0
jns 0x4a0c35
push dword [esp + 0x18]
call fcn.004fe838
add esp, 4
mov ebx, esi
mov ecx, dword [esp + 0x230]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0xc]
mov eax, dword [ecx - 4]
add eax, 4
cmp byte [ecx + 7], 0
cmovns eax, ecx
cmp byte [esp + 0x23], 0
jns 0x4a0c6d
mov ecx, dword [esp + 0x18]
jmp 0x4a0c71
lea ecx, [esp + 0x18]
lea ecx, [ecx + esi*2]
push eax
push ecx
call fcn.005132cc
add esp, 8
test eax, eax
sete bl
jmp 0x4a0c0a