Function at 0x10035ae0
Capabilities:
Create pipe
Get common file path
Read file on windows
Read pipe
Terminate process

Disassembly:
sub esp, 0x300
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x2fc], eax
cmp byte [esp + 0x308], 0
mov eax, dword [esp + 0x30c]
push ebx
push esi
mov esi, dword [esp + 0x30c]
mov dword [esp + 0x24], eax
je 0x10035b1a
test eax, eax
je 0x10035b1a
mov bl, 1
jmp 0x10035b1c
xor bl, bl
push 0x208
lea eax, [esp + 0x100]
mov byte [esp + 0xf], bl
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
push 0
push 0
push 0x2c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10036126
lea ecx, [esp + 0xfc]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], 7
lea edx, [ecx + 2]
mov word [esp + 0x84], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10035b80
sub ecx, edx
lea eax, [esp + 0xfc]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x8c]
call fcn.10035880
push 0x1d
push str.JavaJava_Updatejucheck.exe
lea ecx, [esp + 0x8c]
call fcn.10035190
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [esp + 0xb4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0xc4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [esp + 0x98]
cmp edx, 8
jb 0x10035c27
mov ecx, dword [esp + 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10035c1d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10035c1d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10033b30
add esp, 8
xor eax, eax
mov dword [esp + 0x94], 0
mov word [esp + 0x84], ax
lea ecx, [esp + 0x84]
mov eax, dword [esp + 0xc4]
inc eax
mov dword [esp + 0x98], 7
push eax
call fcn.10037090
push 0x22
lea ecx, [esp + 0x88]
call fcn.10036f70
cmp dword [esp + 0xc8], 8
lea eax, [esp + 0xb4]
push dword [esp + 0xc4]
cmovae eax, dword [esp + 0xb8]
lea ecx, [esp + 0x88]
push eax
call fcn.10035190
push 0x22
lea ecx, [esp + 0x88]
call fcn.10036f70
movups xmm0, xmmword [esp + 0x84]
movups xmmword [esp + 0x9c], xmm0
movq xmm0, qword [esp + 0x94]
movq qword [esp + 0xac], xmm0
test esi, esi
je 0x10035d1d
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10035cd0
sub ecx, edx
sar ecx, 1
je 0x10035d1d
push 1
push 0x1003f6b8
lea ecx, [esp + 0xa4]
call fcn.10035190
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10035d00
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0xa4]
call fcn.10035190
xorps xmm0, xmm0
mov dword [esp + 0x40], 0x44
push edi
xor esi, esi
movlpd qword [esp + 0x48], xmm0
xor edi, edi
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x80], xmm0
movups xmmword [esp + 0x30], xmm0
test bl, bl
je 0x10035dcc
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xc
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], esi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], 1
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
je 0x10036143
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push 0
push 1
push esi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x7c], 0x100
call dword [sym.imp.kernel32.dll_SetHandleInformation]
cmp dword [esp + 0xb4], 8
lea ecx, [esp + 0xa0]
mov eax, dword [esp + 0xb0]
cmovae ecx, dword [esp + 0xa0]
push dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
lea eax, [ecx + eax*2]
mov dword [esp + 0x24], 0
lea ecx, [esp + 0xa4]
cmovae ecx, dword [esp + 0xa4]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.10033b30
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
cmp ebx, eax
je 0x10035e3e
xor ecx, ecx
mov word [eax], cx
jmp 0x10035e51
lea ecx, [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.10033b30
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0xcc], 8
lea ecx, [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0xbc]
cmovae eax, dword [esp + 0xbc]
push ecx
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push ebp
push eax
call fcn.10005440
add esp, 0x28
test eax, eax
je 0x1003618e
cmp byte [esp + 0x318], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
je 0x10035fe8
push 0x1388
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x38]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
cmp dword [esp + 0x18], 0x103
je 0x100361d9
cmp byte [esp + 0x13], 0
je 0x10035fe8
lea eax, [esp + 0x13]
push eax
push 0
lea ecx, [esp + 0x24]
call fcn.10033b30
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_PeekNamedPipe]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10035f5d
mov ecx, 0x10000
cmp eax, ecx
cmova eax, ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x1c], eax
call fcn.10033b30
push 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x28]
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x10036208
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x8c]
mov edx, dword [esp + 0x1c]
sub eax, edx
push eax
push edx
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0xf
mov byte [esp + 0x94], 0
call fcn.10035790
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x8c]
push eax
call fcn.10034cf0
lea ecx, [esp + 0x8c]
call fcn.10034bc0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10035fe8
mov edx, dword [esp + 0x24]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10035fde
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10035fde
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10033b30
add esp, 8
mov eax, dword [esp + 0x30]
mov ecx, dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x10036004
cmp eax, 0xffffffff
je 0x10036004
push eax
call ecx
mov ecx, dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10036014
cmp eax, 0xffffffff
je 0x10036014
push eax
call ecx
test ebp, ebp
je 0x10036045
sub ebx, ebp
mov eax, ebp
and ebx, 0xfffffffe
cmp ebx, 0x1000
jb 0x1003603b
mov ebp, dword [ebp - 4]
add ebx, 0x23
sub eax, ebp
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100360fd
push ebx
push ebp
call fcn.10033b30
add esp, 8
test edi, edi
je 0x10036059
cmp edi, 0xffffffff
je 0x10036059
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
call edi
jmp 0x1003605f
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x1003606b
cmp esi, 0xffffffff
je 0x1003606b
push esi
call edi
mov edx, dword [esp + 0xb8]
cmp edx, 8
jb 0x100360a9
mov ecx, dword [esp + 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003609f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100360fd
push edx
push ecx
call fcn.10033b30
add esp, 8
mov edx, dword [esp + 0xd0]
xor eax, eax
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 7
mov word [esp + 0xa4], ax
cmp edx, 8
jb 0x1003610d
mov ecx, dword [esp + 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10036103
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10036103
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10033b30
add esp, 8
mov ecx, dword [esp + 0x30c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003b4ee
add esp, 0x300
ret
push str.cannot_get_PROGRAM_FILES_COMMONX86
lea ecx, [esp + 0x18]
call fcn.10034b80
push 0x1004ba1c
lea eax, [esp + 0x18]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.100375d0
push eax
lea eax, [esp + 0xf8]
push str.cannot_create_pipe:
push eax
call fcn.10033ef0
add esp, 0x18
lea ecx, [esp + 0x88]
push eax
call fcn.10034b30
push 0x1004ba1c
lea eax, [esp + 0x8c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.100375d0
push eax
lea eax, [esp + 0xe4]
push str.CreateProcess_failed:
push eax
call fcn.10033ef0
add esp, 0x18
lea ecx, [esp + 0x8c]
push eax
call fcn.10034b30
push 0x1004ba1c
lea eax, [esp + 0x90]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 1
push dword [esp + 0x38]
call dword [sym.imp.kernel32.dll_TerminateProcess]
push str.timeout
lea ecx, [esp + 0x90]
call fcn.10034b80
push 0x1004ba1c
lea eax, [esp + 0x90]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.100375d0
push eax
lea eax, [esp + 0xe4]
push str.pipe_read_error:
push eax
call fcn.10033ef0
add esp, 0x18
lea ecx, [esp + 0x8c]
push eax
call fcn.10034b30
push 0x1004ba1c
lea eax, [esp + 0x90]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3