Function at 0x479268
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdac
xor edx, edx
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47957c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00404fec
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 4]
add eax, 0x50
call fcn.00404fec
push 0x104
lea eax, [ebp - 0x236]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
lea eax, [ebp - 0x131]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x23c]
mov ecx, 0x479590
call fcn.00405304
mov eax, dword [ebp - 0x23c]
call fcn.0040547c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x479410
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x240]
mov ecx, 0x479590
call fcn.00405304
mov eax, dword [ebp - 0x240]
call fcn.0040547c
push eax
mov eax, dword [0x486d38]
mov eax, dword [eax]
call eax
lea eax, [ebp - 0x244]
lea edx, [ebp - 0x131]
mov ecx, 0x105
call fcn.0040525c
cmp dword [ebp - 0x244], 0
je 0x4793b4
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x131]
mov ecx, 0x105
call fcn.0040525c
mov eax, dword [ebp - 4]
add eax, 8
mov edx, dword [ebp - 0x2c]
call fcn.00405040
mov eax, dword [ebp - 4]
add eax, 0x50
lea edx, [ebp - 0x236]
mov ecx, 0x105
call fcn.0040525c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x24], edx
jmp 0x4794aa
push 0
push 0
push 3
push 0
push 3
push 0
push 0x47959c
mov eax, dword [ebp - 4]
push dword [eax + 4]
push 0x4795ac
lea eax, [ebp - 0x248]
mov edx, 3
call fcn.00405380
mov eax, dword [ebp - 0x248]
call fcn.0040547c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4794a3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
push 0x2d4800
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x47948c
mov eax, dword [ebp - 4]
add eax, 8
mov edx, dword [ebp - 0x2c]
call fcn.00405040
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4794aa
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x4794de
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3a], 0
je 0x4794ce
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x4795b8
call fcn.00405040
jmp 0x4794de
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x4795d0
call fcn.00405040
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
push dword [eax + 0x10]
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 4]
call fcn.004795dc
mov edx, dword [ebp - 0x24c]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00405040
mov eax, dword [ebp - 4]
push dword [eax + 0x24]
push dword [eax + 0x20]
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 4]
call fcn.004795dc
mov edx, dword [ebp - 0x250]
mov eax, dword [ebp - 4]
add eax, 0x44
call fcn.00405040
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea edx, [ebp - 0x254]
mov eax, dword [ebp - 4]
call fcn.004795dc
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00405040
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479583
lea eax, [ebp - 0x254]
mov edx, 7
call fcn.00405010
lea eax, [ebp - 0x2c]
call fcn.00404fec
ret