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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fd06
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x4b5a50]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 4], edi
lea edx, [ebp - 0x1ac]
push edx
push 0xc8
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x1d4], edi
mov dword [ebp - 0x1d0], edi
mov dword [ebp - 0x1dc], edi
mov dword [ebp - 0x1d8], edi
mov dword [ebp - 0x1c4], edi
mov dword [ebp - 0x1c0], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
call fcn.0043e9ec
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4071fd
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 4], 1
lea esi, [ebp - 0x1ac]
lea esp, [esp]
cmp word [esi], di
je 0x4072eb
push 0x49ab8c
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpCW]
test eax, eax
je 0x4072ce
lea ecx, [ebp - 0x1c4]
push ecx
lea edx, [ebp - 0x1dc]
push edx
lea eax, [ebp - 0x1d4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x4072cc
cmp edi, 1
jne 0x4072cc
mov ecx, dword [ebp - 0x1c0]
mov edx, dword [ebp - 0x1c4]
push 0
push 0x400
push ecx
push edx
call fcn.004649d0
push 0
push 0x400
push edx
push eax
call fcn.004649d0
push 0
push 0x400
push edx
push eax
call fcn.004649d0
cmp eax, ebx
jle 0x4072cc
mov ebx, eax
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4072b0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x1b0]
call fcn.00401d30
xor edi, edi
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4072d3
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
jmp 0x407220
mov eax, dword [ebp - 0x1b0]
cmp dword [eax - 0xc], edi
jne 0x407308
push 3
push 0x49ab8c
lea ecx, [ebp - 0x1b0]
call fcn.00401d30
push 7
push str.yxdown_
lea ecx, [ebp - 0x1b0]
call fcn.00411980
mov eax, dword [ebp - 0x1c8]
lea esi, [ebp - 0x1b4]
call fcn.00402630
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1b4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00411980
mov esi, dword [ebp - 0x1b0]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], edi
lea ecx, [esi + 0xc]
jl 0x407371
cmp eax, dword [esi]
jne 0x407371
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4073ad
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40738a
call fcn.00401ea0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0045d0bb
add esp, 0x10
lea edx, [edi + 0x10]
mov edi, dword [ebp - 0x1b8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1b4]
add eax, 0xfffffff0
mov dword [edi], edx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073fb
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
jmp 0x40741b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0045ceb0
mov esp, ebp
pop ebp
ret 4