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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56be9d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5cf000]
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 esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call esi
mov ebx, eax
push 1
mov dword [ebp - 0x24], ebx
lea ecx, [ebx*2 + 2]
push ecx
call fcn.005562b1
add esp, 8
mov dword [ebp - 0x20], eax
push eax
push ebx
call esi
xor eax, eax
mov dword [ebp - 0x18], 0x3a0043
xor ecx, ecx
mov dword [ebp - 0x1c], eax
xorps xmm0, xmm0
mov word [ebp - 0x14], cx
xor esi, esi
movlpd qword [ebp - 0x2c], xmm0
test ebx, ebx
je 0x403685
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
nop dword [eax + eax]
mov eax, dword [ebp - 0x20]
mov ax, word [eax + esi*2]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
jb 0x40367c
mov eax, dword [ebp - 0x38]
ja 0x403671
cmp eax, edi
jbe 0x40367c
mov edi, eax
mov ebx, ecx
mov eax, esi
mov dword [ebp - 0x1c], eax
jmp 0x40367f
mov eax, dword [ebp - 0x1c]
inc esi
cmp esi, dword [ebp - 0x24]
jb 0x403640
mov ebx, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
mov ax, word [ebx + eax*2]
mov word [ebp - 0x18], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403696
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
mov ecx, 0x5d98d4
call fcn.0040a5a0
push str.Games
lea eax, [ebp - 0x28]
push 0x5d98d4
push eax
call fcn.004092d0
push 0x5afbe8
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
call fcn.004092d0
push 0x5d98c4
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
call fcn.00409470
add esp, 0x24
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov ecx, dword [eax]
mov esi, dword [0x5d98d4]
add esi, 0xfffffff0
mov dword [ebp - 0x24], esi
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x403762
mov eax, dword [esi + 0xc]
shr eax, 0x1f
test al, al
jne 0x403754
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x403754
push edx
call fcn.0040a460
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, edi
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40374a
mov esi, dword [esi]
push dword [ebp - 0x24]
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, esi
call edx
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [0x5d98d4], eax
jmp 0x403762
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5d98d4
call fcn.0040a5a0
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40377c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403796
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4037b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call fcn.005529f3
mov eax, dword [0x5d98d4]
add esp, 4
cmp dword [eax - 4], 1
jle 0x4037db
push dword [eax - 0xc]
mov ecx, 0x5d98d4
call fcn.0040a2c0
mov eax, dword [0x5d98d4]
push eax
push 0
push 0x1800
push dword [0x5d97c0]
call dword [sym.imp.USER32.dll_SendMessageW]
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.0054d63f
mov esp, ebp
pop ebp
ret