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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
call fcn.0040368f
cmp dword [ebp + 8], 0
jne 0x4039d4
xor eax, eax
jmp 0x403bf1
mov eax, dword [ebp + 8]
push eax
call fcn.00405d38
test eax, eax
jne 0x4039e8
xor eax, eax
jmp 0x403bf1
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00405dee
test eax, eax
jne 0x403a00
xor eax, eax
jmp 0x403bf1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x104
mov edx, dword [ebp - 0x3c]
add edx, 0x210
push edx
push 0
push 0
push 0
push 0x104
mov eax, dword [ebp - 0x3c]
add eax, 0x10c
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x403a4a
jmp 0x403bef
mov edx, dword [ebp + 0xc]
and edx, 1
test edx, edx
je 0x403a6a
push 0x68
mov eax, dword [0x417f58]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 4], eax
jmp 0x403a7d
push 0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
push eax
call fcn.00405e66
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x3c]
add edx, 0x314
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
push ecx
call fcn.00405f64
test eax, eax
jne 0x403a9b
jmp 0x403bed
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x3c]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x403ac1
jmp 0x403beb
mov ecx, dword [ebp - 0x20]
imul ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x1c]
jb 0x403ade
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
jmp 0x403ae5
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov eax, dword [ebp - 0x18]
xor esi, esi
push esi
push eax
push edx
push ecx
call fcn.00409010
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov eax, dword [ebp - 0x18]
xor esi, esi
push esi
push eax
push edx
push ecx
call fcn.00409010
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
adc edx, dword [ebp - 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x3c]
mov ax, word [edx]
push eax
call fcn.00406103
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 0x334], edx
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0x338], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x334
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 0x10]
jb 0x403b8a
ja 0x403b7b
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
cmp edx, dword [ebp - 0x14]
jb 0x403b8a
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x358], 1
jmp 0x403b97
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x358], 0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x31c], eax
mov ecx, dword [ebp - 0x10]
mov dword [edx + 0x320], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov dword [edx + 0x324], eax
mov ecx, dword [ebp - 4]
mov dword [edx + 0x328], ecx
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x32c], 0
mov dword [edx + 0x330], 0
mov eax, 1
jmp 0x403bf1
mov ecx, dword [ebp - 0x3c]
call fcn.0040368f
xor eax, eax
jmp 0x403bf1
jmp 0x403bdf
jmp 0x403bdf
jmp 0x403bdf
pop esi
mov esp, ebp
pop ebp
ret 8