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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c06d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5d0000]
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.0055648e
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 0x403695
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 0x40368c
mov eax, dword [ebp - 0x38]
ja 0x403681
cmp eax, edi
jbe 0x40368c
mov edi, eax
mov ebx, ecx
mov eax, esi
mov dword [ebp - 0x1c], eax
jmp 0x40368f
mov eax, dword [ebp - 0x1c]
inc esi
cmp esi, dword [ebp - 0x24]
jb 0x403650
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 0x4036a6
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
mov ecx, 0x5da8e0
call fcn.0040a5a0
push str.Games
lea eax, [ebp - 0x28]
push 0x5da8e0
push eax
call fcn.004092d0
push 0x5afbe8
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
call fcn.004092d0
push 0x5da8d0
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 [0x5da8e0]
add esi, 0xfffffff0
mov dword [ebp - 0x24], esi
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x40376e
cmp dword [esi + 0xc], 0
jl 0x403760
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x403760
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 0x403756
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 [0x5da8e0], eax
jmp 0x40376e
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5da8e0
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 0x403788
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 0x4037a2
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 0x4037c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call fcn.00552bd3
mov eax, dword [0x5da8e0]
add esp, 4
cmp dword [eax - 4], 1
jle 0x4037e7
push dword [eax - 0xc]
mov ecx, 0x5da8e0
call fcn.0040a2c0
mov eax, dword [0x5da8e0]
push eax
push 0
push 0x1800
push dword [0x5da7cc]
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.0054d6d8
mov esp, ebp
pop ebp
ret