Function at 0x1800f81d4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov r15d, dword [rbp + 0x600]
mov r14d, r9d
mov rsi, r8
mov ebx, edx
mov rdi, rcx
lea eax, [r15 - 1]
cmp eax, 2
ja 0x1800f8552
cmp r15d, 3
jne 0x1800f82c7
cmp edx, dword [rcx + 8]
je 0x1800f8277
cmp dword [rcx + 8], 0xffffffff
je 0x1800f823c
mov rcx, qword [rcx]
call fcn.1800facf4
mov rcx, qword [rdi]
or dword [rdi + 8], 0xffffffff
cmp ebx, dword [rcx + 8]
jge 0x1800f8552
cmp dword [rcx + 0x14], ebx
jle 0x1800f8266
call fcn.1800fadc8
jmp 0x1800f8260
mov rcx, qword [rdi]
call fcn.1800fae24
mov rcx, qword [rdi]
cmp dword [rcx + 0x14], ebx
jl 0x1800f8258
mov rdx, qword [rdi + 0x240]
call fcn.1800faf90
mov dword [rdi + 8], ebx
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rsi
call fcn.1800fb2f4
xor ebx, ebx
mov esi, eax
test eax, eax
jg 0x1800f829e
mov rcx, qword [rdi]
call fcn.1800facf4
or dword [rdi + 8], 0xffffffff
cmp byte [rsp + 0x40], bl
jne 0x1800f8322
test esi, esi
jle 0x1800f82b2
mov eax, 0x600
jmp 0x1800f8557
cmp esi, 0xffffff96
mov eax, 0x5000000
mov ecx, 0x1000
cmove eax, ecx
jmp 0x1800f8557
cmp dword [rcx + 8], 0xffffffff
je 0x1800f82d5
mov rcx, qword [rcx]
call fcn.1800facf4
mov rax, qword [rdi]
or dword [rdi + 8], 0xffffffff
cmp ebx, dword [rax + 8]
jge 0x1800f8552
cmp dword [rax + 0x14], ebx
jle 0x1800f8302
mov rcx, rax
call fcn.1800fadc8
jmp 0x1800f82fc
mov rcx, qword [rdi]
call fcn.1800fae24
mov rax, qword [rdi]
cmp dword [rax + 0x14], ebx
jl 0x1800f82f4
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, rdi
call fcn.1800f7ac8
test byte [rbp + 0x15c], 0x10
je 0x1800f8357
cmp r15d, 1
jne 0x1800f8329
xor eax, eax
jmp 0x1800f8557
xor ebx, ebx
cmp word [rsi], 0x2f
je 0x1800f834a
cmp word [rsi], 0x5c
je 0x1800f834a
cmp word [rsi], bx
je 0x1800f8343
cmp word [rsi + 2], 0x3a
je 0x1800f834a
lea rbx, [rdi + 0x250]
mov rdx, rsi
mov rcx, rbx
call fcn.1800f786c
jmp 0x1800f8322
xor ebx, ebx
cmp r15d, 1
je 0x1800f8477
movzx eax, word [rsi]
mov r14, rsi
mov rcx, rsi
jmp 0x1800f8385
cmp ax, 0x2f
je 0x1800f837a
cmp ax, 0x5c
jne 0x1800f837e
lea r14, [rcx + 2]
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x1800f836e
mov rdx, rsi
lea rcx, [rbp + 0x180]
call fcn.18015ca3c
cmp r14, rsi
jne 0x1800f83a7
mov word [rbp + 0x180], bx
jmp 0x1800f83e9
mov rax, r14
sub rax, rsi
sar rax, 1
add rax, rax
cmp rax, 0x208
jae 0x1800f857d
mov word [rbp + rax + 0x180], bx
movzx eax, word [rbp + 0x180]
cmp ax, 0x2f
je 0x1800f8415
cmp ax, 0x5c
je 0x1800f8415
test ax, ax
je 0x1800f83e9
cmp word [rbp + 0x182], 0x3a
je 0x1800f8415
lea rsi, [rdi + 0x250]
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rbp + 0x180]
lea rdx, str._s_s_s
lea rcx, [rbp + 0x390]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x1800f8436
mov r9, r14
lea r8, [rbp + 0x180]
lea rdx, str._s_s
lea rcx, [rbp + 0x390]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rsi, rbx
lea rdx, [rbp + 0x180]
mov rcx, rsi
call fcn.1800f786c
mov eax, dword [rbp + 0x15c]
lea rcx, [rbp + 0x390]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rsi, 0xffffffffffffffff
jne 0x1800f8487
mov eax, 0x200
jmp 0x1800f8557
mov rdx, qword [rdi + 0x240]
mov rcx, qword [rdi]
call fcn.1800faf90
cmp qword [rdi + 0x248], rbx
jne 0x1800f84b0
mov ecx, 0x4000
call fcn.18014874c
mov qword [rdi + 0x248], rax
mov rdx, qword [rdi + 0x248]
lea r9, [rsp + 0x40]
mov rcx, qword [rdi]
mov r8d, 0x4000
call fcn.1800fb2f4
mov r14d, eax
cmp eax, 0xffffff96
je 0x1800f8532
test eax, eax
js 0x1800f8504
jle 0x1800f84f9
mov rdx, qword [rdi + 0x248]
lea r9, [rsp + 0x44]
mov r8d, eax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800f850b
cmp byte [rsp + 0x40], bl
jne 0x1800f8512
test r14d, r14d
jne 0x1800f84b0
mov ebx, 0x5000000
jmp 0x1800f8537
mov ebx, 0x400
jmp 0x1800f8537
lea r9, [rbp + 0x170]
mov rcx, rsi
lea r8, [rbp + 0x160]
lea rdx, [rbp + 0x168]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x1800f8537
mov ebx, 0x1000
cmp r15d, 1
je 0x1800f8546
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call fcn.1800facf4
mov eax, ebx
jmp 0x1800f8557
mov eax, 0x10000
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.180147bf0
mov rbx, qword [rsp + 0x6e8]
add rsp, 0x6b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1801485b8
int3