Function at 0x180014730
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180035020]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov r14, rcx
mov qword [rsp + 0x58], rcx
xor r12d, r12d
cmp rdx, qword [rcx + 0x98]
je 0x18001478a
mov rax, qword [rcx + 0x30]
mov dword [rax + 0x34], r12d
jmp 0x180015000
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
xor r8d, r8d
xor edx, edx
call fcn.180016da0
mov rdi, rax
mov r15, rax
mov qword [rsp + 0x40], rax
lea rbx, [r14 + 0x58]
mov qword [rsp + 0x38], rbx
test rbx, rbx
je 0x1800147c6
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800147c6
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [r14 + 0x50], 0
jne 0x1800147ee
test rbx, rbx
je 0x180014f6c
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800147e4
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], r12
jmp 0x180014f6c
lea rcx, [r14 + 0x48]
lea rax, [rsp + 0x40]
cmp rax, rcx
je 0x18001481b
mov r15, qword [rcx]
mov qword [rsp + 0x40], r15
mov qword [rcx], rdi
mov rax, qword [rsp + 0x48]
mov rsi, qword [rcx + 8]
mov qword [rsp + 0x48], rsi
mov qword [rcx + 8], rax
jmp 0x180014820
mov rsi, qword [rsp + 0x48]
mov qword [rsp + 0x60], rsi
test rbx, rbx
je 0x18001483d
mov rcx, qword [rbx]
test rcx, rcx
je 0x180014838
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], r12
mov rcx, r14
call fcn.180016690
mov edx, 0x135d
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xb]
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov r13d, esi
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
cmp esi, 0x989680
jl 0x180014893
mov edx, 0x1009
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsp + 0x30], 0x989680
jmp 0x180014907
mov dword [rsp + 0x30], esi
mov edx, 0x1004
call qword [sym.imp.USER32.dll_SendMessageW]
add eax, esi
cmp eax, 0x989680
jle 0x180014907
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [rsi - 0x989680]
add eax, ecx
mov dword [rsp + 0x30], esi
test eax, eax
jle 0x180014907
mov ebx, eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x1800148fd
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1008
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
sub rbx, 1
jne 0x1800148d1
mov dword [rsp + 0x30], esi
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x38], r12
mov ebx, 7
mov qword [rbp + 0x40], rbx
mov word [rbp + 0x28], r12w
mov rsi, qword [r15]
cmp rsi, r15
je 0x180014edd
mov ebx, 9
dec r13d
mov dword [rsp + 0x34], r13d
inc dword [r14 + 0x90]
mov r8d, dword [r14 + 0x90]
lea rdx, [0x180026e48]
lea rcx, [rbp + 0x28]
call fcn.180017d10
lea r15, [rsi + 0x10]
mov qword [rbp - 8], r12
mov qword [rbp], r12
lea r14, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae r14, qword [rbp + 0x28]
mov r13, qword [rbp + 0x38]
cmp r13, 8
jae 0x180014991
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp], 7
jmp 0x180014a38
mov rbx, r13
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rax, [rbx + 1]
lea rdx, [rax + rax]
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
jbe 0x1800149cc
mov rax, 0xffffffffffffffff
mov rdx, rax
jmp 0x1800149dc
cmp rdx, 0x1000
jb 0x180014a06
mov rax, 0xffffffffffffffff
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, rax
call fcn.180021574
mov rcx, rax
test rax, rax
je 0x180014ec1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180014a18
test rdx, rdx
je 0x180014a15
mov rcx, rdx
call fcn.180021574
jmp 0x180014a18
mov rax, r12
mov qword [rbp - 0x18], rax
lea r8, [r13*2 + 2]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp], rbx
mov ebx, 9
mov qword [rbp - 8], r13
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp]
cmp rcx, rdx
jae 0x180014a67
lea rax, [rcx + 1]
mov qword [rbp - 8], rax
lea rax, [rbp - 0x18]
cmp rdx, 8
cmovae rax, qword [rbp - 0x18]
mov dword [rax + rcx*2], 9
jmp 0x180014a73
mov r9d, ebx
lea rcx, [rbp - 0x18]
call fcn.1800133e0
mov r9, r15
cmp qword [r15 + 0x18], 8
jb 0x180014a80
mov r9, qword [r15]
mov rdx, qword [r15 + 0x10]
mov rcx, qword [rbp - 8]
mov r8, qword [rbp]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x180014ac3
lea r14, [rdx + rcx]
mov qword [rbp - 8], r14
lea rbx, [rbp - 0x18]
cmp r8, 8
cmovae rbx, qword [rbp - 0x18]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + r14*2], r12w
jmp 0x180014ad1
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x18]
call fcn.18000ffe0
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x180014b17
lea r14, [rcx + 2]
mov qword [rbp - 8], r14
lea rbx, [rbp - 0x18]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x18]
lea rcx, [rbx + rcx*2]
mov r8d, 4
lea rdx, [0x180026e50]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + r14*2], r12w
jmp 0x180014b35
mov qword [rsp + 0x20], 2
lea r9, [0x180026e50]
mov edx, 2
lea rcx, [rbp - 0x18]
call fcn.18000ffe0
mov r14, qword [rsp + 0x58]
mov rax, qword [r14 + 0x88]
test rax, rax
je 0x180014c6c
mov rcx, qword [rax]
test rcx, rcx
je 0x180014c6c
cmp qword [rcx], 0xffffffffffffffff
je 0x180014c6c
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], 0xf
mov byte [rbp + 8], 0
lea rcx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rcx, qword [rbp - 0x18]
lea r8, [rbp + 8]
mov rdx, qword [rbp - 8]
call fcn.18001a2c0
test al, al
jne 0x180014bdc
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x180014c5c
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180014c57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180014c57
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rsp + 0x38], r12d
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 0x10
cmovae rdx, qword [rbp + 8]
mov rax, qword [r14 + 0x88]
mov rcx, qword [rax]
test rcx, rcx
je 0x180014c21
test rdx, rdx
je 0x180014c21
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x180014c21
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x38]
mov r8d, dword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x180014c5c
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180014c57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180014ec8
call fcn.180021994
mov byte [rbp + 8], 0
mov qword [rbp + 0x20], 0xf
mov qword [rbp + 0x18], r12
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jle 0x180014cbf
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x180014cb6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180014cb1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180014ecf
call fcn.180021994
mov r13, qword [rbp + 0x28]
jmp 0x180014e99
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov rbx, 0xffffffffffffffff
test r13, r13
je 0x180014d22
lea rcx, [r13 + 1]
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.18002199c
mov rdx, rax
mov qword [rsp + 0x78], rax
lea rcx, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
mov r13, qword [rbp + 0x28]
cmovae rcx, r13
sub rdx, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rcx + rdx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180014d10
jmp 0x180014d26
mov r13, qword [rbp + 0x28]
mov rcx, qword [r15 + 0x10]
test rcx, rcx
je 0x180014d72
inc rcx
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.18002199c
mov rcx, rax
mov qword [rbp - 0x80], rax
cmp qword [r15 + 0x18], 8
jb 0x180014d57
mov r15, qword [r15]
sub rcx, r15
nop word [rax + rax]
movzx eax, word [r15]
mov word [r15 + rcx], ax
lea r15, [r15 + 2]
test ax, ax
jne 0x180014d60
mov rcx, qword [r14 + 0xa0]
mov qword [rsp + 0x50], rcx
lea rax, [rcx + 1]
mov qword [r14 + 0xa0], rax
mov rdx, qword [r14 + 0xc8]
mov rbx, rdx
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], 0
jne 0x180014dc3
nop dword [rax]
cmp qword [rax + 0x20], rcx
jge 0x180014dac
mov rax, qword [rax + 0x10]
jmp 0x180014db2
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x180014da0
cmp rbx, rdx
je 0x180014dc3
cmp rcx, qword [rbx + 0x20]
jge 0x180014e00
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x70]
lea rcx, [r14 + 0xc8]
call fcn.180017000
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rsp + 0x68]
lea rcx, [r14 + 0xc8]
call fcn.180017050
mov rbx, qword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbx + 0x28], xmm0
mov dword [rbp - 0x70], 5
mov qword [rbp - 0x6c], 0xfffffff
mov qword [rbp - 0x64], r12
mov rbx, 0xffffffffffffffff
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rbx
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x48], rax
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
mov edx, 0x104d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
nop
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x180014e94
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180014e8f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180014ed6
call fcn.180021994
mov r14, qword [rsp + 0x58]
mov word [rbp - 0x18], r12w
mov qword [rbp], 7
mov qword [rbp - 8], r12
mov rsi, qword [rsi]
mov r15, qword [rsp + 0x40]
cmp rsi, r15
je 0x180014ee3
mov r13d, dword [rsp + 0x34]
jmp 0x18001492d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r13, qword [rbp + 0x28]
jmp 0x180014ee7
mov rbx, qword [rbp + 0x40]
xor r9d, r9d
lea edx, [r9 + 0xb]
lea r8d, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
cmp qword [rsp + 0x60], 0
je 0x180014f1d
mov edx, 5
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_BringWindowToTop]
nop
cmp rbx, 8
jb 0x180014f5b
lea rdx, [rbx*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x180014f53
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180014f53
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.180021994
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r12w
mov rdi, qword [r15]
mov qword [r15], r15
mov qword [r15 + 8], r15
mov qword [rsp + 0x48], r12
cmp rdi, r15
je 0x180014ff3
mov rsi, qword [rdi]
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x68], rbx
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180014fc7
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x180014fc2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180014fec
mov rcx, r8
call fcn.180021994
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov edx, 0x30
mov rcx, rdi
call fcn.180021994
mov rdi, rsi
cmp rsi, r15
jmp 0x180014f7e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov edx, 0x30
mov rcx, r15
call fcn.180021994
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.180021550
lea r11, [rsp + 0x150]
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