Function at 0x140058570
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14012a0a8]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r15, qword [rcx]
xor r12d, r12d
lea ecx, [r12 + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [r15 + 0x4a0]
mov qword [rsp + 0x40], rbx
mov rcx, rbx
call fcn.14009b8c4
test eax, eax
jne 0x140058f01
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x140058f0c
cmp qword [r15 + 0x500], 1
jae 0x1400586f4
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], reloc.OLEAUT32.dll_SafeArrayDestroy
lea edx, [r12 + 0x50]
lea rcx, [rsp + 0x78]
call fcn.14001fc00
mov rcx, rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], 0x4f
mov qword [rbp - 0x70], 0x4f
movaps xmm0, xmmword [str.https:__flingtrainer.com_wp_content_check_for_trainer_update_get_trainer_update]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14010f3a0]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14010f3b0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14010f3c0]
movups xmmword [rax + 0x30], xmm1
movsd xmm0, qword [0x14010f3d0]
movsd qword [rax + 0x40], xmm0
mov eax, dword [0x14010f3d8]
mov dword [rcx + 0x48], eax
movzx eax, word [0x14010f3dc]
mov word [rcx + 0x4c], ax
movzx eax, byte [0x14010f3de]
mov byte [rcx + 0x4e], al
mov byte [rcx + 0x4f], r12b
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.140063370
lea rsi, [r15 + 0x4f0]
mov rdx, rax
mov rcx, rsi
call fcn.14001f730
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1400586e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400586db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058f1c
call fcn.14009c890
movdqa xmm0, xmmword [0x140117000]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r12w
jmp 0x1400586fb
lea rsi, [r15 + 0x4f0]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
mov r14, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x140058718
mov rsi, qword [rsi]
movabs rdi, 0x7ffffffffffffffe
cmp r14, rdi
ja 0x140058f22
mov ecx, 0xa
mov qword [rbp - 0x28], 7
cmp r14, 8
jae 0x14005874b
mov qword [rbp - 0x30], r14
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x40], xmm0
jmp 0x14005878e
mov rax, r14
or rax, 7
cmp rax, rdi
ja 0x140058761
mov rdi, rax
cmp rax, rcx
cmovb rdi, rcx
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x40]
call fcn.14001f8a0
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], rdi
lea r8, [r14*2 + 2]
mov rdx, rsi
mov rcx, rax
call fcn.14009eb40
nop
mov rcx, rbx
call fcn.14009b8cc
nop
mov r8d, 0x7c
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x58]
call fcn.140062080
mov rdi, rax
lea rbx, [r15 + 0x570]
cmp rbx, rax
je 0x14005882f
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005880e
mov rdx, qword [rbx + 8]
call fcn.14005ae10
mov rcx, qword [rbx]
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
cmp rdx, 0x1000
jb 0x1400587fe
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140058f28
mov rcx, r8
call fcn.14009c890
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
mov rax, qword [rdi]
mov qword [rbx], rax
mov rax, qword [rdi + 8]
mov qword [rbx + 8], rax
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x10], rax
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005887e
mov rdx, qword [rsp + 0x60]
call fcn.14005ae10
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058879
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058f28
call fcn.14009c890
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rdx
sar rax, 5
cmp rax, 1
jb 0x140058e92
lea rcx, [rbp - 0x20]
call fcn.14001f7d0
nop
lea r8, [rbp - 0x20]
mov rbx, qword [rbp - 0x20]
mov r14, qword [rbp - 8]
cmp r14, 8
cmovae r8, rbx
mov rdx, qword [rbp - 0x10]
cmp rdx, 5
jne 0x140058a4a
lea rcx, str.false
test rdx, rdx
je 0x1400588e9
sub r8, rcx
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140058a4a
add rcx, 2
sub rdx, 1
jne 0x1400588d1
mov rdi, qword [r15 + 0x590]
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 7
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
lea rcx, [rbp - 0x68]
call fcn.14001f8a0
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x58], SafeArrayUnaccessData
mov qword [rbp - 0x50], reloc.OLEAUT32.dll_SafeArrayUnaccessData
movups xmm0, xmmword [str.SyK3aYzQCG44zzWsj3]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14010f310]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x14010f320]
mov dword [rax + 0x20], ecx
mov word [rax + 0x24], r12w
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], 4
mov qword [rsp + 0x70], 7
movabs rsi, 0x4d005700580044
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x60], r12w
mov r9, qword [rdi]
cmp qword [r9 + 0x18], 8
jb 0x140058984
mov r9, qword [r9]
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r8, qword [rbp - 0x68]
lea rcx, [rdi + 8]
cmp qword [rcx + 0x18], 8
jb 0x1400589a0
mov rcx, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400589ed
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400589e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058f2e
call fcn.14009c890
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140058e56
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058a40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058f34
call fcn.14009c890
jmp 0x140058e56
lea r13, [0x14013ec50]
mov qword [rsp + 0x50], r13
mov rcx, r13
call fcn.14009b8c4
test eax, eax
jne 0x140058f3a
cmp dword [0x14013ec9c], 0x7fffffff
je 0x140058f45
mov dword [rsp + 0x40], 0xa
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x48]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x40]
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], 5
mov qword [rbp - 0x70], reloc.OLEAUT32.dll_SafeArrayDestroy
mov eax, dword [str.WMURL]
mov dword [rsp + 0x78], eax
movzx eax, byte [0x14010f2b8]
mov byte [rsp + 0x7c], al
mov byte [rsp + 0x7d], 0
lea rdx, [rsp + 0x78]
mov rcx, r15
call fcn.140050fc0
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x48]
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x48], 1
jne 0x140058b73
mov rcx, qword [0x14013ebf0]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0x39
jb 0x140058f5a
lea rax, [0x14013ebe0]
cmp qword [0x14013ebf8], 0x10
cmovae rax, qword [0x14013ebe0]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x39
lea r9, str.https:__flingtrainer.com_download_wemod_trainer.php_name
lea rcx, [rbp - 0x68]
call fcn.140023150
lea rdx, [rbp - 0x68]
mov rcx, r15
call fcn.140050fc0
mov rcx, qword [r15 + 0x590]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], 5
mov qword [rbp - 0x70], 7
movsd xmm0, qword [0x14010efb8]
movsd qword [rsp + 0x78], xmm0
movzx eax, word [0x14010efc0]
mov word [rbp - 0x80], ax
mov word [rbp - 0x7e], r12w
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], 4
mov qword [rsp + 0x70], 7
movabs rsi, 0x4d005700580044
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x60], r12w
lea r8, [rcx + 8]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea rdx, [rbp]
mov rcx, qword [rcx]
call fcn.140053580
lea r8, [rbp]
mov r9, qword [rbp]
mov r10, qword [rbp + 0x18]
cmp r10, 8
cmovae r8, r9
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x12
jne 0x140058c49
lea rcx, str.SyK3aYzQCG44zzWsj3
test rdx, rdx
je 0x140058c44
sub r8, rcx
nop dword [rax + rax]
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140058c49
add rcx, 2
sub rdx, 1
jne 0x140058c30
mov dil, 1
jmp 0x140058c4c
xor dil, dil
cmp r10, 8
jb 0x140058c88
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x140058c7f
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058f60
mov rcx, r9
call fcn.14009c890
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140058cca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058cc5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058f66
call fcn.14009c890
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140058d1f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058d1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058f6c
call fcn.14009c890
test dil, dil
je 0x140058e4d
mov rcx, qword [r15 + 0x590]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], 5
mov qword [rbp - 0x70], 7
movsd xmm0, qword [str.false]
movsd qword [rsp + 0x78], xmm0
movzx eax, word [0x14010efd0]
mov word [rbp - 0x80], ax
mov word [rbp - 0x7e], r12w
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], 4
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x60], r12w
mov r9, qword [rcx]
cmp qword [r9 + 0x18], 8
jb 0x140058d97
mov r9, qword [r9]
lea r8, [rsp + 0x78]
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x140058daa
mov rcx, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140058df7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058df2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058f72
call fcn.14009c890
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140058e4d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058e47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058f78
call fcn.14009c890
nop
mov rcx, r13
call fcn.14009b8cc
nop
cmp r14, 8
jb 0x140058e92
lea rdx, [r14*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140058e89
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058f7e
mov rcx, rbx
call fcn.14009c890
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140058ece
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058ec9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058efb
call fcn.14009c890
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14009c870
lea r11, [rsp + 0x130]
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
call fcn.1400a34c4
int3
mov ecx, 5
call fcn.14009b618
int3
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call fcn.14009b618
nop
call fcn.1400a34c4
nop
call fcn.140002720
nop
call fcn.1400a34c4
nop
call fcn.1400a34c4
nop
call fcn.1400a34c4
int3
mov ecx, 5
call fcn.14009b618
int3
mov dword [0x14013ec9c], 0x7ffffffe
mov ecx, 6
call fcn.14009b618
nop
call fcn.140002720
nop
call fcn.1400a34c4
nop
call fcn.1400a34c4
nop
call fcn.1400a34c4
nop
call fcn.1400a34c4
nop
call fcn.1400a34c4
nop
call fcn.1400a34c4
int3