Function at 0x476490
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe60
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4769b6
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov esi, eax
push 0x20
lea eax, [ebp - 0x61]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x105
lea eax, [ebp - 0x82]
push eax
lea eax, [ebp - 0x88]
mov edx, ebx
call fcn.00404968
lea eax, [ebp - 0x88]
mov edx, 0x4769d0
call fcn.00404a48
mov eax, dword [ebp - 0x88]
call fcn.00404c40
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x476549
mov eax, edi
mov edx, 0x4769dc
call fcn.004047d4
lea edx, [ebp - 0x8c]
lea eax, [ebp - 0x82]
call fcn.0040960c
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 4]
call fcn.004047d4
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x90]
mov eax, 8
call fcn.00408b48
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 8]
call fcn.004047d4
lea edx, [ebp - 0x94]
lea eax, [ebp - 0x61]
call fcn.0040960c
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp + 0x14]
call fcn.004047d4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x98]
mov edx, ebx
call fcn.00404968
lea eax, [ebp - 0x98]
mov edx, 0x4769d0
call fcn.00404a48
mov eax, dword [ebp - 0x98]
call fcn.00404c40
push eax
mov eax, dword [0x489b18]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x4765f7
mov eax, edi
mov edx, 0x4769fc
call fcn.00404a48
push esi
call sub.kernel32.dll_SetErrorMode
cmp dword [ebp - 0x24], 0
jne 0x47660e
cmp dword [ebp - 0x28], 0x400
jae 0x476639
jmp 0x476610
jge 0x476639
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x9c]
call fcn.00408af8
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp + 0x10]
mov ecx, 0x476a18
call fcn.00404a8c
jmp 0x4767c1
cmp dword [ebp - 0x24], 0
jne 0x47664a
cmp dword [ebp - 0x28], 0xfa000
jae 0x476698
jmp 0x47664c
jge 0x476698
fild qword [ebp - 0x28]
fdiv dword [0x476a20]
fstp qword [ebp - 0x40]
wait
fld qword [ebp - 0x40]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [ebp - 0x19c]
mov edx, 2
xor eax, eax
call fcn.004033c8
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x34]
call fcn.004049e4
mov eax, dword [ebp + 0x10]
mov ecx, 0x476a2c
mov edx, dword [ebp - 0x34]
call fcn.00404a8c
jmp 0x4767c1
cmp dword [ebp - 0x24], 0
jne 0x4766a9
cmp dword [ebp - 0x28], 0x3d090000
jae 0x4766fd
jmp 0x4766ab
jge 0x4766fd
fild qword [ebp - 0x28]
fdiv dword [0x476a20]
fdiv dword [0x476a20]
fstp qword [ebp - 0x40]
wait
fld qword [ebp - 0x40]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [ebp - 0x19c]
mov edx, 2
xor eax, eax
call fcn.004033c8
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x34]
call fcn.004049e4
mov eax, dword [ebp + 0x10]
mov ecx, 0x476a38
mov edx, dword [ebp - 0x34]
call fcn.00404a8c
jmp 0x4767c1
cmp dword [ebp - 0x24], 0xee
jne 0x476711
cmp dword [ebp - 0x28], 0x6b280000
jae 0x476768
jmp 0x476713
jge 0x476768
fild qword [ebp - 0x28]
fdiv dword [0x476a20]
fdiv dword [0x476a20]
fdiv dword [0x476a20]
fstp qword [ebp - 0x40]
wait
fld qword [ebp - 0x40]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [ebp - 0x19c]
mov edx, 2
xor eax, eax
call fcn.004033c8
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x34]
call fcn.004049e4
mov eax, dword [ebp + 0x10]
mov ecx, 0x476a44
mov edx, dword [ebp - 0x34]
call fcn.00404a8c
jmp 0x4767c1
fild qword [ebp - 0x28]
fdiv dword [0x476a20]
fdiv dword [0x476a20]
fdiv dword [0x476a20]
fdiv dword [0x476a20]
fstp qword [ebp - 0x40]
wait
fld qword [ebp - 0x40]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [ebp - 0x19c]
mov edx, 2
xor eax, eax
call fcn.004033c8
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x34]
call fcn.004049e4
mov eax, dword [ebp + 0x10]
mov ecx, 0x476a50
mov edx, dword [ebp - 0x34]
call fcn.00404a8c
cmp dword [ebp - 0x2c], 0
jne 0x4767d2
cmp dword [ebp - 0x30], 0x400
jae 0x4767fd
jmp 0x4767d4
jge 0x4767fd
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebp - 0x1a0]
call fcn.00408af8
mov edx, dword [ebp - 0x1a0]
mov eax, dword [ebp + 0xc]
mov ecx, 0x476a18
call fcn.00404a8c
jmp 0x476985
cmp dword [ebp - 0x24], 0
jne 0x47680e
cmp dword [ebp - 0x28], 0xfa000
jae 0x47685c
jmp 0x476810
jge 0x47685c
fild qword [ebp - 0x30]
fdiv dword [0x476a20]
fstp qword [ebp - 0x40]
wait
fld qword [ebp - 0x40]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [ebp - 0x19c]
mov edx, 2
xor eax, eax
call fcn.004033c8
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x34]
call fcn.004049e4
mov eax, dword [ebp + 0xc]
mov ecx, 0x476a2c
mov edx, dword [ebp - 0x34]
call fcn.00404a8c
jmp 0x476985
cmp dword [ebp - 0x2c], 0
jne 0x47686d
cmp dword [ebp - 0x30], 0x3d090000
jae 0x4768c1
jmp 0x47686f
jge 0x4768c1
fild qword [ebp - 0x30]
fdiv dword [0x476a20]
fdiv dword [0x476a20]
fstp qword [ebp - 0x40]
wait
fld qword [ebp - 0x40]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [ebp - 0x19c]
mov edx, 2
xor eax, eax
call fcn.004033c8
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x34]
call fcn.004049e4
mov eax, dword [ebp + 0xc]
mov ecx, 0x476a38
mov edx, dword [ebp - 0x34]
call fcn.00404a8c
jmp 0x476985
cmp dword [ebp - 0x2c], 0xee
jne 0x4768d5
cmp dword [ebp - 0x30], 0x6b280000
jae 0x47692c
jmp 0x4768d7
jge 0x47692c
fild qword [ebp - 0x30]
fdiv dword [0x476a20]
fdiv dword [0x476a20]
fdiv dword [0x476a20]
fstp qword [ebp - 0x40]
wait
fld qword [ebp - 0x40]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [ebp - 0x19c]
mov edx, 2
xor eax, eax
call fcn.004033c8
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x34]
call fcn.004049e4
mov eax, dword [ebp + 0xc]
mov ecx, 0x476a44
mov edx, dword [ebp - 0x34]
call fcn.00404a8c
jmp 0x476985
fild qword [ebp - 0x30]
fdiv dword [0x476a20]
fdiv dword [0x476a20]
fdiv dword [0x476a20]
fdiv dword [0x476a20]
fstp qword [ebp - 0x40]
wait
fld qword [ebp - 0x40]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [ebp - 0x19c]
mov edx, 2
xor eax, eax
call fcn.004033c8
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x34]
call fcn.004049e4
mov eax, dword [ebp + 0xc]
mov ecx, 0x476a50
mov edx, dword [ebp - 0x34]
call fcn.00404a8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4769bd
lea eax, [ebp - 0x1a0]
call fcn.00404780
lea eax, [ebp - 0x9c]
mov edx, 6
call fcn.004047a4
lea eax, [ebp - 0x34]
call fcn.00404780
ret