Function at 0x140039af0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x4f8]
sub rsp, 0x5f8
mov rax, qword [0x1401c7808]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov ecx, dword [0x1401d83d8]
mov rax, qword gs:[0x58]
mov rsi, qword [rax + rcx*8]
mov r14d, 0x140
cmp byte [r14 + rsi], r15b
jne 0x140039b58
call fcn.14013c228
mov edi, 0x10
add rdi, rsi
mov rcx, rdi
call fcn.14003f8f0
cmp rax, 0xffffffffffffffff
je 0x140039ec1
xor ecx, ecx
call fcn.14010e1c8
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14010e178
lea rdx, str._04d__02d__02d__02d:_02d:_02d
test rax, rax
je 0x140039bcf
mov r9d, dword [rax + 0x10]
inc r9d
mov r8d, dword [rax + 0x14]
add r8d, 0x76c
mov ecx, dword [rax]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rax + 4]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rax + 8]
mov dword [rsp + 0x28], ecx
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x80]
call fcn.140039980
jmp 0x140039bf5
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp + 0x80]
call fcn.140039980
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call fcn.14012f310
mov edx, 1
lea rcx, [rbp - 0x80]
call fcn.14001bd70
nop
cmp byte [r14 + rsi], 0
jne 0x140039c21
call fcn.14013c228
mov rcx, rdi
call fcn.14003f8f0
test rax, rax
jne 0x140039d10
mov rbx, r15
mov r8, rbx
mov rdx, qword [str.MW_DEBUG_LOG__04d.txt]
lea rcx, [rbp + 0xa0]
call fcn.1400399e0
inc rbx
cmp byte [r14 + rsi], 0
jne 0x140039c5a
call fcn.14013c228
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdx, rax
mov rcx, rdi
call fcn.14003f910
movzx eax, byte [r14 + rsi]
cmp rbx, 0x64
je 0x140039dc0
test al, al
jne 0x140039ca9
call fcn.14013c228
mov rcx, rdi
call fcn.14003f8f0
test rax, rax
je 0x140039c35
cmp byte [r14 + rsi], 0
jne 0x140039cc6
call fcn.14013c228
mov rcx, rdi
call fcn.14003f8f0
cmp rax, 0xffffffffffffffff
je 0x140039c35
lea rdx, [0x14015f3c8]
lea rcx, [rbp - 0x70]
call fcn.1400157b0
mov rcx, rax
lea rdx, [rbp + 0x80]
call fcn.1400157b0
mov rcx, rax
mov dl, 9
call fcn.140039670
mov rcx, rax
lea rdx, str._Log_start__r_n
call fcn.1400157b0
lea rbx, [rbp + 0x538]
call fcn.140009070
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r15
mov r9, qword [rbp + 0x530]
mov r8d, 0x400
lea rdx, [rbp + 0xe0]
mov rcx, qword [rax]
call fcn.14010d9e0
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x70]
call fcn.1400157b0
mov rcx, rax
mov dl, 9
call fcn.140039670
mov rcx, rax
lea rdx, [rbp + 0xe0]
call fcn.1400157b0
mov rcx, rax
lea rdx, [0x14015f3c8]
call fcn.1400157b0
nop
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x40], 2
mov rcx, qword [rbp + 8]
test cl, 2
jne 0x140039ddd
mov rax, qword [rbp - 0x28]
mov r8, qword [rax]
test r8, r8
je 0x140039ddd
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax]
cmp r8, qword [rbp]
cmovb r8, qword [rbp]
sub r8, rdx
jmp 0x140039e02
test al, al
jne 0x140039dc9
call fcn.14013c228
mov rdx, 0xffffffffffffffff
mov rcx, rdi
call fcn.14003f910
jmp 0x140039eb8
test cl, 4
jne 0x140039e0d
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x140039e0d
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x18]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
lea rcx, [rsp + 0x48]
call fcn.14000d380
nop
cmp byte [r14 + rsi], 0
jne 0x140039e19
call fcn.14013c228
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rbx, qword [rsp + 0x48]
mov rcx, rdi
call fcn.14003f8f0
mov rcx, rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x58]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140039e6c
cmp byte [r14 + rsi], al
jne 0x140039e5c
call fcn.14013c228
mov rdx, 0xffffffffffffffff
mov rcx, rdi
call fcn.14003f910
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140039ea5
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039ea0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039ee0
call fcn.14013b860
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
lea rcx, [rbp - 0x80]
call fcn.14001b410
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.14013b830
add rsp, 0x5f8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140107b20
nop
int3