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

Disassembly:
sub esp, 0x310
mov eax, dword [0x1004f860]
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 0x10033b1c
mov byte [esp + 0xb], 1
cmp eax, ebx
jne 0x10033b20
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 0x10033b7a
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 0x10047d70
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 0x10033ba2
sub eax, edx
push ebp
sar eax, 1
push eax
lea edx, [esp + 0x118]
push edx
lea ecx, [esp + 0xac]
call fcn.1002fc20
push 0x1d
push str.JavaJava_Updatejucheck.exe
lea ecx, [esp + 0xac]
call fcn.1002fb00
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.10031740
mov ebp, 8
cmp dword [esp + 0xb8], ebp
jb 0x10033c1d
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 0x10033c77
push 1
push eax
lea ecx, [esp + 0xac]
call fcn.1002ecb0
test al, al
je 0x10033c77
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xb4], ebx
cmp dword [esp + 0xb8], ebp
jae 0x10033c72
lea eax, [esp + 0xa4]
xor ecx, ecx
mov word [eax], cx
push 0x22
push 1
lea ecx, [esp + 0xac]
call fcn.1002f140
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xe4]
push edx
lea ecx, [esp + 0xb0]
call fcn.1002eeb0
push 0x22
push 1
lea ecx, [esp + 0xac]
call fcn.1002f140
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.10031740
cmp dword [esp + 0xb8], ebp
jb 0x10033cec
mov edx, dword [esp + 0xa4]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, ebx
je 0x10033d3d
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10033cf5
sub eax, edx
sar eax, 1
je 0x10033d3d
push 1
push 0x1003b988
lea ecx, [esp + 0xc8]
call fcn.1002fb00
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10033d20
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0xc8]
call fcn.1002fb00
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 0x10033e4e
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 0x10033e0f
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
push eax
lea ecx, [esp + 0x100]
push ecx
call fcn.10032620
push eax
lea edx, [esp + 0xb4]
push str.cannot_create_pipe:
push edx
call fcn.10033230
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x10033de6
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 0x10047d70
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 0x10033e1d
mov dword [esp + 0x20], eax
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10033e2b
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], pe_nt_image_headers32
call dword [sym.imp.kernel32.dll_SetHandleInformation]
mov edx, dword [esp + 0xd4]
mov ecx, dword [esp + 0xc0]
mov eax, ecx
cmp edx, ebp
jae 0x10033e69
lea eax, [esp + 0xc0]
mov edi, dword [esp + 0xd0]
lea eax, [eax + edi*2]
cmp edx, ebp
jae 0x10033e7e
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.10030c90
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0x1c], ebx
call fcn.10031660
mov eax, dword [esp + 0xdc]
cmp dword [esp + 0xf0], ebp
jae 0x10033ed2
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.10003740
add esp, 0x28
test eax, eax
jne 0x10033f5e
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
push eax
lea edx, [esp + 0x100]
push edx
call fcn.10032620
push eax
lea eax, [esp + 0xb4]
push str.CreateProcess_failed:
push eax
call fcn.10033230
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x10033f35
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
jmp 0x10033f39
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 0x10047d70
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 0x100340c9
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 0x10033fd9
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 0x10047d70
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 0x100340c9
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.100316d0
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 0x10034092
cmp eax, 0x10000
jbe 0x10034025
mov eax, 0x10000
mov dword [esp + 0x34], eax
push eax
lea ecx, [esp + 0x28]
call fcn.100316d0
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 0x10034096
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
push eax
lea ecx, [esp + 0x100]
push ecx
call fcn.10032620
push eax
lea edx, [esp + 0xb4]
push str.pipe_read_error:
push edx
call fcn.10033230
add esp, 0x18
push eax
lea ecx, [esp + 0x28]
call fcn.1002e8b0
push 0x10047d70
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.100315b0
mov ecx, dword [esp + 0x38]
push eax
call fcn.10032830
lea ecx, [esp + 0xf8]
call fcn.1002f7c0
lea ecx, [esp + 0x24]
call fcn.1002f9b0
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
cmp edi, ebx
je 0x100340db
cmp edi, 0xffffffff
je 0x100340db
push edi
call esi
cmp ebp, ebx
je 0x100340e7
cmp ebp, 0xffffffff
je 0x100340e7
push ebp
call esi
mov eax, dword [esp + 0xa4]
cmp eax, ebx
je 0x100340fb
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1003410b
cmp eax, 0xffffffff
je 0x1003410b
push eax
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1003411b
cmp eax, 0xffffffff
je 0x1003411b
push eax
call esi
mov esi, 8
cmp dword [esp + 0xd4], esi
jb 0x10034139
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 0x1003416e
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.1003779c
add esp, 0x310
ret