Function at 0x140051910
Capabilities:
Get common file path
Get disk size
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11d0]
mov eax, 0x12d0
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x11c0], rax
mov r15, rcx
lea rdx, str.CheckRunEnvironment::CheckDiskSpace
lea rcx, [rsp + 0x60]
call fcn.14001abe0
nop
lea rsi, [0x1402a8360]
lea rbx, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x1400519ab
test byte [rcx + 0x1c], 1
je 0x1400519ab
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, recv
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor r12d, r12d
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x1c0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.1401e7e40
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov rcx, rax
mov rax, qword [rax]
lea r8, [rbp + 0x1c0]
lea rdx, str.TEMPPATH
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x1be], 0x5c
je 0x140051a43
lea rdx, [0x140251df8]
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.InsDrv.ini
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x140051a9d
test byte [rcx + 0x1c], 4
je 0x140051a9d
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, send
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea r9, [rbp + 0x1c0]
mov r8d, 0x1f4
lea rdx, str.Border
lea rcx, str.DiskSpaceCheck
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
lea r9, [rbp + 0x1c0]
mov r8d, 0x19
lea rdx, str.Margin
lea rcx, str.DiskSpaceCheck
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r14d, eax
mov eax, 0x7d0
cmp edi, eax
cmova edi, eax
mov eax, 0xa
cmp r14d, eax
cmovb r14d, eax
shl edi, 0x14
shl r14d, 0x14
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x140051b7c
test byte [rcx + 0x1c], 4
je 0x140051b44
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [rax + 6]
mov dword [rsp + 0x20], edi
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x140051b7c
test byte [rcx + 0x1c], 4
je 0x140051b7c
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.COMCTL32.dll_InitCommonControls
mov dword [rsp + 0x20], r14d
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x50], rsi
mov eax, 0x431bde83
mul esi
mov r13d, edx
shr r13d, 0x12
imul eax, r13d, 0xf4240
mov ecx, esi
sub ecx, eax
mov dword [rsp + 0x30], ecx
mov r10, qword [0x1402a8360]
lea rax, [0x1402a8360]
cmp r10, rax
je 0x140051c1d
test byte [r10 + 0x1c], 4
je 0x140051c1d
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, send
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r13d
lea r8, [0x1402559c8]
mov rcx, qword [r10 + 0x10]
call fcn.1400515a0
mov r10, qword [0x1402a8360]
mov eax, edi
cmp rsi, rax
jae 0x140051f93
call fcn.1400d3fd0
test eax, eax
je 0x140051cd3
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov esi, eax
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x1400136d6.0]
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0xa8]
call qword [case.0x1400136d6.0]
add esi, eax
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x50]
call qword [case.0x1400136d6.0]
mov edi, eax
mov rcx, qword [0x1402a8360]
lea r15, [0x1402a8360]
cmp rcx, r15
je 0x140051cc7
test byte [rcx + 0x1c], 4
je 0x140051cc7
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.WSOCK32.dll_send
mov dword [rsp + 0x20], esi
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
cmp esi, edi
jbe 0x140051cda
sub r14d, edi
add esi, r14d
jmp 0x140051cdd
lea r15, [0x1402a8360]
mov esi, r14d
mov edi, r12d
lea r9, [rbp + 0x1c0]
mov r8d, 5
lea rdx, str.WorkMargin
lea rcx, str.DiskSpaceCheck
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r14d, eax
shl r14d, 0x14
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x140051d47
test byte [rcx + 0x1c], 4
je 0x140051d47
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, socket
mov dword [rsp + 0x20], r14d
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov rcx, rax
mov rax, qword [rax]
mov edx, 3
mov rax, qword [rax + 0x58]
call qword [case.0x1400136d6.0]
test rax, rax
je 0x140051db2
mov edi, 0x19000
nop word [rax + rax]
add edi, 0x2800
add edi, r14d
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x60]
call qword [case.0x1400136d6.0]
test rax, rax
jne 0x140051d80
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x140051df0
test byte [rcx + 0x1c], 4
je 0x140051df0
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, socket
mov dword [rsp + 0x20], edi
lea r8, [0x1402559c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x28]
call qword [case.0x1400136d6.0]
mov r15d, eax
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x9c0]
call fcn.1401e7e40
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov rcx, rax
mov rax, qword [rax]
lea r8, [rbp + 0x9c0]
lea rdx, str.INSTALLATION_SELECT
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
cmp word [rbp + 0x9c0], 0x32
jne 0x140051e79
cmp word [rbp + 0x9c2], r12w
jne 0x140051e79
mov r15d, 1
jmp 0x140051e7e
test r15d, r15d
jle 0x140051e85
imul r15d, r14d
add edi, r15d
mov r10, qword [0x1402a8360]
lea r14, [0x1402a8360]
cmp r10, r14
je 0x140051ed2
test byte [r10 + 0x1c], 4
je 0x140051ed2
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, socket
mov dword [rsp + 0x20], edi
lea r8, [0x1402559c8]
mov rcx, qword [r10 + 0x10]
call fcn.140001b40
mov r10, qword [0x1402a8360]
add esi, edi
cmp r10, r14
je 0x140051f5f
test byte [r10 + 0x1c], 4
je 0x140051f17
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.WSOCK32.dll_socket
mov dword [rsp + 0x20], esi
lea r8, [0x1402559c8]
mov rcx, qword [r10 + 0x10]
call fcn.140001b40
mov r10, qword [0x1402a8360]
cmp r10, r14
je 0x140051f5f
test byte [r10 + 0x1c], 4
je 0x140051f5f
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x18
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r13d
lea r8, [0x1402559c8]
mov rcx, qword [r10 + 0x10]
call fcn.1400515a0
mov r10, qword [0x1402a8360]
mov eax, esi
cmp rax, qword [rsp + 0x50]
jbe 0x140051fe6
mov rcx, qword [0x1402bbf68]
mov rax, qword [rcx]
mov edx, 0xa4
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov r12d, 0x8001001e
mov dword [0x1402bbd98], 0x1e
jmp 0x140051fdf
lea r14, [0x1402a8360]
cmp r10, r14
je 0x140051fe6
test byte [r10 + 0x1c], 4
je 0x140051fe6
lfence
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
shr edi, 0x14
mov edx, 0x19
mov dword [rsp + 0x20], edi
lea r8, [0x1402559c8]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
mov r10, qword [0x1402a8360]
mov al, 1
mov byte [rsp + 0x68], al
cmp r10, r14
je 0x140052030
test byte [r10 + 0x1c], al
je 0x140052030
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x1a
mov dword [rsp + 0x20], r12d
lea r8, [0x1402559c8]
mov rcx, qword [r10 + 0x10]
call fcn.140001b40
movzx eax, byte [rsp + 0x68]
mov r10, qword [0x1402a8360]
lea rcx, vtable.WppTrace.0
mov qword [rsp + 0x60], rcx
test al, al
jne 0x140052089
cmp r10, r14
je 0x140052089
test byte [r10 + 0x1c], 1
je 0x140052089
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea r8, [0x140252818]
mov rcx, qword [r10 + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x70]
call fcn.1400048a0
lea rcx, [rsp + 0x70]
call fcn.1400048a0
mov eax, r12d
mov rcx, qword [rbp + 0x11c0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x12d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret