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

Disassembly:
sub esp, 0x310
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x30c], eax
mov eax, dword [esp + 0x31c]
push ebx
xor ebx, ebx
push edi
mov edi, dword [esp + 0x31c]
mov dword [esp + 0x30], eax
cmp byte [esp + 0x320], bl
je 0x6d5c6a2c
mov byte [esp + 0xb], 1
cmp eax, ebx
jne 0x6d5c6a30
mov byte [esp + 0xb], bl
push 0x208
lea eax, [esp + 0x110]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10c]
push ecx
push ebx
push ebx
push 0x2c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
je 0x6d5c6a8a
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], str.cannot_get_PROGRAM_FILES_COMMONX86
call sub.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__
push 0x6d5db2f8
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], vtable.std::runtime_error.0
call sub.MSVCR100.dll__CxxThrowException
push esi
mov esi, 7
xor ecx, ecx
lea eax, [esp + 0x110]
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x6d5c6ab2
sub eax, edx
push ebp
sar eax, 1
push eax
lea edx, [esp + 0x118]
push edx
lea ecx, [esp + 0xac]
call fcn.6d5c2e50
push 0x1d
push str.JavaJava_Updatejucheck.exe
lea ecx, [esp + 0xac]
call fcn.6d5c2d30
xor ecx, ecx
mov word [esp + 0xdc], cx
push eax
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
call fcn.6d5c46d0
mov ebp, 8
cmp dword [esp + 0xb8], ebp
jb 0x6d5c6b2d
mov edx, dword [esp + 0xa4]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov word [esp + 0xa4], ax
mov eax, dword [esp + 0xec]
inc eax
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], ebx
cmp eax, esi
je 0x6d5c6b87
push 1
push eax
lea ecx, [esp + 0xac]
call fcn.6d5c2200
test al, al
je 0x6d5c6b87
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xb4], ebx
cmp dword [esp + 0xb8], ebp
jae 0x6d5c6b82
lea eax, [esp + 0xa4]
xor ecx, ecx
mov word [eax], cx
push 0x22
push 1
lea ecx, [esp + 0xac]
call fcn.6d5c2540
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xe4]
push edx
lea ecx, [esp + 0xb0]
call fcn.6d5c22b0
push 0x22
push 1
lea ecx, [esp + 0xac]
call fcn.6d5c2540
xor ecx, ecx
mov word [esp + 0xc0], cx
push eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
call fcn.6d5c46d0
cmp dword [esp + 0xb8], ebp
jb 0x6d5c6bfc
mov edx, dword [esp + 0xa4]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, ebx
je 0x6d5c6c4d
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x6d5c6c05
sub eax, edx
sar eax, 1
je 0x6d5c6c4d
push 1
push 0x6d5ceac8
lea ecx, [esp + 0xc8]
call fcn.6d5c2d30
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x6d5c6c30
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0xc8]
call fcn.6d5c2d30
push 0x40
lea eax, [esp + 0x68]
push ebx
xor esi, esi
xor edi, edi
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
call sub.MSVCR100.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
cmp byte [esp + 0x13], bl
je 0x6d5c6d5e
push ebx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x50], 0xc
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 1
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
jne 0x6d5c6d1f
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
push eax
lea ecx, [esp + 0x100]
push ecx
call fcn.6d5c55b0
push eax
lea edx, [esp + 0xb4]
push str.cannot_create_pipe:
push edx
call fcn.6d5c6140
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x6d5c6cf6
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
call sub.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__
push 0x6d5db2f8
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], vtable.std::runtime_error.0
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x6d5c6d2d
mov dword [esp + 0x20], eax
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x6d5c6d3b
mov dword [esp + 0x1c], eax
mov edi, eax
push ebx
push 1
push esi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0x98], 0x100
call dword [sym.imp.kernel32.dll_SetHandleInformation]
mov edx, dword [esp + 0xd4]
mov ecx, dword [esp + 0xc0]
mov eax, ecx
cmp edx, ebp
jae 0x6d5c6d79
lea eax, [esp + 0xc0]
mov edi, dword [esp + 0xd0]
lea eax, [eax + edi*2]
cmp edx, ebp
jae 0x6d5c6d8e
lea ecx, [esp + 0xc0]
mov edx, dword [esp + 0x38]
push edx
push eax
push ecx
lea ecx, [esp + 0xb0]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
call fcn.6d5ca1c9
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0x1c], ebx
call fcn.6d5c45f0
mov eax, dword [esp + 0xdc]
cmp dword [esp + 0xf0], ebp
jae 0x6d5c6de2
lea eax, [esp + 0xdc]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0xa8]
lea edx, [esp + 0x64]
push edx
push ebx
push ebx
push 0x8000000
push 1
push ebx
push ebx
push ecx
push eax
call fcn.6d593740
add esp, 0x28
test eax, eax
jne 0x6d5c6e6e
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
push eax
lea edx, [esp + 0x100]
push edx
call fcn.6d5c55b0
push eax
lea eax, [esp + 0xb4]
push str.CreateProcess_failed:
push eax
call fcn.6d5c6140
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x6d5c6e45
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
jmp 0x6d5c6e49
mov dword [esp + 0x14], eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
call sub.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__
push 0x6d5db2f8
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], vtable.std::runtime_error.0
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov ebp, eax
cmp byte [esp + 0x328], bl
je 0x6d5c6fd9
push 0x1388
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], ebx
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
cmp dword [esp + 0x18], 0x103
jne 0x6d5c6ee9
mov eax, dword [esp + 0x4c]
push 1
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], str.timeout
call sub.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__
push 0x6d5db2f8
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], vtable.std::runtime_error.0
call sub.MSVCR100.dll__CxxThrowException
cmp byte [esp + 0x13], bl
je 0x6d5c6fd9
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.6d5c4660
push ebx
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
push esi
mov dword [esp + 0x4c], ebx
call dword [sym.imp.kernel32.dll_PeekNamedPipe]
mov eax, dword [esp + 0x34]
cmp eax, ebx
jbe 0x6d5c6fa2
cmp eax, 0x10000
jbe 0x6d5c6f35
mov eax, 0x10000
mov dword [esp + 0x34], eax
push eax
lea ecx, [esp + 0x28]
call fcn.6d5c4660
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x60]
push ecx
push edx
push esi
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x6d5c6fa6
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
push eax
lea ecx, [esp + 0x100]
push ecx
call fcn.6d5c55b0
push eax
lea edx, [esp + 0xb4]
push str.pipe_read_error:
push edx
call fcn.6d5c6140
add esp, 0x18
push eax
lea ecx, [esp + 0x28]
call fcn.6d5c1f50
push 0x6d5db2f8
lea eax, [esp + 0x28]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
sub ecx, esi
push ecx
push esi
lea ecx, [esp + 0x100]
call fcn.6d5c4580
mov ecx, dword [esp + 0x38]
push eax
call fcn.6d5b5050
lea ecx, [esp + 0xf8]
call fcn.6d5a72f0
lea ecx, [esp + 0x24]
call fcn.6d5c38a0
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
cmp edi, ebx
je 0x6d5c6feb
cmp edi, 0xffffffff
je 0x6d5c6feb
push edi
call esi
cmp ebp, ebx
je 0x6d5c6ff7
cmp ebp, 0xffffffff
je 0x6d5c6ff7
push ebp
call esi
mov eax, dword [esp + 0xa4]
cmp eax, ebx
je 0x6d5c700b
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x6d5c701b
cmp eax, 0xffffffff
je 0x6d5c701b
push eax
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x6d5c702b
cmp eax, 0xffffffff
je 0x6d5c702b
push eax
call esi
mov esi, 8
cmp dword [esp + 0xd4], esi
jb 0x6d5c7049
mov edx, dword [esp + 0xc0]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0xd4], 7
mov dword [esp + 0xd0], ebx
mov word [esp + 0xc0], ax
cmp dword [esp + 0xf0], esi
jb 0x6d5c707e
mov ecx, dword [esp + 0xdc]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x31c]
pop ebp
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x310
ret