Function at 0x1400333e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x3b0
mov rax, qword [0x1402d10e0]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov r12d, dword [rsp + 0x3f0]
mov ebp, r9d
mov rsi, r8
mov ebx, edx
mov rdi, rcx
cmp r12d, 3
je 0x1400336e7
cmp r12d, 2
je 0x14003343a
cmp r12d, 1
je 0x14003343a
mov eax, 0x10000
jmp 0x140033791
cmp dword [rcx + 8], 0xffffffff
je 0x140033448
mov rcx, qword [rcx]
call fcn.140030830
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x140033430
cmp ebx, dword [rcx + 0x14]
jge 0x140033461
call fcn.140030170
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x140033481
nop dword [rax]
mov rcx, qword [rdi]
call fcn.1400301e0
mov r11, qword [rdi]
cmp dword [r11 + 0x14], ebx
jl 0x140033470
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, rdi
call fcn.140030ad0
test byte [rsp + 0x158], 0x10
je 0x1400334dc
cmp r12d, 1
je 0x1400334d5
movzx eax, byte [rsi]
cmp al, 0x2f
je 0x1400334cb
cmp al, 0x5c
je 0x1400334cb
test al, al
je 0x1400334b5
cmp byte [rsi + 1], 0x3a
je 0x1400334cb
lea rcx, [rdi + 0x150]
mov rdx, rsi
call fcn.1400311b0
xor eax, eax
jmp 0x140033791
xor ecx, ecx
mov rdx, rsi
call fcn.1400311b0
xor eax, eax
jmp 0x140033791
xor ebp, ebp
cmp r12d, 1
je 0x1400335fb
movzx eax, byte [rsi]
mov r9, rsi
mov rcx, rsi
test al, al
je 0x14003350c
cmp al, 0x2f
je 0x1400334fd
cmp al, 0x5c
jne 0x140033501
lea r9, [rcx + 1]
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x1400334f5
lea rdx, [rsp + 0x180]
mov rcx, rsi
sub rdx, rsi
nop word [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x140033520
cmp r9, rsi
jne 0x14003353d
mov byte [rsp + 0x180], bpl
jmp 0x140033569
mov rax, r9
sub rax, rsi
mov byte [rsp + rax + 0x180], bpl
movzx eax, byte [rsp + 0x180]
cmp al, 0x2f
je 0x14003359b
cmp al, 0x5c
je 0x14003359b
test al, al
je 0x140033569
cmp byte [rsp + 0x181], 0x3a
je 0x14003359b
mov qword [rsp + 0x20], r9
lea r8, [rdi + 0x150]
lea rdx, [0x140220fb4]
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rdi + 0x150]
jmp 0x1400335ba
lea r8, [rsp + 0x180]
lea rdx, str._s_s
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
lea rdx, [rsp + 0x180]
call fcn.1400311b0
mov eax, dword [rsp + 0x158]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x290]
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 0x14003360b
mov eax, 0x200
jmp 0x140033791
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140032d90
cmp qword [rdi + 0x148], rbp
jne 0x140033640
mov ecx, 0x4000
call fcn.140033f88
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.140032fc0
mov ebx, eax
cmp eax, 0xffffff96
je 0x1400336c4
test eax, eax
js 0x140033693
jle 0x140033688
mov rdx, qword [rdi + 0x148]
lea r9, [rsp + 0x44]
mov r8d, eax
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14003369a
cmp byte [rsp + 0x40], bpl
jne 0x1400336a1
test ebx, ebx
jne 0x140033640
mov ebp, 0x5000000
jmp 0x1400336c9
mov ebp, 0x400
jmp 0x1400336c9
lea r9, [rsp + 0x16c]
lea r8, [rsp + 0x15c]
lea rdx, [rsp + 0x164]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x1400336c9
mov ebp, 0x1000
cmp r12d, 1
je 0x1400336d8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.140030830
mov eax, ebp
jmp 0x140033791
mov eax, dword [rcx + 8]
cmp edx, eax
je 0x140033743
cmp eax, 0xffffffff
je 0x1400336fb
mov rcx, qword [rcx]
call fcn.140030830
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x140033430
cmp ebx, dword [rcx + 0x14]
jge 0x140033718
call fcn.140030170
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x140033731
mov rcx, qword [rdi]
call fcn.1400301e0
mov r11, qword [rdi]
cmp dword [r11 + 0x14], ebx
jl 0x140033720
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.140032d90
mov dword [rdi + 8], ebx
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rsi
call fcn.140032fc0
mov ebx, eax
test eax, eax
jg 0x14003376b
mov rcx, qword [rdi]
call fcn.140030830
mov dword [rdi + 8], 0xffffffff
cmp byte [rsp + 0x40], 0
jne 0x1400334d5
test ebx, ebx
jle 0x140033781
mov eax, 0x600
jmp 0x140033791
mov eax, 0x5000000
mov edx, 0x1000
cmp ebx, 0xffffff96
cmove eax, edx
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.14019c800
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret