Function at 0x408700
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4565fa
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x473b98]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push esi
push edi
mov eax, dword [0x473b98]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov edi, dword [esp + 0x150]
xor esi, esi
mov dword [esp + 0x148], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], esi
call fcn.00420f49
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40876c
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x148], 1
call fcn.00420f49
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4087a1
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x148], 2
call fcn.00420f49
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4087d3
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x148], 3
mov eax, 1
xor edx, edx
cpuid
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x28]
push str._08X_08X
push eax
call fcn.004012d0
add esp, 0x10
mov eax, 3
xor ecx, ecx
xor edx, edx
cpuid
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x38]
push str._08X_08X
push eax
call fcn.004012d0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.004069d0
add esp, 0x1c
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x14c], 4
call fcn.004084f0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x148], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408895
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x80
lea ecx, [esp + 0x40]
push ecx
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0x80
lea eax, [esp + 0xd4]
push eax
push 0x45bd2c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
call fcn.00420f49
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4088da
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push 0x45bd64
push edx
mov byte [esp + 0x154], 5
call fcn.004012d0
add esp, 0xc
call fcn.00420f49
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408923
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
push 5
push 3
lea ecx, [esp + 0x2c]
push ecx
mov bl, 6
lea ecx, [esp + 0x28]
mov byte [esp + 0x154], bl
call fcn.00408170
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 7
call fcn.004084f0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x148], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408987
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
push 0xd
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x34]
call fcn.00408170
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x150], 8
call fcn.00408320
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x148], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4089d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00420f49
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4089f2
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ebx, 1
mov dword [esp + 0x34], ebx
call fcn.00407080
mov esi, dword [esp + 0x2c]
push eax
push esi
push str._s_d
push edi
call fcn.004012d0
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [esp + 0x148], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x148], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x148], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x148], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408abd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x148], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ae5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0043f7cd
add esp, 0x13c
ret