Function at 0x4230bc
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, 0x6f390c
call fcn.0066d220
mov edx, dword [0x6ebeec]
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x4230f6
mov eax, dword [ebp - 0x2c]
mov dword fs:[0], eax
jmp 0x42337f
mov eax, dword [ebp - 0x3c]
call fcn.006539a4
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x423376
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x42335d
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 0x42335d
mov ecx, dword [ebp - 0x44]
mov al, byte [ecx + 4]
mov dl, byte [ebp - 0x31]
cmp al, dl
jne 0x42335d
mov ecx, dword [ebp - 0x44]
add ecx, 0x1c
push ecx
lea eax, [ebp - 0x460]
push eax
call fcn.0066ce08
add esp, 8
push 0x6efe81
lea edx, [ebp - 0x460]
push edx
call fcn.0066cd2c
add esp, 8
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x423291
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.00654084
mov edx, dword [ebp - 0x44]
movsx ecx, byte [edx + 4]
push ecx
push 0x6efe83
lea eax, [ebp - 0x560]
push eax
call fcn.006712b0
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 0x6efe88
lea ecx, [ebp - 0x560]
push ecx
call fcn.006712b0
add esp, 0x10
mov word [ebp - 0x1c], 8
lea edx, [ebp - 0x560]
lea eax, [ebp - 4]
call fcn.0067d2d0
inc dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [ebp - 0x40]
call fcn.00653100
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0067d4bc
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x338]
mov eax, dword [eax + 0x26c]
call fcn.0065487c
lea edx, [ebp - 0x460]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
call fcn.00418de8
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x338]
mov eax, dword [ecx + 0x26c]
call fcn.006548c8
jmp 0x423354
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 [0x833f90]
lea ecx, [ebp - 0x660]
push ecx
call fcn.0066ce08
add esp, 8
mov eax, dword [ebp - 0x44]
movsx edx, byte [eax + 4]
push edx
lea ecx, [ebp - 0x660]
push ecx
push 0x6efe90
lea eax, [ebp - 0x560]
push eax
call fcn.006712b0
add esp, 0x10
mov word [ebp - 0x1c], 0x14
lea edx, [ebp - 0x560]
lea eax, [ebp - 8]
call fcn.0067d2d0
inc dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [ebp - 0x40]
call fcn.00653100
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0067d4bc
mov eax, dword [ebp - 0x40]
call fcn.00654084
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.00653994
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
test ecx, ecx
jne 0x42310c
mov eax, dword [ebp - 0x2c]
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret