Function at 0x4029e0
Capabilities:
Create directory
Create process on windows
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a4
mov ecx, dword [ebp + 0xc]
mov eax, str.NULL
push ebx
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
push edi
cmovne eax, ecx
push eax
push esi
push str.JoinMe_Update:_PID:__d__URL:__s
call fcn.004045b0
add esp, 0xc
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x40
mov esi, eax
mov dword [ebp - 0x158], 0
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.00405ad0
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x10], xmm0
test esi, esi
je 0x402a9c
push str.JoinMe_Update:_Waiting_for_parent_process...
call fcn.004045b0
add esp, 4
push 0x1388
push esi
call edi
mov edi, eax
cmp edi, 0x102
jne 0x402a85
push str.JoinMe_Update:_Terminate_parent_process_
call fcn.004045b0
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
push edi
push str.JoinMe_Update:_Parent_process_finished._Result:_0x_X
call fcn.004045b0
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 8
call fcn.004021d0
mov esi, eax
push esi
push str.JoinMe_Update:_Guardian_PID:__d
call fcn.004045b0
add esp, 8
test esi, esi
je 0x402b0f
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402b0f
push str.JoinMe_Update:_Waiting_for_guardian_process...
call fcn.004045b0
add esp, 4
push 0x1388
push esi
call edi
mov edi, eax
cmp edi, 0x102
jne 0x402afe
push str.JoinMe_Update:_Terminate_guardian_process_
call fcn.004045b0
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
push edi
push str.JoinMe_Update:_Guardian_process_finished._Result:_0x_X
call fcn.004045b0
add esp, 8
lea eax, [ebp - 0x114]
push eax
call fcn.004024d0
add esp, 4
test eax, eax
jne 0x402b3b
push str.JoinMe_Update:_GetInstallDirectory_failed.
call fcn.004045b0
add esp, 4
mov eax, 0x3e9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x114]
push eax
push str.JoinMe_Update:_Install_directory:__s
call fcn.004045b0
add esp, 8
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x115], 0x5c
jne 0x402b6e
mov byte [ebp + eax - 0x115], 0
lea eax, [ebp - 0x114]
push eax
call fcn.00401d00
push dword [section..data]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x25c]
push str._s_s
push eax
call edi
push 0x40
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.004020e0
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x25c]
push str._sjoin.me._s
push eax
call edi
lea eax, [ebp - 0x25c]
push eax
push str.JoinMe_Update:_Backup_folder_path:__s
call fcn.004045b0
add esp, 0x38
lea eax, [ebp - 0x25c]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov esi, eax
push esi
push str.JoinMe_Update:_CreateDirectory_result:__d
call fcn.004045b0
add esp, 8
test esi, esi
je 0x402c19
cmp esi, 0xb7
je 0x402c19
pop edi
pop esi
mov eax, 0x3ea
pop ebx
mov esp, ebp
pop ebp
ret
push str.config.json
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x4a4]
push str._s_s
push eax
call edi
push str.config.json
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x3a0]
push str._s_s
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x3a0]
push 1
push eax
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402c90
call ebx
push eax
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x4a4]
push eax
push str.JoinMe_Update:_Move__s____s__failed__error:__d
call fcn.004045b0
add esp, 0x10
jmp 0x402cab
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x4a4]
push eax
push str.JoinMe_Update:_Move__s____s_
call fcn.004045b0
add esp, 0xc
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi + section..data]
test eax, eax
je 0x402d53
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x4a4]
push str._s_s
push eax
call edi
push dword [esi + section..data]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x3a0]
push str._s_s
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x3a0]
push 1
push eax
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x402d2c
call ebx
push eax
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x4a4]
push eax
push str.JoinMe_Update:_Move__s____s__failed__error:__d
call fcn.004045b0
add esp, 0x10
jmp 0x402d47
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x4a4]
push eax
push str.JoinMe_Update:_Move__s____s_
call fcn.004045b0
add esp, 0xc
add esi, 4
cmp esi, 0x4c
jb 0x402cb0
push 0x5ba4
call fcn.00402940
add esp, 4
test eax, eax
jne 0x402d90
push str.JoinMe_Update:_GetResource_IDF_LMI__failed._Reverting_update...
call fcn.004045b0
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00402f30
add esp, 0xc
mov eax, 0x3eb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x114]
push eax
push str.JoinMe_Update:_Unpacking_files_to__s...
call fcn.004045b0
push section..data
lea eax, [ebp - 0x114]
push eax
push dword [0x42052c]
push dword [0x420528]
call fcn.004052f0
add esp, 0x18
test eax, eax
jne 0x402df1
push str.JoinMe_Update:_UnpackFiles_failed._Reverting_update...
call fcn.004045b0
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00402f30
add esp, 0xc
mov eax, 0x3ec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.JoinMe_Update:_Saving_config.json...
call fcn.004045b0
push str.config.json
push 0x5fb4
call fcn.00403080
add esp, 0xc
test eax, eax
je 0x402e18
push str.JoinMe_Update:_Failed_to_save_config.json._Reverting_update...
jmp 0x402dca
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x402e50
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402e24
sub ecx, edx
je 0x402e50
push esi
push dword [section..data]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x25c]
push str.__s_s___update__url__s
push eax
call edi
add esp, 0x14
jmp 0x402e6e
push dword [section..data]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x25c]
push str.__s_s___update
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x158], 0x44
push eax
push str.JoinMe_Update:_Restarting_join.me._Command_line:__s
call fcn.004045b0
add esp, 8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x25c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402ed7
call ebx
push eax
push str.JoinMe_Update:_Failed_to_start_join.me._Error:__d
call fcn.004045b0
add esp, 8
mov eax, 0x3ed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.JoinMe_Update:_Update_finished.
call fcn.004045b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret