Function at 0x140081070
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x3b0
mov rax, qword [0x1400ee620]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov r13d, dword [rsp + 0x400]
mov ebp, r9d
mov rsi, r8
mov ebx, edx
mov rdi, rcx
cmp r13d, 3
je 0x1400813b8
cmp r13d, 2
je 0x1400810c3
cmp r13d, 1
je 0x1400810c3
mov eax, 0x10000
jmp 0x1400812ad
cmp dword [rcx + 8], 0xffffffff
je 0x1400810d1
mov rcx, qword [rcx]
call fcn.14007e600
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x1400810b9
cmp ebx, dword [rcx + 0x14]
jge 0x1400810ea
call fcn.14007e0c0
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x140081103
mov rcx, qword [rdi]
call fcn.14007e130
mov r11, qword [rdi]
cmp dword [r11 + 0x14], ebx
jl 0x1400810f2
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, rdi
call fcn.140080320
mov r11d, dword [rsp + 0x158]
shr r11d, 4
test r11b, 1
je 0x140081166
cmp r13d, 1
je 0x14008115f
movzx eax, byte [rsi]
cmp al, 0x2f
je 0x140081155
cmp al, 0x5c
je 0x140081155
test al, al
je 0x14008113f
cmp byte [rsi + 1], 0x3a
je 0x140081155
lea rcx, [rdi + 0x150]
mov rdx, rsi
call fcn.140080990
xor eax, eax
jmp 0x1400812ad
mov rdx, rsi
xor ecx, ecx
call fcn.140080990
xor eax, eax
jmp 0x1400812ad
mov qword [rsp + 0x3e8], r12
xor r12d, r12d
mov byte [rsp + 0x290], 0
cmp r13d, 1
je 0x14008129a
movzx eax, byte [rsi]
mov rbp, rsi
mov rcx, rsi
test al, al
je 0x1400811a6
cmp al, 0x2f
je 0x140081198
cmp al, 0x5c
jne 0x14008119c
lea rbp, [rcx + 1]
mov al, byte [rcx + 1]
inc rcx
test al, al
jne 0x140081190
mov r9d, 0x104
lea rcx, [rsp + 0x180]
mov r8, rsi
mov rdx, r9
call fcn.140087380
cmp rbp, rsi
jne 0x1400811ce
mov byte [rsp + 0x180], r12b
jmp 0x1400811fa
mov rax, rbp
sub rax, rsi
mov byte [rsp + rax + 0x180], r12b
movzx eax, byte [rsp + 0x180]
cmp al, 0x2f
je 0x140081238
cmp al, 0x5c
je 0x140081238
test al, al
je 0x1400811fa
cmp byte [rsp + 0x181], 0x3a
je 0x140081238
lea r9, [rsp + 0x180]
lea r8, [rdi + 0x150]
lea rdx, str._s_s_s
lea rcx, [rsp + 0x290]
mov qword [rsp + 0x20], rbp
call fcn.140086d5c
lea rdx, [rsp + 0x180]
lea rcx, [rdi + 0x150]
call fcn.140080990
jmp 0x140081266
lea r8, [rsp + 0x180]
lea rdx, str._s_s
lea rcx, [rsp + 0x290]
mov r9, rbp
call fcn.140086d5c
lea rdx, [rsp + 0x180]
xor ecx, ecx
call fcn.140080990
mov eax, dword [rsp + 0x158]
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x290]
mov dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rsi, 0xffffffffffffffff
jne 0x1400812cb
mov eax, 0x200
mov r12, qword [rsp + 0x3e8]
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.140083f40
add rsp, 0x3b0
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140080e60
cmp qword [rdi + 0x148], r12
jne 0x140081300
mov ecx, 0x4000
call fcn.1400817c0
mov qword [rdi + 0x148], rax
nop word [rax + rax]
mov rdx, qword [rdi + 0x148]
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, 0x4000
call fcn.14007fec0
mov ebx, eax
cmp eax, 0xffffff96
je 0x14008136d
test eax, eax
js 0x140081365
test eax, eax
jle 0x14008134a
mov rdx, qword [rdi + 0x148]
lea r9, [rsp + 0x44]
mov r8d, eax
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14008135d
cmp byte [rsp + 0x40], r12b
jne 0x140081373
test ebx, ebx
jne 0x140081300
mov r12d, 0x5000000
jmp 0x140081373
mov r12d, 0x400
jmp 0x140081373
mov r12d, 0x5000000
jmp 0x140081373
mov r12d, 0x1000
mov rcx, qword [rdi]
call fcn.14007e600
test r12d, r12d
jne 0x1400813a1
lea r9, [rsp + 0x16c]
lea r8, [rsp + 0x15c]
lea rdx, [rsp + 0x164]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp r13d, 1
je 0x1400813b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r12d
jmp 0x1400812a5
mov eax, dword [rcx + 8]
cmp edx, eax
je 0x140081414
cmp eax, 0xffffffff
je 0x1400813cc
mov rcx, qword [rcx]
call fcn.14007e600
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x1400810b9
cmp ebx, dword [rcx + 0x14]
jge 0x1400813e9
call fcn.14007e0c0
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x140081402
mov rcx, qword [rdi]
call fcn.14007e130
mov r11, qword [rdi]
cmp dword [r11 + 0x14], ebx
jl 0x1400813f1
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140080e60
mov dword [rdi + 8], ebx
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rsi
call fcn.14007fec0
mov ebx, eax
test eax, eax
jg 0x14008143c
mov rcx, qword [rdi]
call fcn.14007e600
mov dword [rdi + 8], 0xffffffff
cmp byte [rsp + 0x40], 0
jne 0x14008115f
test ebx, ebx
jle 0x140081455
mov eax, 0x600
jmp 0x1400812ad
mov eax, 0x5000000
mov edx, 0x1000
cmp ebx, 0xffffff96
cmove eax, edx
jmp 0x1400812ad