Function at 0x1400b7ec0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push r12
push r15
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov word [r8], cx
mov rcx, rdx
mov qword [rsp + 0x30], r8
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r15, rax
test rax, rax
je 0x1400b7fe0
mov ecx, dword [rax]
mov edx, dword [rax + 0x20]
mov qword [rsp + 0x1b8], rbx
add rcx, rax
mov qword [rsp + 0x170], rsi
movzx esi, word [r15 + 0xe]
mov qword [rsp + 0x168], r13
movsxd r13, dword [rax + 4]
mov eax, dword [rax + 8]
mov dword [rsp + 0x24], eax
lea rbx, [rcx + rdx*4]
mov eax, esi
mov qword [rsp + 0x160], r14
imul eax, r13d
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
movsxd r14, eax
lea eax, [rsi - 8]
test eax, 0xffffffef
jne 0x1400b7fb5
test r14d, r14d
jle 0x1400b7fb5
lea rdx, [0x140183390]
mov rcx, rdi
call fcn.1400fafe4
mov rdi, rax
test rax, rax
jne 0x1400b7ffa
mov rcx, qword [0x1401fbba0]
lea r9d, [rax + 0x40]
lea r8, [rsp + 0x50]
mov edx, 0x4e71
call qword [sym.imp.USER32.dll_LoadStringW]
mov r8, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
call fcn.1400f98c8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
mov r13, qword [rsp + 0x168]
mov rsi, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x1b8]
mov r14, qword [rsp + 0x160]
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0x178
pop r15
pop r12
pop rdi
pop rbp
ret
cmp esi, 8
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
setne al
mov word [rsp + 0x3b], 0
inc al
mov byte [rsp + 0x3a], al
cmp esi, 8
jne 0x1400b8032
mov byte [rsp + 0x39], 1
mov word [rsp + 0x3d], 0x100
mov byte [rsp + 0x3f], 0x18
jmp 0x1400b8043
mov byte [rsp + 0x39], 0
mov word [rsp + 0x3d], 0
mov byte [rsp + 0x3f], 0
mov eax, r13d
mov edx, 0x12
lea rcx, [rsp + 0x38]
sar eax, 8
lea r8d, [rdx - 0x11]
mov r9, rdi
mov byte [rsp + 0x45], al
mov eax, dword [rsp + 0x24]
mov byte [rsp + 0x44], r13b
mov byte [rsp + 0x46], al
sar eax, 8
mov byte [rsp + 0x48], sil
mov byte [rsp + 0x47], al
mov byte [rsp + 0x49], 0
call fcn.1400faf54
cmp esi, 8
je 0x1400b80de
cmp esi, 0x18
je 0x1400b8098
mov rcx, rdi
call fcn.1400fa904
jmp 0x1400b7fb5
movsxd rax, dword [rsp + 0x24]
mov rsi, rax
test eax, eax
je 0x1400b815c
lea eax, [r13*2]
add eax, r13d
movsxd r15, eax
nop word [rax + rax]
mov r9, rdi
mov r8d, 1
mov rdx, r15
mov rcx, rbx
call fcn.1400faf54
add rbx, r14
dec rsi
jne 0x1400b80c0
jmp 0x1400b815c
lea rsi, [r15 + 0x29]
mov r15d, 0x100
nop dword [rax + rax]
movzx eax, byte [rsi - 1]
mov edx, 3
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x20], al
movzx eax, byte [rsi]
lea r8d, [rdx - 2]
mov byte [rsp + 0x21], al
movzx eax, byte [rsi + 1]
mov r9, rdi
mov byte [rsp + 0x22], al
call fcn.1400faf54
lea rsi, [rsi + 4]
dec r15
jne 0x1400b80f0
movsxd rax, dword [rsp + 0x24]
mov rsi, rax
test eax, eax
je 0x1400b815c
nop dword [rax]
nop word [rax + rax]
mov r9, rdi
mov r8d, 1
mov rdx, r13
mov rcx, rbx
call fcn.1400faf54
add rbx, r14
dec rsi
jne 0x1400b8140
mov rcx, rdi
call fcn.1400fa904
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, 1
jmp 0x1400b7fc0