Function at 0x140058500
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140121ef0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r10, qword [0x140122018]
mov r12, qword [r10 + 0x1a8]
add r12, 0xb38
mov qword [rbp - 0x51], r12
lea r13, [rcx + 0x150]
mov rax, qword [r13]
mov rbx, qword [rax]
mov rdi, rbx
cmp rbx, rax
je 0x140058922
nop dword [rax]
cmp byte [rbx + 0x19], 0
jne 0x1400585be
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14005859e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400585be
nop dword [rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140058590
jmp 0x1400585be
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400585bb
cmp rbx, qword [rax + 0x10]
jne 0x1400585bb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400585a8
mov rbx, rax
lea r14, [rdi + 0x60]
cmp qword [r14 + 0x18], 8
jb 0x1400585ce
mov r9, qword [r14]
jmp 0x1400585d1
mov r9, r14
lea rsi, [rdi + 0x38]
cmp qword [rsi + 0x18], 8
jb 0x1400585e1
mov r8, qword [rsi]
jmp 0x1400585e4
mov r8, rsi
lea rdx, str.UpdateBubbles:__s___s
mov rcx, qword [r10 + 0x1a8]
call fcn.14004c390
lea rdx, [rdi + 0x20]
mov rcx, r12
call fcn.1400a7a70
movzx r12d, al
mov qword [rbp + 7], 7
xor eax, eax
mov qword [rbp - 1], rax
mov word [rbp - 0x11], ax
lea r8d, [rax + 0xa]
lea rdx, str.LocalALM_
lea rcx, [rbp - 0x11]
call fcn.140003310
nop
cmp qword [rsi + 0x18], 8
jb 0x14005863a
mov rdx, qword [rsi]
jmp 0x14005863d
mov rdx, rsi
cmp word [rdx], 0
jne 0x140058648
xor r8d, r8d
jmp 0x14005865b
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140058650
lea rcx, [rbp - 0x11]
call fcn.140004d20
test r12b, r12b
mov r12, qword [rbp - 0x51]
je 0x1400586c5
lea r8, [rdi + 0x20]
lea rdx, [rbp - 0x21]
mov rcx, r12
call fcn.1400a7ed0
mov rcx, qword [rax]
lea rdx, [rdi + 0x20]
cmp rcx, qword [rax + 8]
mov rcx, r12
jne 0x1400586c0
call fcn.1400a84d0
mov rax, qword [0x140122018]
lea rdx, str.UpdateBubbles:_the_user_uses_nothing._Clean_up_
mov rcx, qword [rax + 0x1a8]
call fcn.14004c390
mov r8, rdi
lea rdx, [rbp - 0x39]
mov rcx, r13
call fcn.14004a2a0
jmp 0x1400588fd
call fcn.1400a84d0
cmp qword [rdi + 0x70], 0
jne 0x140058742
mov rax, qword [0x140122018]
lea rdx, str.UpdateBubbles:_there_is_nothing_to_display__Is_the_Bubble_process_still_alive_
mov rcx, qword [rax + 0x1a8]
call fcn.14004c390
lea r8, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae r8, qword [rbp - 0x11]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
jne 0x140058734
mov rax, qword [0x140122018]
lea rdx, str.UpdateBubbles:_there_is_nothing_to_display__The_Bubble_process_is_dead._Clean_up_
mov rcx, qword [rax + 0x1a8]
call fcn.14004c390
mov r8, rdi
lea rdx, [rbp - 0x49]
mov rcx, r13
call fcn.14004a2a0
jmp 0x1400588fd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400588fd
cmp qword [rdi + 0x58], 0xffffffffffffffff
jne 0x140058864
mov rax, qword [0x140122018]
lea rdx, str.UpdateBubbles:_we_must_create_a_new_pipe_instance_and_a_new_process_
mov rcx, qword [rax + 0x1a8]
call fcn.14004c390
mov qword [rbp + 0x27], 7
xor eax, eax
mov qword [rbp + 0x1f], rax
mov word [rbp + 0xf], ax
lea r8d, [rax + 9]
lea rdx, str..PIPE_
lea rcx, [rbp + 0xf]
call fcn.140003310
nop
cmp qword [rsi + 0x18], 8
jb 0x140058798
mov rsi, qword [rsi]
cmp word [rsi], 0
jne 0x1400587a3
xor r8d, r8d
jmp 0x1400587bb
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x1400587b0
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.140004d20
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x140058852
mov rax, qword [0x140122018]
lea rdx, str.UpdateBubbles:_we_must_create_a_new_pipe_instance_and_a_new_process_
mov rcx, qword [rax + 0x1a8]
call fcn.14004c390
mov r8, rdi
lea rdx, [rbp - 0x31]
mov rcx, r13
call fcn.14004a2a0
nop
cmp qword [rbp + 0x27], 8
jb 0x14005883d
mov rcx, qword [rbp + 0xf]
call sub.mfc110u.dll_Ordinal_1482
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], rsi
mov word [rbp + 0xf], si
jmp 0x1400588fd
cmp qword [rbp + 0x27], 8
jb 0x140058866
mov rcx, qword [rbp + 0xf]
call sub.mfc110u.dll_Ordinal_1482
jmp 0x140058866
xor esi, esi
mov rax, qword [0x140122018]
lea rdx, str.UpdateBubbles:_now__we_send_the_datas_to_the_new_process_over_the_pipe_
mov rcx, qword [rax + 0x1a8]
call fcn.14004c390
mov dword [rbp - 0x59], esi
mov rax, qword [rdi + 0x70]
lea rdx, [rdi + 0x60]
cmp qword [rdx + 0x18], 8
jb 0x140058895
mov rdx, qword [rdx]
lea r8d, [rax*2 + 2]
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x59]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov rax, qword [0x140122018]
mov rcx, qword [rax + 0x1a8]
jne 0x1400588df
lea rdx, str.UpdateBubbles:_something_went_wrong__Clean_up_everything_
call fcn.14004c390
mov r8, rdi
lea rdx, [rbp - 0x41]
mov rcx, r13
call fcn.14004a2a0
jmp 0x1400588fd
lea rdx, str.UpdateBubbles:_the_datas_have_been_sent__We_clean_up_the_structure.
call fcn.14004c390
mov qword [r14 + 0x10], rsi
cmp qword [r14 + 0x18], 8
jb 0x1400588f9
mov r14, qword [r14]
mov word [r14], si
cmp qword [rbp + 7], 8
jb 0x14005890d
mov rcx, qword [rbp - 0x11]
call sub.mfc110u.dll_Ordinal_1482
mov rdi, rbx
cmp rbx, qword [r13]
je 0x140058922
mov r10, qword [0x140122018]
jmp 0x140058570
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400bb310
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret