Function at 0x5a05c0
Capabilities:
Get disk information
Get disk size
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x625ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov edx, dword [esi + 0xc]
lea edi, [esi + 0x1a8]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], esi
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, dword [edx + 0x2f8]
mov dword [ebp - 4], 0
test eax, eax
jne 0x5a06b5
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x5a0634
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp + 8]
push ecx
push 0x1473
push 0x111
push eax
call ebx
jmp 0x5a063a
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x5a0669
mov edx, dword [esi + 0x228]
mov ecx, dword [edi]
mov dword [ebp - 0x2c], edx
mov edx, dword [edi + 4]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], edx
mov edx, dword [eax]
push ecx
push 0x1393
push 0x111
push edx
call ebx
mov eax, dword [esi + 0x18]
cmp dword [eax], 0
je 0x5a0698
mov ecx, dword [esi + 0x228]
mov edx, dword [edi]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax]
push edx
push 0x1393
push 0x111
push eax
call ebx
mov eax, dword [esi + 0x22c]
test eax, eax
je 0x5a06b5
push 8
push edi
push 0
push 0
push 0x6c35a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov al, byte [ebp + 0x10]
test al, al
je 0x5a082d
mov edx, dword [esi + 0xc]
push 0
push 0
lea ecx, [ebp - 0x38]
mov eax, dword [edx + 0x30]
push 0
push ecx
push eax
call fcn.005deee8
add esp, 0x14
push 0x6d9574
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x5a06ff
push 0x6da2f0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5a0702
mov ecx, 1
jmp 0x5a0704
mov eax, dword [ebp + 0x10]
xor ecx, ecx
or edi, 0xffffffff
test ecx, ecx
mov dword [ebp - 0x3c], edi
je 0x5a072f
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x60]
push ecx
push edx
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x38]
push ecx
push edx
call eax
test eax, eax
je 0x5a075f
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x3c], eax
jmp 0x5a075f
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x44]
push edx
lea ecx, [ebp + 0x10]
push eax
lea edx, [ebp - 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x5a075f
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x3c], 0
imul edi, dword [ebp - 0x44]
imul edi, dword [ebp - 0x30]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push 0xa
push ebx
push eax
call fcn.005dffe0
mov ecx, dword [esi + 0xc8]
sub eax, ecx
mov ecx, dword [esi + 0xcc]
sbb edx, ecx
mov ecx, dword [ebp + 8]
add eax, ecx
mov ecx, dword [ebp - 0x3c]
adc edx, ebx
cmp ecx, edx
jg 0x5a0840
jl 0x5a079c
cmp edi, eax
ja 0x5a0840
and edi, ecx
cmp edi, 0xffffffff
je 0x5a0840
mov dword [esi + 0x1c], 1
mov ecx, dword [0x6e7b6c]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0xc]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 1
push edx
mov edx, dword [ecx + 8]
push ebx
push eax
mov eax, dword [0x6ed878]
push edx
lea ecx, [ebp + 0x10]
push eax
push ecx
call fcn.005f368b
mov edx, dword [ebp + 0x10]
add esp, 0x18
push 0x50030
push 0x6bc018
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x6da2ac
mov ecx, esi
call fcn.0059f800
mov eax, dword [esi + 0x1b0]
mov ecx, dword [esi + 0x1b4]
or eax, ecx
jne 0x5a0821
mov ecx, dword [esi + 0x20]
call fcn.0054f720
mov ecx, dword [esi + 0xc]
mov byte [ecx + 0x15e], 1
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.005fa859
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
fild qword [ebp + 8]
cmp ebx, 1
mov byte [ebp + 0x13], 0
fmul qword [0x656df8]
fstp qword [ebp - 0x40]
jl 0x5a0866
jg 0x5a085e
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x5a0866
mov byte [ebp + 0x13], 1
xor edi, edi
jmp 0x5a087f
xor edi, edi
cmp ebx, edi
jl 0x5a0a91
jg 0x5a087f
cmp dword [ebp + 8], 0x80000000
jbe 0x5a0a91
lea edx, [ebp - 0x38]
push 0x6bc14c
push edx
call fcn.005de2bf
add esp, 8
lea eax, [ebp - 0x268]
lea ecx, [ebp - 0x38]
push 0x104
push eax
push edi
push edi
push edi
push edi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x5a0a91
lea edx, [ebp - 0x268]
push 0x6df5d8
push edx
call fcn.005e07bc
add esp, 8
test eax, eax
je 0x5a08f2
mov al, byte [ebp + 0x13]
test al, al
je 0x5a0a91
lea eax, [ebp - 0x268]
push 0x6df5cc
push eax
call fcn.005e07bc
add esp, 8
test eax, eax
jne 0x5a0a91
mov dword [esi + 0x1c], 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x24], di
lea ecx, [ebp - 0x28]
push 1
push ecx
mov ecx, dword [esi + 0xc]
mov byte [ebp - 4], 2
call fcn.00579490
mov eax, dword [ebp - 0x28]
cmp eax, edi
jne 0x5a091f
lea eax, [ebp - 0x24]
push eax
call fcn.005de123
mov edi, dword [0x6ecdd4]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0x40]
mov dword [ebp - 0x30], eax
add eax, eax
push eax
call fcn.005f6c5c
mov edi, eax
xor eax, eax
add esp, 8
cmp edi, eax
mov dword [ebp + 0x10], edi
je 0x5a0a55
mov ebx, dword [0x6ecdd4]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x18], ax
call fcn.00401070
test ebx, ebx
je 0x5a0a89
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5a0a86
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push ebx
push eax
push eax
call edi
test eax, eax
mov dword [ebp - 0x14], eax
je 0x5a0a86
lea ecx, [eax + eax + 2]
push ecx
call fcn.005f6c5c
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x5a09cc
mov edx, dword [ebp - 0x14]
push edx
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 3
test ecx, ecx
jne 0x5a09dd
lea ecx, [ebp - 0x24]
test eax, eax
mov dword [ebp + 0x10], ecx
mov ebx, eax
jne 0x5a09e9
lea ebx, [ebp - 0x18]
lea edx, [ebp - 0x268]
push 0x6df5d8
push edx
call fcn.005e07bc
add esp, 8
mov edx, dword [ebp - 0x3c]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x38]
and eax, 2
add eax, 2
push eax
lea eax, [ebp - 0x268]
push eax
mov eax, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 0x30]
push eax
push ecx
push ebx
push edx
push edi
call fcn.005de0b3
add esp, 0x24
push 0x50030
push 0x6c15a0
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call fcn.005f6c85
add esp, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401070
mov ecx, dword [esi + 0x20]
call fcn.0054f720
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
mov byte [eax + 0x15e], 1
call fcn.00401070
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
jmp 0x5a09cf
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], edi
je 0x5a082d
mov ecx, dword [eax + 0x34]
cmp ecx, edi
jne 0x5a0aa7
lea ecx, [eax + 0x38]
push edi
push edi
lea edx, [ebp - 0x18]
push edi
push edx
push ecx
call fcn.005deee8
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x38]
push eax
push ecx
call fcn.005de644
add esp, 0x1c
test eax, eax
je 0x5a082d
mov esi, dword [esi + 0xc]
mov eax, dword [esi + 0x34]
cmp eax, edi
jne 0x5a0ad9
lea eax, [esi + 0x38]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
mov ecx, esi
call fcn.005b8580
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc