Function at 0x574170
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x20], eax
mov bl, 1
cmp dword [ecx + 8], 0
je 0x5741a4
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.00512ee3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ecx
xor ebx, ebx
lea edi, [esp + 0x10]
mov dword [edi + 4], ebx
mov dword [edi], ebx
lea eax, [ecx + 0x5d120]
mov dword [esp], eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
lea ecx, [esp + 0x18]
mov word [ecx], ax
mov dword [ecx + 2], 0x5c003a
mov word [ecx + 6], 0
push ebx
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x57418f
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
mov edx, ecx
and edx, eax
cmp edx, 0xffffffff
je 0x574216
cmp ecx, dword [esp + 0x10]
sbb eax, dword [esp + 0x14]
jb 0x574216
mov dword [esi + 0x2470], 2
xor ebx, ebx
jmp 0x57418f
sub esp, 0x1c
movaps xmm0, xmmword [0x5defa0]
movups xmmword [esp + 4], xmm0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x57428a
mov bl, 1
cmp byte [esi + 0x26f0], 0
je 0x57418f
mov eax, dword [esi + 0x26e4]
mov dword [esi + 0x26e8], eax
mov ecx, esi
call fcn.00574a00
test al, al
jne 0x57418f
mov ecx, dword [esi + 0x2468]
test ecx, ecx
je 0x5742a5
mov eax, 0xa
cmp ecx, 0xb
jae 0x5742aa
jmp 0x5742b0
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
jmp 0x57420f
mov eax, 5
mov dword [esi + 0x2468], eax
lea edx, [esi + 0x5cfb8]
xor eax, eax
mov dword [esi + 0x5cfc4], eax
mov dword [esi + 0x5cfc0], eax
mov eax, dword [esi + 0x5d104]
mov ecx, dword [esi + 0x5d100]
add ecx, 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 0x5cfc8], ecx
mov dword [esi + 0x5cfcc], eax
mov edi, dword [esi + 0x26e8]
mov eax, dword [esi + 0x26ec]
cmp edi, eax
jae 0x57432a
mov dword [edi], edx
add edi, 4
mov dword [esi + 0x26e8], edi
mov eax, dword [esi + 0x5d100]
mov ecx, dword [esi + 0x5d104]
lea edx, [esp + 0xc]
mov dword [edx], ecx
push 0
push edx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x57418f
mov dword [esp], edx
mov ecx, dword [esi + 0x26e4]
sub edi, ecx
sar edi, 2
lea edx, [edi + 1]
cmp edx, 0x40000000
jae 0x5743ff
sub eax, ecx
mov ecx, eax
sar ecx, 1
cmp ecx, edx
cmovbe ecx, edx
cmp eax, 0x7ffffffc
mov edx, 0x3fffffff
cmovb edx, ecx
test edx, edx
je 0x5743fb
cmp edx, 0x40000000
jae 0x574404
lea eax, [edx*4]
push eax
mov dword [esp + 8], edx
call fcn.00510d64
mov edx, dword [esp + 8]
add esp, 4
lea ecx, [eax + edi*4]
mov dword [esp + 8], ecx
lea ecx, [eax + edx*4]
mov dword [esp + 4], ecx
mov ecx, dword [esp]
mov edx, dword [esp + 8]
mov dword [edx], ecx
lea eax, [eax + edi*4 + 4]
mov dword [esp], eax
mov eax, dword [esi + 0x26e4]
mov ecx, dword [esi + 0x26e8]
sub ecx, eax
sub edx, ecx
push ecx
push eax
push edx
mov edi, edx
call fcn.00518c30
add esp, 0xc
mov eax, dword [esi + 0x26e4]
mov dword [esi + 0x26e4], edi
mov ecx, dword [esp]
mov dword [esi + 0x26e8], ecx
mov ecx, dword [esp + 4]
mov dword [esi + 0x26ec], ecx
test eax, eax
je 0x5742fd
push eax
call fcn.0050fc7c
add esp, 4
jmp 0x5742fd
xor eax, eax
jmp 0x57438b
call fcn.0052ce30
call fcn.00549f00
int3