Function at 0x140133a40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x43a0
call fcn.140186860
sub rsp, rax
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rsp + 0x4390], rax
cmp dword [rcx + 8], 0xffffffff
mov rsi, r8
mov ebx, edx
mov rdi, rcx
je 0x140133a79
mov rcx, qword [rcx]
call fcn.140133250
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jl 0x140133a92
mov eax, 0x10000
jmp 0x140133d3d
cmp ebx, dword [rcx + 0x14]
jge 0x140133a9c
call fcn.140132b70
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x140133ab4
mov rcx, qword [rdi]
call fcn.140132bc0
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jl 0x140133aa4
cmp ebx, 0xffffffff
jl 0x140133ac8
lea r8, [rsp + 0x40]
mov edx, ebx
mov rcx, rdi
call fcn.140133450
test byte [rsp + 0x148], 0x10
je 0x140133b2a
xor edx, edx
lea rcx, [rsp + 0x180]
mov r8d, 0x206
call fcn.14018f1e0
lea rax, [rsp + 0x180]
mov dword [rsp + 0x28], 0x103
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x44]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rdi + 0x13c]
lea rdx, [rsp + 0x180]
call fcn.140133910
xor eax, eax
jmp 0x140133d3d
movzx eax, word [rsi]
mov rdx, rsi
mov qword [rsp + 0x43d8], r14
mov rcx, rsi
xor r14d, r14d
test ax, ax
je 0x140133c3e
cmp ax, 0x2f
je 0x140133b53
cmp ax, 0x5c
jne 0x140133b57
lea rdx, [rcx + 2]
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140133b47
cmp rdx, rsi
je 0x140133c3e
lea r8, [rsp + 0x180]
mov rcx, rsi
sub r8, rsi
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [r8 + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140133b80
sub rdx, rsi
sar rdx, 1
lea rdx, [rdx*2 - 2]
cmp rdx, 0x208
jae 0x140133d58
mov word [rsp + rdx + 0x180], r14w
movzx eax, word [rsp + 0x180]
mov qword [rsp + 0x43c8], rbp
cmp ax, 0x2f
je 0x140133be1
cmp ax, 0x5c
je 0x140133be1
cmp word [rsp + 0x182], 0x3a
je 0x140133be1
xor bpl, bpl
jmp 0x140133be4
mov bpl, 1
lea rdx, [0x140211e28]
lea rcx, [rsp + 0x180]
call fcn.14018e738
lea rdx, [0x140211e30]
mov rbx, rax
lea rcx, [rsp + 0x180]
call fcn.14018e738
test rax, rax
setne cl
test rbx, rbx
setne al
or cl, al
or cl, bpl
mov rbp, qword [rsp + 0x43c8]
jne 0x140133c3e
lea rcx, [rdi + 0x13c]
lea rdx, [rsp + 0x180]
call fcn.140133910
mov eax, dword [rsp + 0x148]
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140133c7d
mov eax, 0x200
jmp 0x140133d35
mov rcx, qword [rdi]
call fcn.140132f00
mov rcx, qword [rdi]
lea rdx, [rsp + 0x390]
mov r8d, 0x4000
xor sil, sil
call fcn.140133050
test eax, eax
js 0x140133ce3
je 0x140133ce6
lea r9, [rsp + 0x170]
mov qword [rsp + 0x20], r14
mov r8d, eax
lea rdx, [rsp + 0x390]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140133ce3
mov rcx, qword [rdi]
lea rdx, [rsp + 0x390]
mov r8d, 0x4000
call fcn.140133050
test eax, eax
jns 0x140133ca2
mov sil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x140133d1a
test sil, sil
jne 0x140133d1a
lea r9, [rsp + 0x15c]
mov rcx, rbx
lea r8, [rsp + 0x14c]
lea rdx, [rsp + 0x154]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.140133250
neg sil
sbb eax, eax
and eax, 0x400
mov r14, qword [rsp + 0x43d8]
mov rcx, qword [rsp + 0x4390]
xor rcx, rsp
call fcn.140185a60
add rsp, 0x43a0
pop rdi
pop rsi
pop rbx
ret
call fcn.14018626c
int3