Function at 0x1801b37e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x43b0
call fcn.18029a6b0
sub rsp, rax
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rsp + 0x43a0], rax
mov r15d, dword [rsp + 0x4400]
mov r12d, r9d
mov r14, r8
mov esi, edx
mov rdi, rcx
lea eax, [r15 - 1]
cmp eax, 2
ja 0x1801b3c12
mov eax, dword [rcx + 8]
cmp r15d, 3
jne 0x1801b3925
cmp edx, eax
je 0x1801b38e6
cmp eax, 0xffffffff
je 0x1801b3853
mov rcx, qword [rcx]
call fcn.1801b2da0
mov rcx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp esi, dword [rcx + 8]
jge 0x1801b3c12
cmp esi, dword [rcx + 0x14]
jge 0x1801b3873
call fcn.1801b25b0
mov rcx, qword [rdi]
cmp dword [rcx + 0x1c], 0
je 0x1801b395b
cmp dword [rcx + 0x14], esi
jge 0x1801b38de
mov rbx, rcx
xor ebp, ebp
mov rcx, rbx
test rbx, rbx
je 0x1801b38d6
cmp dword [rbx + 0x1c], ebp
je 0x1801b38d6
mov edx, dword [rbx + 0x14]
inc edx
cmp edx, dword [rbx + 8]
je 0x1801b38d6
mov ecx, dword [rbx + 0x54]
lea r8, [rbx + 0x7c]
add ecx, dword [rbx + 0x50]
xor r9d, r9d
mov eax, dword [rbx + 0x4c]
add eax, 0x2e
mov dword [rbx + 0x14], edx
add ecx, eax
mov dword [rsp + 0x20], ebp
add dword [rbx + 0x18], ecx
lea rdx, [rbx + 0x2c]
mov rcx, rbx
call fcn.1801b2240
mov ecx, ebp
test eax, eax
sete cl
mov dword [rbx + 0x1c], ecx
mov rcx, qword [rdi]
mov rbx, rcx
cmp dword [rcx + 0x14], esi
jl 0x1801b3887
call fcn.1801b2a20
mov dword [rdi + 8], esi
mov rcx, qword [rdi]
mov r8d, r12d
mov rdx, r14
call fcn.1801b2b80
mov ebx, eax
test eax, eax
jle 0x1801b3904
mov eax, 0x600
jmp 0x1801b3c17
mov rcx, qword [rdi]
call fcn.1801b2da0
mov dword [rdi + 8], 0xffffffff
test ebx, ebx
je 0x1801b3c0e
mov eax, 0x5000000
jmp 0x1801b3c17
cmp eax, 0xffffffff
je 0x1801b3932
mov rcx, qword [rcx]
call fcn.1801b2da0
mov rbx, qword [rdi]
mov dword [rdi + 8], 0xffffffff
cmp esi, dword [rbx + 8]
jge 0x1801b3c12
cmp esi, dword [rbx + 0x14]
jge 0x1801b3955
mov rcx, rbx
call fcn.1801b25b0
mov rbx, qword [rdi]
cmp dword [rbx + 0x1c], 0
jne 0x1801b3965
mov eax, 0x700
jmp 0x1801b3c17
xor ebp, ebp
cmp dword [rbx + 0x14], esi
jge 0x1801b39c7
nop dword [rax]
mov rax, rbx
test rbx, rbx
je 0x1801b39bf
cmp dword [rbx + 0x1c], ebp
je 0x1801b39bf
mov edx, dword [rbx + 0x14]
inc edx
cmp edx, dword [rbx + 8]
je 0x1801b39bf
mov ecx, dword [rbx + 0x54]
lea r8, [rbx + 0x7c]
add ecx, dword [rbx + 0x50]
xor r9d, r9d
mov eax, dword [rbx + 0x4c]
add eax, 0x2e
mov dword [rbx + 0x14], edx
add ecx, eax
mov dword [rsp + 0x20], ebp
add dword [rbx + 0x18], ecx
lea rdx, [rbx + 0x2c]
mov rcx, rbx
call fcn.1801b2240
test eax, eax
mov ecx, ebp
sete cl
mov dword [rbx + 0x1c], ecx
mov rax, qword [rdi]
mov rbx, rax
cmp dword [rax + 0x14], esi
jl 0x1801b3970
lea r8, [rsp + 0x60]
mov edx, esi
mov rcx, rdi
call fcn.1801b3140
test byte [rsp + 0x168], 0x10
jne 0x1801b3c0e
cmp r15d, 1
je 0x1801b3b45
movzx eax, word [r14]
mov r8, r14
mov rcx, r14
test ax, ax
je 0x1801b3b16
cmp ax, 0x2f
je 0x1801b3a0d
cmp ax, 0x5c
jne 0x1801b3a11
lea r8, [rcx + 2]
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1801b3a01
cmp r8, r14
je 0x1801b3b16
lea rax, [rsp + 0x190]
mov r9, r14
sub r9, rax
lea rcx, [rsp + 0x190]
mov edx, 0x104
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1801b3a65
movzx eax, word [rcx + r9]
test ax, ax
je 0x1801b3a65
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1801b3a42
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
sub r8, r14
sar r8, 1
mov word [rax], bp
lea r8, [r8*2 - 2]
cmp r8, 0x208
jae 0x1801b3c43
mov word [rsp + r8 + 0x190], bp
movzx eax, word [rsp + 0x190]
cmp ax, 0x2f
je 0x1801b3abb
cmp ax, 0x5c
je 0x1801b3abb
cmp word [rsp + 0x192], 0x3a
je 0x1801b3abb
xor sil, sil
jmp 0x1801b3abe
mov sil, 1
lea rdx, [0x18038aed8]
lea rcx, [rsp + 0x190]
call fcn.18029bfb4
lea rdx, [0x18038aed0]
mov rbx, rax
lea rcx, [rsp + 0x190]
call fcn.18029bfb4
test rax, rax
movzx ecx, sil
mov eax, 1
setne dl
test rbx, rbx
cmovne ecx, eax
or dl, cl
jne 0x1801b3b16
lea rcx, [rdi + 0x140]
lea rdx, [rsp + 0x190]
call fcn.1801b3680
mov eax, dword [rsp + 0x168]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov rcx, r14
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp r14, 0xffffffffffffffff
jne 0x1801b3b55
mov eax, 0x200
jmp 0x1801b3c17
mov rcx, qword [rdi]
call fcn.1801b2a20
mov rcx, qword [rdi]
lea rdx, [rsp + 0x3a0]
mov r8d, 0x4000
xor bl, bl
call fcn.1801b2b80
test eax, eax
js 0x1801b3bb7
je 0x1801b3bb9
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbp
mov r8d, eax
lea rdx, [rsp + 0x3a0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1801b3bb7
mov rcx, qword [rdi]
lea rdx, [rsp + 0x3a0]
mov r8d, 0x4000
call fcn.1801b2b80
test eax, eax
jns 0x1801b3b79
mov bl, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1801b3bec
test bl, bl
jne 0x1801b3bec
lea r9, [rsp + 0x17c]
mov rcx, r14
lea r8, [rsp + 0x16c]
lea rdx, [rsp + 0x174]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp r15d, 1
je 0x1801b3bfb
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.1801b2da0
test bl, bl
je 0x1801b3c0e
mov eax, 0x400
jmp 0x1801b3c17
xor eax, eax
jmp 0x1801b3c17
mov eax, 0x10000
mov rcx, qword [rsp + 0x43a0]
xor rcx, rsp
call fcn.1802994c0
lea r11, [rsp + 0x43b0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.180299a68
int3