Function at 0x18003ebf9
Capabilities:
Write file on windows

Disassembly:
test rdx, rdx
je 0x18003ee8b
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rdx
mov rbx, rcx
xor r15d, r15d
xor r14b, r14b
lea rcx, [rbp - 9]
call fcn.18001cb20
lea rdx, [rbx + 0x18]
lea rcx, [rbp - 9]
call fcn.1800038d0
nop
mov rax, qword [rbx]
mov qword [rbp - 0x11], rax
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.180003810
mov rax, qword [rbx + 8]
mov qword [rbp - 0x19], rax
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.180003810
mov rax, qword [rbp - 0x11]
cmp rax, qword [rbp - 0x19]
je 0x18003ecc0
nop
cmp rsi, qword [rax]
je 0x18003ecad
add rax, 0x18
mov qword [rbp - 0x11], rax
mov rax, qword [rbx + 8]
mov qword [rbp - 0x19], rax
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.180003810
mov rax, qword [rbp - 0x11]
cmp rax, qword [rbp - 0x19]
jne 0x18003ec80
jmp 0x18003ecc0
lea r8, [rbp - 9]
mov rdx, rsi
mov rcx, rbx
call fcn.18003ee90
movzx r14d, al
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18003ecdb
mov rcx, qword [rcx]
test rcx, rcx
je 0x18003ecd7
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 9], r15
lea rcx, [rbp - 1]
call fcn.18001cb20
lea rdx, [rbx + 0x18]
lea rcx, [rbp - 1]
call fcn.1800038d0
nop
mov rax, qword [rbx]
mov qword [rbp - 0x19], rax
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.180003810
mov rax, qword [rbp - 0x19]
mov qword [rbp - 0x11], rax
mov rax, qword [rbx + 8]
mov qword [rbp - 0x19], rax
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.180003810
mov rdi, qword [rbp - 0x11]
cmp rdi, qword [rbp - 0x19]
je 0x18003ee56
nop
cmp rsi, qword [rdi]
je 0x18003ed60
lea rax, [rdi + 0x18]
mov qword [rbp - 0x11], rax
mov rax, qword [rbx + 8]
mov qword [rbp - 0x19], rax
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.180003810
mov rdi, qword [rbp - 0x11]
cmp rdi, qword [rbp - 0x19]
jne 0x18003ed30
jmp 0x18003ee56
test r14b, r14b
je 0x18003ee27
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rdi + 0x10], eax
xor ecx, ecx
call fcn.180100940
mov qword [rdi + 8], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x18003ee27
mov qword [rbp + 7], rax
lea rdx, [rbp + 0xf]
call fcn.18003aee0
nop
lea rcx, [rbp + 0xf]
call fcn.180005c00
test al, al
jne 0x18003ee1e
lea rcx, [rbp + 0xf]
call fcn.180003a80
mov rcx, rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18003ee1e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x19], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x19]
mov r8d, 8
lea rdx, [rbp + 7]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0xf]
call fcn.180003b80
mov rax, qword [rbp - 1]
test rax, rax
je 0x18003ee42
mov rcx, qword [rax]
test rcx, rcx
je 0x18003ee3e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 1], r15
mov rcx, rsi
test r14b, r14b
je 0x18003ee4e
mov dl, 1
jmp 0x18003ee50
xor edx, edx
call fcn.18003aa70
nop
lea rcx, [rbp - 1]
call fcn.180003920
nop
lea rcx, [rbp - 9]
call fcn.180003920
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1800d8050
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret