Function at 0x474c57
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 [0x530f98]
xor eax, ebp
mov dword [esp + 0x230], eax
lea esi, [esp + 0x28]
mov ecx, esi
push edi
call fcn.0040394a
push esi
call fcn.00474570
add esp, 4
cmp byte [esi + 0xb], 0
jns 0x474ca2
push dword [esp + 0x28]
mov ebx, eax
call fcn.004af3c6
mov eax, ebx
add esp, 4
mov bl, 1
test al, al
jne 0x474f1c
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.004747ac
add esp, 8
test al, al
je 0x474cee
lea ebx, [esp + 8]
mov ecx, ebx
push edi
call fcn.0040394a
mov cl, byte [ebx + 0xb]
test cl, cl
js 0x474cf5
movzx eax, cl
cmp word [esp + eax*2 + 6], 0x5c
je 0x474d09
jmp 0x474d92
xor esi, esi
jmp 0x474f08
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x474d92
dec eax
lea edx, [esp + 0x14]
lea edi, [esp + 8]
lea ecx, [esp + 0x28]
push edx
push eax
push 0
push edi
call fcn.004298c8
cmp byte [edi + 0xb], 0
js 0x474d34
mov word [esp + 8], 0
mov byte [esp + 0x13], 0
jmp 0x474d60
mov eax, dword [esp + 8]
mov word [eax], 0
mov dword [esp + 0xc], 0
cmp byte [esp + 0x13], 0
jns 0x474d60
push dword [esp + 8]
call fcn.004af3c6
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 0x474d8e
push dword [esp + 0x28]
call fcn.004af3c6
add esp, 4
mov cl, byte [esp + 0x13]
test cl, cl
jns 0x474d9a
mov ebx, dword [esp + 8]
cmp byte [esp + 0x23], 0
jns 0x474da7
mov eax, dword [esp + 0x18]
jmp 0x474dab
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.004cc5fc
add esp, 8
test eax, eax
je 0x474e20
lea esi, [esp + 8]
mov ecx, esi
mov edx, esi
call fcn.00474aa1
mov ebx, eax
mov ecx, esi
call fcn.00474b5e
test al, al
jne 0x474e27
test bl, bl
je 0x474e27
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.00474b9a
test al, al
je 0x474e45
cmp byte [esp + 0x13], 0
jns 0x474dff
mov esi, dword [esp + 8]
lea edi, [esp + 0x28]
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x474e0f
mov eax, dword [esp + 0x28]
push esi
push eax
call fcn.004cc5fc
add esp, 8
test eax, eax
sete bl
jmp 0x474e47
mov bl, 1
jmp 0x474eef
xor ebx, ebx
test al, al
je 0x474eef
mov dword [esp + 4], ebx
mov dword [esp], ebx
cmp byte [esp + 0x13], 0
jns 0x474e62
mov eax, dword [esp + 8]
jmp 0x474e66
xor ebx, ebx
cmp byte [edi + 0xb], 0
jns 0x474eef
push dword [esp + 0x28]
call fcn.004af3c6
add esp, 4
jmp 0x474eef
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]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x474e90
mov bl, 1
cmp eax, 5
je 0x474eef
xor ebx, ebx
cmp esi, 2
jb 0x474eef
cmp esi, 0x104
je 0x474eef
push edi
call fcn.004d03ae
add esp, 4
mov esi, eax
movzx eax, byte [esp + 0x13]
test al, al
jns 0x474eb7
mov eax, dword [esp + 0xc]
lea ecx, [esi + eax]
add ecx, 0xfffffffe
movzx eax, byte [esp + 0x23]
mov edx, eax
test al, al
jns 0x474ecc
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jne 0x474eed
test al, al
jns 0x474eda
mov eax, dword [esp + 0x18]
jmp 0x474ede
lea eax, [esp + 0x18]
push esi
push edi
push eax
call fcn.004cc9b8
add esp, 0xc
test eax, eax
je 0x474f34
xor ebx, ebx
mov esi, ebx
cmp byte [esp + 0x13], 0
jns 0x474f04
push dword [esp + 8]
call fcn.004af3c6
add esp, 4
lea ebx, [esp + 0x18]
cmp byte [ebx + 0xb], 0
jns 0x474f1a
push dword [esp + 0x18]
call fcn.004af3c6
add esp, 4
mov ebx, esi
mov ecx, dword [esp + 0x230]
xor ecx, ebp
call fcn.004af401
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 0x474f52
mov ecx, dword [esp + 0x18]
jmp 0x474f56
lea ecx, [esp + 0x18]
lea ecx, [ecx + esi*2]
push eax
push ecx
call fcn.004cc5fc
add esp, 8
test eax, eax
sete bl
jmp 0x474eef