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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5038db
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x541074]
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, ecx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], ebx
mov ecx, dword [0x5481c4]
mov eax, 0x38e38e39
sub ecx, dword [0x5481c0]
imul ecx
mov dword [ebp - 0x7c], 0
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x403fc9
push ecx
mov ecx, ebx
call fcn.004045f0
jmp 0x4041cb
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0
push eax
call fcn.004041f0
mov byte [ebp - 4], 1
push dword [ebp - 0x6c]
mov edx, dword [0x5481c4]
push ecx
mov ecx, dword [0x5481c0]
call fcn.00404f80
mov eax, dword [0x5481c0]
mov esi, 0x41
mov ebx, dword [ebp - 0x64]
add esp, 8
mov dword [0x5481c4], eax
mov edx, 1
lea edi, [esi - 0x27]
lea ecx, [esi - 0x41]
mov eax, edx
shl eax, cl
test ebx, eax
je 0x40416c
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov byte [ebp - 0x24], al
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
push esi
mov word [ebp - 0x20], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x20]
push 0x51ba70
push eax
movq qword [ebp - 0x1e], xmm0
call fcn.00404f00
add esp, 0xc
cmp word [ebp - 0x20], 0
jne 0x404093
xor ecx, ecx
jmp 0x4040af
lea ecx, [ebp - 0x20]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4040a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402f90
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40414e
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
call fcn.004c96e0
mulsd xmm0, qword [0x52ac68]
call fcn.004c95b1
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
call fcn.004c96e0
mulsd xmm0, qword [0x52ac68]
call fcn.004c95b1
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x44]
push dword [ebp - 0x4c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x30], 8
push eax
cmovae ecx, dword [ebp - 0x44]
call fcn.00404f20
movzx ecx, byte [ebp - 0x24]
add esp, 8
test eax, eax
mov eax, 1
cmove ecx, eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 0x24], cl
call fcn.00404490
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x404167
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00403ab0
mov edx, 1
inc esi
sub edi, 1
jne 0x404033
mov esi, dword [0x5481c4]
lea edx, [ebp - 0x60]
mov ecx, dword [0x5481c0]
mov eax, 0x38e38e39
push edx
sub esi, ecx
mov byte [ebp - 0x60], 0
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x5481c4]
push eax
call fcn.00405000
mov ebx, dword [ebp - 0x6c]
add esp, 4
mov ecx, ebx
call fcn.004045f0
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x4041cb
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00403ab0
mov eax, ebx
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.004c8882
mov esp, ebp
pop ebp
ret