Function at 0x14003b550
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x3b0
mov rax, qword [0x140158280]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov r15d, dword [rsp + 0x400]
mov ebp, r9d
mov rsi, r8
mov ebx, edx
mov rdi, rcx
cmp r15d, 3
je 0x14003b87b
lea eax, [r15 - 1]
cmp eax, 1
jbe 0x14003b5a0
mov eax, 0x10000
jmp 0x14003b77f
cmp dword [rcx + 8], 0xffffffff
je 0x14003b5ae
mov rcx, qword [rcx]
call fcn.14003e7e0
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x14003b596
cmp ebx, dword [rcx + 0x14]
jge 0x14003b5c7
call fcn.14003eaa0
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x14003b5e0
nop
mov rcx, qword [rdi]
call fcn.14003eb00
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jl 0x14003b5d0
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, rdi
call fcn.14003ab20
test byte [rsp + 0x158], 0x10
je 0x14003b63b
cmp r15d, 1
je 0x14003b634
movzx eax, byte [rsi]
cmp al, 0x2f
je 0x14003b62a
cmp al, 0x5c
je 0x14003b62a
test al, al
je 0x14003b614
cmp byte [rsi + 1], 0x3a
je 0x14003b62a
lea rcx, [rdi + 0x150]
mov rdx, rsi
call fcn.14003a660
xor eax, eax
jmp 0x14003b77f
xor ecx, ecx
mov rdx, rsi
call fcn.14003a660
xor eax, eax
jmp 0x14003b77f
mov qword [rsp + 0x3e8], r14
xor r14d, r14d
cmp r15d, 1
je 0x14003b76c
movzx eax, byte [rsi]
mov rbp, rsi
mov rcx, rsi
test al, al
je 0x14003b677
nop dword [rax]
cmp al, 0x2f
je 0x14003b668
cmp al, 0x5c
jne 0x14003b66c
lea rbp, [rcx + 1]
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x14003b660
lea rcx, [rsp + 0x180]
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
call fcn.140075a6c
cmp rbp, rsi
jne 0x14003b69f
mov byte [rsp + 0x180], r14b
jmp 0x14003b6d7
mov rax, rbp
sub rax, rsi
cmp rax, 0x104
jae 0x14003b92c
mov byte [rsp + rax + 0x180], r14b
movzx eax, byte [rsp + 0x180]
cmp al, 0x2f
je 0x14003b709
cmp al, 0x5c
je 0x14003b709
test al, al
je 0x14003b6d7
cmp byte [rsp + 0x181], 0x3a
je 0x14003b709
lea r9, [rsp + 0x180]
lea r8, [rdi + 0x150]
lea rdx, [0x14012aca4]
lea rcx, [rsp + 0x290]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rdi + 0x150]
jmp 0x14003b72b
lea r8, [rsp + 0x180]
lea rdx, [0x140124e38]
lea rcx, [rsp + 0x290]
mov r9, rbp
call qword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
lea rdx, [rsp + 0x180]
call fcn.14003a660
mov eax, dword [rsp + 0x158]
mov qword [rsp + 0x30], r14
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 0x14003b79d
mov eax, 0x200
mov r14, qword [rsp + 0x3e8]
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.14006ed70
add rsp, 0x3b0
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.14003ed30
cmp qword [rdi + 0x148], r14
jne 0x14003b7d0
mov ecx, 0x4000
call fcn.140044634
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.14003f260
mov ebx, eax
cmp eax, 0xffffff96
je 0x14003b856
test eax, eax
js 0x14003b823
jle 0x14003b818
mov rdx, qword [rdi + 0x148]
lea r9, [rsp + 0x44]
mov r8d, eax
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14003b82b
cmp byte [rsp + 0x40], r14b
jne 0x14003b833
test ebx, ebx
jne 0x14003b7d0
mov r14d, 0x5000000
jmp 0x14003b85c
mov r14d, 0x400
jmp 0x14003b85c
lea r9, [rsp + 0x16c]
lea r8, [rsp + 0x15c]
lea rdx, [rsp + 0x164]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x14003b85c
mov r14d, 0x1000
cmp r15d, 1
je 0x14003b86b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.14003e7e0
mov eax, r14d
jmp 0x14003b777
mov eax, dword [rcx + 8]
cmp edx, eax
je 0x14003b8d6
cmp eax, 0xffffffff
je 0x14003b88f
mov rcx, qword [rcx]
call fcn.14003e7e0
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x14003b596
cmp ebx, dword [rcx + 0x14]
jge 0x14003b8ac
call fcn.14003eaa0
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jge 0x14003b8c4
mov rcx, qword [rdi]
call fcn.14003eb00
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jl 0x14003b8b4
mov rdx, qword [rdi + 0x140]
mov rcx, qword [rdi]
call fcn.14003ed30
mov dword [rdi + 8], ebx
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rsi
call fcn.14003f260
mov ebx, eax
test eax, eax
jg 0x14003b8fe
mov rcx, qword [rdi]
call fcn.14003e7e0
mov dword [rdi + 8], 0xffffffff
cmp byte [rsp + 0x40], 0
jne 0x14003b634
test ebx, ebx
jle 0x14003b917
mov eax, 0x600
jmp 0x14003b77f
mov eax, 0x5000000
mov edx, 0x1000
cmp ebx, 0xffffff96
cmove eax, edx
jmp 0x14003b77f
call fcn.14006eb1c
int3