Function at 0x49aa00
Capabilities:
Create process on windows
Delete file
Set environment variable
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
push edi
cmp eax, ebx
je 0x49aa57
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push eax
call edi
cmp eax, 0x102
jne 0x49aa3a
mov eax, dword [esi + 8]
push 0x9c4
push eax
mov dword [esi + 0x6c], 1
call edi
cmp eax, ebx
je 0x49aa4a
mov ecx, dword [esi + 8]
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov ecx, esi
call fcn.00498230
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x49aad9
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x49aa83
cmp eax, 0xffffffff
je 0x49aa83
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x49aa83
call edi
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x49aa99
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
jne 0x49aa99
call edi
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x49aaaf
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
jne 0x49aaaf
call edi
mov edi, dword [esi + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
cmp edi, ebx
je 0x49aad6
mov eax, dword [edi + 0x24]
cmp eax, ebx
je 0x49aacd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call fcn.00441300
add esp, 4
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x49aaec
push eax
call fcn.00441300
add esp, 4
mov dword [esi + 0x3c], ebx
mov edi, dword [esi + 0x40]
cmp edi, ebx
je 0x49ab06
mov ecx, edi
call fcn.004ad600
push edi
call fcn.00441300
add esp, 4
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x70], 5
jne 0x49abfd
cmp dword [esi + 0x54], ebx
je 0x49abfd
mov ecx, esi
call fcn.0049a950
push str.cmd.exe
call fcn.00441380
mov ebx, eax
mov eax, dword [esi + 0x54]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x10
push 2
push eax
call fcn.004412c0
mov ecx, dword [esi + 0x54]
push ecx
mov edi, eax
push str._c____s__
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x4cac2c
push str.ConEmuInUpdate
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp byte [esi + 0x68], 0
mov eax, str.runas
jne 0x49ab79
mov eax, str.open
push 2
push 0
push edi
push ebx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x49abe1
mov edx, dword [esi + 0x54]
push eax
push edx
lea eax, [ebp - 0x820]
push str.Failed_to_start_update_batch_n_s_nError_code_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x1010
push str.ConEmu
lea ecx, [ebp - 0x820]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [esi + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x49abd7
cmp byte [eax + 0x30], 0
jne 0x49abe1
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x49abee
push ebx
call fcn.00441300
add esp, 4
test edi, edi
je 0x49abfb
push edi
call fcn.00441300
add esp, 4
xor ebx, ebx
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x49ac10
push eax
call fcn.00441300
add esp, 4
mov dword [esi + 0x54], ebx
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x49ac23
push eax
call fcn.00441300
add esp, 4
mov dword [esi + 0x50], ebx
mov edi, dword [esi + 0x34]
cmp edi, ebx
je 0x49ac3d
mov ecx, edi
call fcn.0049c290
push edi
call fcn.00441300
add esp, 4
mov dword [esi + 0x34], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret