Function at 0x4a525b
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 [0x6401e4]
xor eax, ebp
mov dword [esp + 0x230], eax
lea esi, [esp + 0x28]
mov ecx, esi
push edi
call fcn.0041be7c
push esi
call fcn.004a4b74
add esp, 4
cmp byte [esi + 0xb], 0
jns 0x4a52a6
push dword [esp + 0x28]
mov ebx, eax
call fcn.00596316
mov eax, ebx
add esp, 4
mov bl, 1
test al, al
jne 0x4a5507
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.004a4db0
add esp, 8
test al, al
je 0x4a52f2
lea ebx, [esp + 8]
mov ecx, ebx
push edi
call fcn.0041be7c
mov cl, byte [ebx + 0xb]
test cl, cl
js 0x4a52f9
movzx eax, cl
cmp word [esp + eax*2 + 6], 0x5c
je 0x4a530d
jmp 0x4a5396
xor esi, esi
jmp 0x4a54f3
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x4a5396
dec eax
lea edx, [esp + 0x14]
lea edi, [esp + 8]
lea ecx, [esp + 0x28]
push edx
push eax
push 0
push edi
call fcn.00478ee8
cmp byte [edi + 0xb], 0
js 0x4a5338
mov word [esp + 8], 0
mov byte [esp + 0x13], 0
jmp 0x4a5364
mov eax, dword [esp + 8]
mov word [eax], 0
mov dword [esp + 0xc], 0
cmp byte [esp + 0x13], 0
jns 0x4a5364
push dword [esp + 8]
call fcn.00596316
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 0x4a5392
push dword [esp + 0x28]
call fcn.00596316
add esp, 4
mov cl, byte [esp + 0x13]
test cl, cl
jns 0x4a539e
mov ebx, dword [esp + 8]
cmp byte [esp + 0x23], 0
jns 0x4a53ab
mov eax, dword [esp + 0x18]
jmp 0x4a53af
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.005ac8e5
add esp, 8
test eax, eax
je 0x4a5424
lea esi, [esp + 8]
mov ecx, esi
mov edx, esi
call fcn.004a50a5
mov ebx, eax
mov ecx, esi
call fcn.004a5162
test al, al
jne 0x4a542b
test bl, bl
je 0x4a542b
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.004a519e
test al, al
je 0x4a5449
cmp byte [esp + 0x13], 0
jns 0x4a5403
mov esi, dword [esp + 8]
lea edi, [esp + 0x28]
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x4a5413
mov eax, dword [esp + 0x28]
push esi
push eax
call fcn.005ac8e5
add esp, 8
test eax, eax
sete bl
jmp 0x4a544b
mov bl, 1
jmp 0x4a54da
xor ebx, ebx
test al, al
je 0x4a54da
mov dword [esp + 4], ebx
mov dword [esp], ebx
cmp byte [esp + 0x13], 0
jns 0x4a5463
mov eax, dword [esp + 8]
jmp 0x4a5467
xor ebx, ebx
cmp byte [edi + 0xb], 0
jns 0x4a54da
push dword [esp + 0x28]
call fcn.00596316
add esp, 4
jmp 0x4a54da
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 0x4a54da
cmp eax, 0x104
je 0x4a54da
push edi
call fcn.005b0e94
add esp, 4
mov esi, eax
movzx eax, byte [esp + 0x13]
test al, al
jns 0x4a54a2
mov eax, dword [esp + 0xc]
lea ecx, [esi + eax]
add ecx, 0xfffffffe
movzx eax, byte [esp + 0x23]
mov edx, eax
test al, al
jns 0x4a54b7
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jne 0x4a54d8
test al, al
jns 0x4a54c5
mov eax, dword [esp + 0x18]
jmp 0x4a54c9
lea eax, [esp + 0x18]
push esi
push edi
push eax
call fcn.005aca62
add esp, 0xc
test eax, eax
je 0x4a551f
xor ebx, ebx
mov esi, ebx
cmp byte [esp + 0x13], 0
jns 0x4a54ef
push dword [esp + 8]
call fcn.00596316
add esp, 4
lea ebx, [esp + 0x18]
cmp byte [ebx + 0xb], 0
jns 0x4a5505
push dword [esp + 0x18]
call fcn.00596316
add esp, 4
mov ebx, esi
mov ecx, dword [esp + 0x230]
xor ecx, ebp
call fcn.00596351
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 0x4a553d
mov ecx, dword [esp + 0x18]
jmp 0x4a5541
lea ecx, [esp + 0x18]
lea ecx, [ecx + esi*2]
push eax
push ecx
call fcn.005ac8e5
add esp, 8
test eax, eax
sete bl
jmp 0x4a54da