Function at 0x479550
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f0191
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x65bf90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [ebp + 8]
cmp al, 0x41
jl 0x479589
cmp al, 0x5a
jle 0x479595
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x479823
lea edx, [eax - 0x61]
cmp dl, 0x19
ja 0x4795a2
add al, 0xe0
mov byte [ebp + 8], al
lea eax, [ebp - 0x110]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [ebp - 0x110], 0
lea esi, [ebp - 0x110]
je 0x479823
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [ecx]
mov bl, byte [esi]
mov byte [ebp - 0x130], bl
lea ecx, [ebx - 0x61]
cmp cl, 0x19
ja 0x4795e9
add bl, 0xe0
mov byte [ebp - 0x130], bl
push esi
call edi
cmp byte [ebp + 8], bl
jne 0x4795f6
cmp eax, 3
je 0x479603
add esi, 4
cmp byte [esi], 0
jne 0x4795d0
jmp 0x479823
mov edx, dword [ebp - 0x130]
push 1
push edx
lea ecx, [ebp - 0x130]
call fcn.0047b1b0
push 0x62e56c
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x134]
push ecx
mov dword [ebp - 4], 0
call fcn.00405b74
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x134]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x138], esp
mov esi, esp
push eax
call fcn.00405bf0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0x12c]
call fcn.00479460
add esp, 4
mov edi, dword [ebp - 0x11c]
mov esi, edi
cmp edi, 4
jb 0x47967c
mov esi, 4
cmp dword [ebp - 0x118], 0x10
mov edx, dword [ebp - 0x12c]
jae 0x479691
lea edx, [ebp - 0x12c]
mov ecx, str.NTFS
cmp esi, 4
jb 0x4796b4
jmp 0x4796a0
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4796b8
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x4796a0
test esi, esi
je 0x4796fb
movzx ebx, byte [ecx]
movzx eax, byte [edx]
sub eax, ebx
jne 0x4796f3
cmp esi, 1
jbe 0x4796fb
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x4796f3
cmp esi, 2
jbe 0x4796fb
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x4796f3
cmp esi, 3
jbe 0x4796fb
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jmp 0x4796fd
xor eax, eax
xor esi, esi
cmp eax, esi
jne 0x4797a5
cmp edi, 4
jb 0x4797a5
xor eax, eax
cmp edi, 4
setne al
cmp eax, esi
jne 0x4797a5
cmp dword [ebp - 0x118], 0x10
jb 0x479738
mov edx, dword [ebp - 0x12c]
push edx
call fcn.004ba2af
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], esi
mov byte [ebp - 0x12c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479775
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47979e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x479825
cmp dword [ebp - 0x118], 0x10
jb 0x4797bd
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.004ba2af
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], esi
mov byte [ebp - 0x12c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4797fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479823
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bdb17
mov esp, ebp
pop ebp
ret