Function at 0x5ba082
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6be14a
call fcn.00664608
sub esp, 0x23c
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp + 0x18]
mov edi, 0x7b5e48
mov dword [ebp - 0x28], esi
xor ebx, ebx
mov ecx, edi
push eax
mov dword [ebp + 0x60], ebx
call fcn.00466081
and dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x5ba0be
mov eax, dword [eax]
push dword [ebp + 0x70]
push 0x6ce7dc
push eax
lea eax, [ebp - 0x40]
push 0x6ce960
push eax
call fcn.004577f2
add esp, 0x14
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 2
call fcn.00427afc
push 0x104
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
and dword [ebp - 0x14], 0
xor eax, eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x10], 7
call fcn.00427ba3
push 0
push str.updates_
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00437ff5
cmp eax, 0xffffffff
jne 0x5ba1e7
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x5ba144
mov eax, dword [ebp - 0x24]
push eax
push str.Relocate_Version_didnt_find_updates_in_path:__S
push 0x40
call fcn.0047d9cc
add esp, 0xc
mov dword [ebp + 0x5c], 0xf
xor ebx, ebx
lea ecx, [ebp + 0x48]
mov byte [ebp + 0x70], bl
mov dword [ebp + 0x48], ebx
push str.RelocateVersionFail
push dword [ebp + 0x70]
mov dword [ebp + 0x58], ebx
push 0x13
mov byte [ebp + 0x48], bl
call fcn.0041039b
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push str._status_:_Build_not_running_from_updates_dir_
push eax
call fcn.004577d4
pop ecx
pop ecx
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 5
push ecx
push eax
mov ecx, esi
call fcn.005baccd
lea ecx, [ebp + 0x18]
call fcn.00410858
mov eax, dword [ebp + 0x5c]
mov edi, 0x1000
cmp eax, 0x10
jb 0x5ba5d5
mov ecx, dword [ebp + 0x48]
inc eax
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x64], ecx
cmp eax, edi
jb 0x5ba1d9
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x64]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
jmp 0x5ba5d5
push dword [ebp + 0x70]
mov ecx, esi
call fcn.005b7aa9
test al, al
jne 0x5ba21f
push dword [ebp + 0x70]
push str.Failed_to_CopyVersionToInstallDir__S
push 0x40
call fcn.0047d9cc
add esp, 0xc
mov dword [ebp + 0x70], 9
lea eax, [ebp + 0x70]
lea ecx, [esi + 0x40]
push eax
call fcn.00420f31
jmp 0x5ba2e2
mov ecx, esi
call fcn.005b8ef9
mov esi, eax
test esi, esi
je 0x5ba243
lea eax, [ebp + 0x18]
mov ecx, esi
push eax
call fcn.005b45f2
xor ebx, ebx
inc ebx
mov byte [ebp + 0x73], bl
cmp dword [eax + 0x10], 0
jne 0x5ba247
mov byte [ebp + 0x73], 0
test bl, 1
je 0x5ba254
lea ecx, [ebp + 0x18]
call fcn.00427afc
cmp byte [ebp + 0x73], 0
je 0x5ba2e2
lea eax, [ebp]
mov ecx, edi
push eax
call fcn.00466081
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 6
jb 0x5ba275
mov eax, dword [eax]
push str..lng
push 0x6d3970
push 0x6ce7dc
push eax
lea eax, [ebp + 0x18]
push 0x6cee98
push eax
call fcn.004577f2
add esp, 0x18
lea ecx, [ebp]
mov byte [ebp - 4], 8
call fcn.00427afc
lea eax, [ebp + 0x48]
mov ecx, esi
push eax
call fcn.005b45f2
cmp dword [ebp + 0x2c], 8
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 9
jb 0x5ba2bd
mov ecx, dword [ebp + 0x18]
cmp dword [eax + 0x14], 8
jb 0x5ba2c5
mov eax, dword [eax]
push 1
push 1
push 0
push ecx
push eax
call fcn.00460499
lea ecx, [ebp + 0x48]
call fcn.00427afc
lea ecx, [ebp + 0x18]
call fcn.00427afc
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
and dword [ebp + 0x30], 0
mov ebx, eax
and dword [ebp + 0x40], 0
xor eax, eax
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
xor esi, esi
mov byte [ebp - 4], 0xa
inc esi
mov edi, 0x1000
cmp dword [ebp + 0x60], esi
jle 0x5ba441
and dword [ebp + 0x48], 0
lea ecx, [ebp + 0x48]
push dword [ebx + esi*4]
and dword [ebp + 0x58], 0
xor eax, eax
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
call fcn.00427ba3
push str._LOG
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0xb
call fcn.00436e07
test al, al
je 0x5ba3fb
and dword [ebp], 0
lea ecx, [ebp]
and dword [ebp + 0x10], 0
xor eax, eax
push 0x6cdce8
mov dword [ebp + 0x14], 7
mov word [ebp], ax
call fcn.00427ba3
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 0xc
jb 0x5ba38a
mov eax, dword [ebp + 0x48]
push dword [ebp + 0x58]
lea ecx, [ebp]
push eax
call fcn.00427b45
push eax
lea ecx, [ebp + 0x18]
call fcn.004277f3
cmp dword [ebp + 0x2c], 8
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 0xd
jb 0x5ba3af
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x28]
lea ecx, [ebp + 0x30]
push eax
call fcn.00427b45
lea ecx, [ebp + 0x18]
call fcn.00427afc
mov eax, dword [ebp + 0x14]
cmp eax, 8
jb 0x5ba3fb
mov ecx, dword [ebp]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x64], ecx
cmp eax, edi
jb 0x5ba3f2
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x64]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov eax, dword [ebp + 0x5c]
mov byte [ebp - 4], 0xa
cmp eax, 8
jb 0x5ba437
mov ecx, dword [ebp + 0x48]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x64], ecx
mov dword [ebp + 0x70], eax
cmp eax, edi
jb 0x5ba42e
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x64]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
inc esi
cmp esi, dword [ebp + 0x60]
jl 0x5ba31f
push str.__RELOCATED
lea ecx, [ebp + 0x30]
call fcn.00437714
push 8
pop ebx
lea ecx, [ebp + 0x30]
cmp dword [ebp + 0x44], ebx
jb 0x5ba45c
mov ecx, dword [ebp + 0x30]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], ebx
jb 0x5ba467
mov eax, dword [ebp - 0x40]
push ecx
push eax
mov esi, str.Launching__S_with_command_line:__S_n
push esi
call fcn.0040fa51
add esp, 0xc
lea ecx, [ebp + 0x30]
cmp dword [ebp + 0x44], ebx
jb 0x5ba482
mov ecx, dword [ebp + 0x30]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], ebx
jb 0x5ba48d
mov eax, dword [ebp - 0x40]
push ecx
push eax
push esi
push 0x40
call fcn.0047d9cc
mov ebx, dword [ebp - 0x28]
add esp, 0x10
mov ecx, ebx
call fcn.005bb644
cmp dword [ebp + 0x44], 8
lea ecx, [ebp + 0x30]
jb 0x5ba4b0
mov ecx, dword [ebp + 0x30]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x5ba4bc
mov eax, dword [ebp - 0x40]
push 1
push 0
push ecx
push eax
push 0x6ce504
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
push esi
push str.RelocateVersion:_ShellExecute_returned__d.
push 0x40
call fcn.0047d9cc
add esp, 0xc
cmp esi, 0x20
jg 0x5ba573
xor eax, eax
mov dword [ebp + 0x14], 0xf
push str.RelocateVersionFail
mov byte [ebp + 0x70], al
lea ecx, [ebp]
push dword [ebp + 0x70]
mov dword [ebp], eax
push 0x13
mov dword [ebp + 0x10], eax
mov byte [ebp], al
call fcn.0041039b
push esi
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 0xe
push str._status_:_ShellExecute_returned__d_
push eax
call fcn.004577d4
add esp, 0xc
lea ecx, [ebp]
mov byte [ebp - 4], 0xf
push ecx
push eax
mov ecx, ebx
call fcn.005baccd
lea ecx, [ebp + 0x18]
call fcn.00410858
mov eax, dword [ebp + 0x14]
cmp eax, 0x10
jb 0x5ba586
mov ecx, dword [ebp]
inc eax
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x64], ecx
cmp eax, edi
jb 0x5ba568
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x64]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
jmp 0x5ba586
lea eax, [ebp + 0x70]
mov dword [ebp + 0x70], 3
push eax
lea ecx, [ebx + 0x40]
call fcn.00420f31
mov eax, dword [ebp + 0x44]
cmp esi, 0x20
setg bl
cmp eax, 8
jb 0x5ba5c4
mov ecx, dword [ebp + 0x30]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x64], ecx
cmp eax, edi
jb 0x5ba5bb
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x64]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
and dword [ebp + 0x40], 0
xor eax, eax
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x5ba60d
mov ecx, dword [ebp - 0x24]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x64], ecx
cmp eax, edi
jb 0x5ba604
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x64]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
call fcn.00427afc
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x68
leave
ret 4