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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9a0
mov dword [ebp - 0x38], ecx
mov byte [ebp - 0x31], dl
mov dword [ebp - 0x30], eax
mov eax, 0x6ef054
call fcn.0066ce04
mov edx, dword [0x6e7624]
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x422fbe
mov eax, dword [ebp - 0x2c]
mov dword fs:[0], eax
jmp 0x423247
mov eax, dword [ebp - 0x3c]
call fcn.00653588
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x42323e
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x423225
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
dec edx
jne 0x423225
mov ecx, dword [ebp - 0x44]
mov al, byte [ecx + 4]
mov dl, byte [ebp - 0x31]
cmp al, dl
jne 0x423225
mov ecx, dword [ebp - 0x44]
add ecx, 0x1c
push ecx
lea eax, [ebp - 0x460]
push eax
call fcn.0066c9ec
add esp, 8
push 0x6eb5cb
lea edx, [ebp - 0x460]
push edx
call fcn.0066c910
add esp, 8
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x423159
lea eax, [ebp - 0x54]
push eax
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x460]
push edx
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 0x40]
call fcn.00653c68
mov edx, dword [ebp - 0x44]
movsx ecx, byte [edx + 4]
push ecx
push 0x6eb5cd
lea eax, [ebp - 0x560]
push eax
call fcn.00670e94
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0x100
lea eax, [ebp - 0x660]
push eax
lea edx, [ebp - 0x560]
push edx
call sub.KERNEL32.DLL_GetVolumeInformationA
mov ecx, dword [ebp - 0x44]
movsx eax, byte [ecx + 4]
push eax
lea edx, [ebp - 0x660]
push edx
push 0x6eb5d2
lea ecx, [ebp - 0x560]
push ecx
call fcn.00670e94
add esp, 0x10
mov word [ebp - 0x1c], 8
lea edx, [ebp - 0x560]
lea eax, [ebp - 4]
call fcn.0067ceb4
inc dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [ebp - 0x40]
call fcn.00652ce4
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0067d0a0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x338]
mov eax, dword [eax + 0x26c]
call fcn.00654460
lea edx, [ebp - 0x460]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
call fcn.00418cb0
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x338]
mov eax, dword [ecx + 0x26c]
call fcn.006544ac
jmp 0x42321c
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x50]
push ecx
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x460]
push ecx
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x18], eax
push dword [ebp - 0x60]
call sub.KERNEL32.DLL_SetErrorMode
push dword [0x8265bc]
lea ecx, [ebp - 0x660]
push ecx
call fcn.0066c9ec
add esp, 8
mov eax, dword [ebp - 0x44]
movsx edx, byte [eax + 4]
push edx
lea ecx, [ebp - 0x660]
push ecx
push 0x6eb5da
lea eax, [ebp - 0x560]
push eax
call fcn.00670e94
add esp, 0x10
mov word [ebp - 0x1c], 0x14
lea edx, [ebp - 0x560]
lea eax, [ebp - 8]
call fcn.0067ceb4
inc dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [ebp - 0x40]
call fcn.00652ce4
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0067d0a0
mov eax, dword [ebp - 0x40]
call fcn.00653c68
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
call fcn.00653578
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
test ecx, ecx
jne 0x422fd4
mov eax, dword [ebp - 0x2c]
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret