Function at 0x479e28
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push esi
push edi
xor edx, edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47a08a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x6c]
mov ecx, 0x47a0a0
call fcn.00405304
mov eax, dword [ebp - 0x6c]
call fcn.0040547c
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 2
je 0x479e79
dec eax
je 0x479ea2
sub eax, 2
je 0x479eb2
jmp 0x47a074
mov eax, dword [ebp - 4]
cmp byte [eax + 0x58], 0
je 0x479e92
mov eax, dword [0x486dac]
mov esi, eax
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x479ec0
mov eax, dword [0x486bdc]
mov esi, eax
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x479ec0
mov eax, dword [0x486bdc]
mov esi, eax
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x479ec0
mov eax, dword [0x486b64]
mov esi, eax
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x12
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call sub.setupapi.dll_SetupDiGetClassDevsA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x47a074
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x47a06d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x1c
call fcn.004038b8
mov dword [ebp - 0x68], 0x1c
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.setupapi.dll_SetupDiEnumDeviceInterfaces
test eax, eax
jne 0x479f3a
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x103
je 0x47a056
call fcn.0040e5b8
jmp 0x47a056
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.setupapi.dll_SetupDiGetDeviceInterfaceDetailA
test eax, eax
jne 0x479f6d
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x479f66
call fcn.0040e5b8
jmp 0x479f6d
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x1c
call fcn.004038b8
mov dword [ebp - 0x4c], 0x1c
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
call fcn.00402eb0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x47a047
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov dword [eax], 5
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.setupapi.dll_SetupDiGetDeviceInterfaceDetailA
test eax, eax
jne 0x479fce
call fcn.0040e5b8
lea eax, [ebp - 0x18]
push eax
mov ecx, 0xf
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
call fcn.00477120
test al, al
je 0x47a031
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0047a0a4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x20]
jne 0x47a031
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x60], edx
mov eax, dword [ebp - 4]
lea edi, [eax + 0x64]
lea esi, [ebp - 0x4c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x5c], edx
call fcn.00404a0c
jmp 0x47a056
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a04e
mov eax, dword [ebp - 0x10]
call fcn.00402ecc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a074
mov eax, dword [ebp - 0xc]
push eax
call sub.setupapi.dll_SetupDiDestroyDeviceInfoList
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a091
lea eax, [ebp - 0x6c]
call fcn.00404fec
ret