Function at 0x1800bbc00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x3a0], rbx
mov rax, qword [0x1801c1080]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov r13, r8
mov rbx, rcx
xor edi, edi
mov eax, edi
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x40], eax
test rcx, rcx
jne 0x1800bbc5d
mov eax, 0x80004005
jmp 0x1800bc224
lea rcx, [rbp - 0x20]
call fcn.1800520d0
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov ecx, 0x10
call fcn.18010280c
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
mov qword [rax], rcx
lea rcx, [rbp - 0x20]
mov r14, qword [rbp - 0x20]
mov r15, qword [rbp - 8]
cmp r15, 8
cmovae rcx, r14
mov qword [rsp + 0x20], 1
lea r9, [0x180179e58]
xor r8d, r8d
mov rsi, qword [rbp - 0x10]
mov rdx, rsi
call fcn.180080220
test rax, rax
je 0x1800bbd77
movdqa xmm0, xmmword [0x1801833f0]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], di
mov dword [rsp + 0x40], 1
lea rdx, [rsi + 1]
lea rcx, [rbp]
call fcn.1800531d0
mov r8d, 1
lea rdx, [0x180179e58]
lea rcx, [rbp]
call fcn.180053290
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
lea rcx, [rbp]
call fcn.180053290
lea rcx, [rbp - 0x20]
call fcn.18004f5d0
movups xmm0, xmmword [rbp]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rbp + 0x10]
movups xmmword [rbp - 0x10], xmm1
movdqa xmm0, xmmword [0x1801833f0]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], di
lea rcx, [rbp]
call fcn.18004f5d0
mov dword [rsp + 0x70], edi
mov r15, qword [rbp - 8]
mov rsi, qword [rbp - 0x10]
mov r14, qword [rbp - 0x20]
lea rcx, [rbp - 0x20]
cmp r15, 8
cmovae rcx, r14
mov qword [rsp + 0x20], 1
lea r9, [0x180179e58]
xor r8d, r8d
mov rdx, rsi
call fcn.18005a0b0
mov r14, rax
mov qword [rbp - 0x80], rbx
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 8]
nop
mov r15, qword [rbp - 8]
mov rsi, qword [rbp - 0x10]
mov r12, qword [rbp - 0x20]
test r14d, r14d
js 0x1800bbf83
cmp edi, r14d
jge 0x1800bbf4c
movsxd rcx, edi
xor eax, eax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 7
mov word [rbp], ax
cmp rsi, rcx
jb 0x1800bc254
mov eax, r14d
sub eax, edi
movsxd r8, eax
sub rsi, rcx
cmp rsi, r8
cmovb r8, rsi
lea rax, [rbp - 0x20]
cmp r15, 8
cmovae rax, r12
lea rdx, [rax + rcx*2]
lea rcx, [rbp]
call fcn.18004f440
or dword [rsp + 0x70], 2
xor r8d, r8d
mov qword [rsp + 0x40], r8
lea rdx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rdx, qword [rbp]
mov rax, qword [rbx]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r8
lea r9d, [r8 + 0x10]
mov rcx, rbx
call qword [rax + 0x30]
mov r15, qword [rsp + 0x40]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea eax, [rdx + r8]
mov rcx, qword [rsp + 0x58]
test al, 1
jne 0x1800bbe93
lea rax, [r8 + 2]
shr rax, 1
cmp rcx, rax
ja 0x1800bbe93
lea rcx, [rsp + 0x48]
call fcn.180099260
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx*2 - 1]
and rdx, rax
mov qword [rsp + 0x60], rdx
lea rdi, [r8 + rdx]
dec rcx
mov rax, rdi
shr rax, 1
and rcx, rax
lea rsi, [rcx*8]
mov rax, qword [rsp + 0x50]
cmp qword [rsi + rax], 0
jne 0x1800bbedf
mov ecx, 0x10
call fcn.18010280c
mov rcx, qword [rsp + 0x50]
mov qword [rsi + rcx], rax
mov rax, qword [rsp + 0x50]
and edi, 1
mov rax, qword [rsi + rax]
mov qword [rax + rdi*8], r15
inc qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
cmp rbx, rcx
je 0x1800bbf29
mov rdi, rcx
test rcx, rcx
je 0x1800bbf0c
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov rax, rbx
mov rbx, rdi
mov qword [rbp - 0x80], rbx
test rax, rax
je 0x1800bbf29
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800bbf35
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rbp]
call fcn.18004f5d0
mov r15, qword [rbp - 8]
mov rsi, qword [rbp - 0x10]
mov r12, qword [rbp - 0x20]
jmp 0x1800bbf4e
jg 0x1800bbf83
lea edi, [r14 + 1]
lea rcx, [rbp - 0x20]
cmp r15, 8
cmovae rcx, r12
movsxd r8, edi
mov qword [rsp + 0x20], 1
lea r9, [0x180179e58]
mov rdx, rsi
call fcn.18005a0b0
mov r14d, eax
test eax, eax
jmp 0x1800bbdbe
movsxd rcx, edi
xor r14d, r14d
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r14w
cmp rsi, rcx
jb 0x1800bc25a
sub rsi, rcx
lea rax, [rbp - 0x20]
cmp r15, 8
cmovae rax, r12
lea rdx, [rax + rcx*2]
mov r8, rsi
lea rcx, [rbp + 0x20]
call fcn.18004f440
nop
cmp qword [rbp + 0x30], r14
je 0x1800bc134
mov qword [rsp + 0x78], r14
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
mov rax, qword [rbx]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
lea r9d, [r14 + 0x10]
xor r8d, r8d
mov rcx, rbx
call qword [rax + 0x20]
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x1800bc124
xor edx, edx
lea r8d, [r14 + 0x50]
lea rcx, [rbp - 0x70]
call fcn.1801099b0
mov rax, qword [rdi]
lea r8d, [r14 + 1]
lea rdx, [rbp - 0x70]
mov rcx, rdi
call qword [rax + 0x60]
mov edi, dword [rbp - 0x60]
mov ecx, edi
call fcn.180116654
mov rsi, rax
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x78]
mov r10, qword [rcx]
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rax
call qword [r10 + 0x18]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x40]
call fcn.1801099b0
cmp qword [r13 + 0x18], 8
jb 0x1800bc072
mov r13, qword [r13]
mov edx, 0x104
lea rcx, [rbp + 0x40]
lea rax, [rbp + 0x40]
sub r13, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1800bc0a5
movzx eax, word [rcx + r13]
test ax, ax
je 0x1800bc0a5
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1800bc082
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r14w
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800bc117
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x40]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rsi
call fcn.1801164d4
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x1800bc140
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
jmp 0x1800bc140
mov rdx, r13
mov rcx, rbx
call fcn.1800bb7f0
nop
lea rcx, [rbp + 0x20]
call fcn.18004f5d0
nop
test rbx, rbx
je 0x1800bc159
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1800bc18b
mov rcx, qword [rsp + 0x60]
nop dword [rax + rax]
lea rax, [rdx - 1]
mov qword [rsp + 0x68], rax
test rax, rax
cmove rcx, r14
sub rdx, 1
jne 0x1800bc170
mov qword [rsp + 0x60], rcx
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
test rbx, rbx
je 0x1800bc1c8
nop word [rax + rax]
dec rbx
mov rax, qword [rcx + rbx*8]
test rax, rax
je 0x1800bc1be
mov edx, 0x10
mov rcx, rax
call fcn.180102804
mov rcx, qword [rsp + 0x50]
test rbx, rbx
jne 0x1800bc1a0
mov rbx, qword [rsp + 0x58]
test rcx, rcx
je 0x1800bc1fb
lea rdx, [rbx*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800bc1f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800bc24e
call fcn.180102804
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180102804
mov qword [rsp + 0x48], r14
lea rcx, [rbp - 0x20]
call fcn.18004f5d0
xor eax, eax
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1801027e0
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x360
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180112674
nop
call fcn.18004e830
int3
call fcn.18004e830
int3