Function at 0x140012890
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400ab088]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov ebx, edx
mov r14, rcx
cmp qword [0x1400b0a40], 0
je 0x140012bf4
cmp qword [0x1400b0ae0], 0
je 0x140012bf4
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [0x1400b0af0]
lea rdx, str.https:__flingtrainer.com_wp_content_check_for_trainer_update_
lea rcx, [rbp - 0x41]
call fcn.140002670
mov rdx, rax
lea rcx, [rbp + 0x1f]
call fcn.140016690
nop
lea r8, [rbp + 0x1f]
mov rdi, qword [rbp + 0x1f]
mov rsi, qword [rbp + 0x37]
cmp rsi, 8
cmovae r8, rdi
mov r9, qword [rbp + 0x2f]
cmp r9, 5
jne 0x140012962
mov rdx, r9
lea r10, [0x1400909f0]
sub r10, r8
nop dword [rax + rax]
movzx eax, word [r10 + r8]
cmp word [r8], ax
jne 0x14001296c
add r8, 2
sub rdx, 1
jne 0x140012940
test ebx, ebx
jle 0x140012bbd
jmp 0x140012bb1
cmp r9, 2
jbe 0x140012bad
lea rax, [rbp + 0x1f]
cmp rsi, 8
cmovae rax, rdi
mov ebx, 1
cmp word [rax], 0x22
jne 0x1400129bc
mov eax, ebx
cmp r9, rbx
cmovb rax, r9
lea rcx, [rbp + 0x1f]
cmp rsi, 8
cmovae rcx, rdi
sub r9, rax
mov qword [rbp + 0x2f], r9
lea r8, [r9*2 + 2]
lea rdx, [rcx + rax*2]
call fcn.140053e40
mov rsi, qword [rbp + 0x37]
mov r9, qword [rbp + 0x2f]
mov rdi, qword [rbp + 0x1f]
lea rax, [rbp + 0x1f]
cmp rsi, 8
cmovae rax, rdi
cmp word [rax + r9*2 - 2], 0x22
jne 0x140012a22
lea rdx, [r9 - 1]
cmp r9, rdx
jb 0x140012c24
mov rax, r9
sub rax, rdx
cmp rax, rbx
cmovb rbx, rax
lea rax, [rbp + 0x1f]
cmp rsi, 8
cmovae rax, rdi
lea rcx, [rax + rdx*2]
sub r9, rbx
mov qword [rbp + 0x2f], r9
sub r9, rdx
lea r8, [r9*2 + 2]
lea rdx, [rcx + rbx*2]
call fcn.140053e40
mov rsi, qword [rbp + 0x37]
mov r9, qword [rbp + 0x2f]
mov rdi, qword [rbp + 0x1f]
lea r10, [rbp + 0x1f]
cmp rsi, 8
cmovae r10, rdi
cmp r9, 3
jb 0x140012b73
lea r11, [r9 - 2]
lea r11, [r10 + r11*2]
mov rax, r10
lea rbx, [0x140090d60]
nop word [rax + rax]
mov rcx, r11
sub rcx, rax
sar rcx, 1
je 0x140012b73
cmp word [rax], 0x31
je 0x140012a6f
add rax, 2
sub rcx, 1
jmp 0x140012a59
test rax, rax
je 0x140012b73
mov r8d, 3
mov rdx, rbx
mov r9, rax
sub r9, rbx
nop word [rax + rax]
movzx ecx, word [rdx]
cmp word [r9 + rdx], cx
jne 0x140012ba4
add rdx, 2
sub r8, 1
jne 0x140012a90
sub rax, r10
cmp rax, 2
jae 0x140012b73
lea rax, [rbp - 0x21]
mov qword [rbp - 0x59], rax
lea rdx, [0x1400b0a30]
lea rcx, [rbp - 0x21]
call fcn.140012e20
mov rbx, rax
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 1]
call fcn.140012e20
nop
mov rdx, rbx
mov rcx, rax
call fcn.140017a30
movzx ebx, al
lea rcx, [0x1400b0b60]
call fcn.14003438c
test eax, eax
je 0x140012b03
mov ecx, eax
call fcn.140033e48
mov dword [rbp - 0x59], 7
xor edi, edi
mov dword [rbp - 0x51], edi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x51]
lea r8d, [rdi + 4]
lea rdx, [rbp - 0x59]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
test bl, bl
setne al
mov dword [rbp - 0x51], eax
mov dword [rbp - 0x59], edi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x59]
lea r8d, [rdi + 4]
lea rdx, [rbp - 0x51]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [0x1400b0b60]
call fcn.1400343b0
test eax, eax
je 0x140012b6b
mov ecx, eax
call fcn.140033e48
nop
mov rsi, qword [rbp + 0x37]
mov rdi, qword [rbp + 0x1f]
cmp rsi, 8
jb 0x140012bf4
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140012bec
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012c1e
jmp 0x140012bec
add rax, 2
jmp 0x140012a50
test ebx, ebx
jle 0x140012b73
lea edx, [rbx - 1]
mov rcx, r14
call fcn.140012890
nop
cmp rsi, 8
jb 0x140012bf4
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140012bec
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012c18
mov rcx, rdi
call fcn.1400357d4
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400357b0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140056d64
int3
call fcn.140056d64
nop
call fcn.140002530
nop
int3