Function at 0x604400
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c3646
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x7ca00c]
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 ebx, edx
mov esi, ecx
mov dword [ebp - 0x444], esi
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.006501e0
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
jne 0x60450f
test ebx, ebx
je 0x604489
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetLogicalDriveStrings_API
push str.HardwareUtils
push 0x701e7c
push 0x32
push ebx
jmp 0x6044f8
cmp dword [0x7eb9f0], 0
je 0x6044ce
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
mov ecx, esi
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetLogicalDriveStrings_API
push 0x701e7c
push 0x701e7c
push str.HardwareUtils
push 0x7721a4
push 0x32
call dword [0x6ef350]
call esi
add esp, 0x1c
xor al, al
jmp 0x60459f
mov esi, dword [0x7eb9f4]
test esi, esi
je 0x604508
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetLogicalDriveStrings_API
push str.HardwareUtils
push 0x701e7c
push 0x32
push dword [0x7eb9f4]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
xor al, al
jmp 0x60459f
cmp word [ebp - 0x410], 0
lea edi, [ebp - 0x410]
je 0x60459d
nop
push edi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
je 0x6045de
test ebx, ebx
je 0x60455b
mov esi, dword [ebx]
push edi
push str.Skipping_drive__s_as_it_is_not_a_fixed_drive
push str.HardwareUtils
push 0x701e7c
push 0x14
push ebx
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
jmp 0x60458e
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x6045bb
push edi
push str.Skipping_drive__s_as_it_is_not_a_fixed_drive
push 0x701e7c
push 0x701e7c
push str.HardwareUtils
push 0x7721a4
push 0x14
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x1c
mov esi, dword [ebp - 0x444]
add edi, 8
cmp word [edi], 0
jne 0x604520
mov al, 1
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.0063de71
mov esp, ebp
pop ebp
ret
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x60458e
mov esi, dword [eax]
push edi
push str.Skipping_drive__s_as_it_is_not_a_fixed_drive
push str.HardwareUtils
push 0x701e7c
push 0x14
push eax
jmp 0x604549
lea eax, [ebp - 0x418]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x438]
movq qword [ebp - 0x440], xmm0
push eax
lea eax, [ebp - 0x440]
movq qword [ebp - 0x438], xmm0
push eax
push edi
movq qword [ebp - 0x418], xmm0
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
jne 0x6046a9
test ebx, ebx
je 0x604640
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetDiskFreeSpaceEx_API
push str.HardwareUtils
push 0x701e7c
push 0x32
jmp 0x604548
cmp dword [0x7eb9f0], 0
je 0x604676
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetDiskFreeSpaceEx_API
push 0x701e7c
push 0x701e7c
push str.HardwareUtils
push 0x7721a4
push 0x32
jmp 0x604581
mov esi, dword [0x7eb9f4]
test esi, esi
je 0x60458e
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.In_MemoryUtils::GetFreeSpaceOnHD._Got_error___d__in_GetDiskFreeSpaceEx_API
push str.HardwareUtils
push 0x701e7c
push 0x32
push dword [0x7eb9f4]
jmp 0x604549
mov ecx, dword [ebp - 0x418]
xor edx, edx
mov eax, dword [ebp - 0x414]
shrd ecx, eax, 0x1e
mov dword [ebp - 0x420], 0
shr eax, 0x1e
mov dword [ebp - 0x41c], 7
mov word [ebp - 0x430], dx
push eax
push ecx
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], edx
call fcn.005dd4b0
add esp, 8
mov dword [ebp - 0x44c], 0
xor eax, eax
mov dword [ebp - 0x448], 7
mov word [ebp - 0x45c], ax
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x604710
sub eax, edx
lea ecx, [ebp - 0x45c]
sar eax, 1
push eax
push edi
call fcn.00428800
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004390d0
lea ecx, [ebp - 0x430]
cmp eax, ecx
je 0x604764
cmp dword [ebp - 0x41c], 8
push dword [ebp - 0x420]
cmovae ecx, dword [ebp - 0x430]
push ecx
mov ecx, eax
call fcn.00428800
lea ecx, [ebp - 0x45c]
call fcn.00428770
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], 0xffffffff
call fcn.00428770
jmp 0x604594