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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d43e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
push 0
mov dword [ebp - 0x1c], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
call esi
mov ebx, eax
push 1
mov dword [ebp - 0x18], ebx
lea ecx, [ebx*2 + 2]
push ecx
call fcn.00563978
add esp, 8
mov dword [ebp - 0x14], eax
push eax
push ebx
call esi
xor eax, eax
mov dword [ebp - 0x2c], 0x3a0043
xor ecx, ecx
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
mov word [ebp - 0x28], cx
xor esi, esi
movlpd qword [ebp - 0x24], xmm0
test ebx, ebx
je 0x406c4a
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov ax, word [eax + esi*2]
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
jb 0x406c41
mov eax, dword [ebp - 0x34]
ja 0x406c36
cmp eax, edi
jbe 0x406c41
mov edi, eax
mov ebx, ecx
mov eax, esi
mov dword [ebp - 0x10], eax
jmp 0x406c44
mov eax, dword [ebp - 0x10]
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x406c05
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
lea edx, [ecx + 2]
mov ax, word [ebx + eax*2]
mov word [ebp - 0x2c], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406c60
sub ecx, edx
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
mov ecx, 0x5f85c4
call fcn.0040c8c0
mov dword [ebp - 4], 0
mov eax, dword [0x5f85c4]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x406c9c
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x406cae
mov byte [ebp - 4], 1
call fcn.00438044
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov byte [ebp - 4], 2
test ecx, ecx
je 0x406e1e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov eax, dword [0x5f85c4]
push 6
push str.Games
mov dword [ebp - 0x1c], 1
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040c5c0
push 0x5c3350
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040b6d0
push 0x5f85b4
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
call fcn.0040b7a0
add esp, 0x2c
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov ecx, dword [eax]
mov esi, dword [0x5f85c4]
add esi, 0xfffffff0
mov dword [ebp - 0x18], esi
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x406d80
mov eax, dword [esi + 0xc]
shr eax, 0x1f
test al, al
jne 0x406d72
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x406d72
push edx
call fcn.0040c780
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, edi
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d68
mov esi, dword [esi]
push dword [ebp - 0x18]
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, esi
call edx
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [0x5f85c4], eax
jmp 0x406d80
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5f85c4
call fcn.0040c8c0
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406d9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406db4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x406dd3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call fcn.0055de73
mov eax, dword [0x5f85c4]
add esp, 4
cmp dword [eax - 4], 1
jle 0x406df9
push dword [eax - 0xc]
mov ecx, 0x5f85c4
call fcn.0040c500
mov eax, dword [0x5f85c4]
push eax
push 0
push 0x1800
push dword [0x5f8498]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027b0
int3