Function at 0x1400b31a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rbx, rcx
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 0x10], rax
mov edi, 2
lea rcx, [rbx + 0x20]
call fcn.140041a70
mov rax, qword [rbx + 0x10]
cmp dword [rax + 4], 0
jne 0x1400b3236
movzx eax, byte [rbx + 0x30]
test al, al
jne 0x1400b3231
lea rcx, [rbx + 0x18]
call fcn.1400ab370
or r8d, 0xffffffff
lea rdx, [rbx + 0x20]
lea rcx, [rbx + 0x18]
call fcn.1400ab1b0
mov rax, qword [rbx + 0x10]
cmp dword [rax + 4], 0
je 0x1400b3205
mov edi, 2
movzx eax, byte [rbx + 0x30]
test al, al
jne 0x1400b33f6
mov rax, qword [rbx + 0x10]
mov qword [rbp + 0x48], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x1400b3256
lock inc dword [rax]
lea rcx, [rbx + 0x20]
call fcn.140041f80
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax]
cmp ecx, 1
ja 0x1400b3271
cmp qword [rax + 0x10], 0x18
je 0x1400b3299
xor r8d, r8d
test ecx, ecx
cmove r8d, edi
test dword [rax + 8], 0x80000000
je 0x1400b3287
or r8d, 1
mov edx, dword [rax + 4]
inc edx
lea rcx, [rbp + 0x48]
call fcn.14002abe0
mov rax, qword [rbp + 0x48]
mov r12, qword [rax + 0x10]
add r12, rax
movsxd r14, dword [rax + 4]
xor ecx, ecx
mov edi, ecx
mov qword [rbp - 0x18], rcx
movzx eax, byte [rbx + 0x30]
test al, al
jne 0x1400b3377
nop dword [rax + rax]
cmp rdi, r14
jge 0x1400b3377
mov dword [rbp + 0x40], ecx
mov r8d, r14d
sub r8d, edi
lea rdx, [rdi + r12]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x40]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400b333b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x1400b330a
mov ecx, WSAAsyncSelect
call sub.KERNEL32.dll_Sleep
jmp 0x1400b3366
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400b33c3
mov r9d, 1
lea r8, [rbp + 0x40]
lea rdx, [rbp - 0x28]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1400b33c3
mov eax, dword [rbp + 0x40]
add rdi, rax
lea rcx, [rbx + 0x20]
call fcn.140041a70
mov r8d, dword [rbp + 0x40]
xor edx, edx
lea rcx, [rbx + 0x10]
call fcn.14002ad20
mov byte [rbx + 0x31], 1
lea rcx, [rbx + 0x20]
call fcn.140041f80
movzx eax, byte [rbx + 0x30]
test al, al
mov ecx, 0
je 0x1400b32c0
mov rdx, rdi
mov rcx, rbx
call fcn.1400c77a0
mov rcx, rbx
call fcn.1400c77e0
nop
mov rcx, qword [rbp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x1400b33b0
cmp eax, 0xffffffff
mov edi, 2
je 0x1400b31f2
lock dec dword [rcx]
jne 0x1400b31f2
mov rcx, qword [rbp + 0x48]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140011b40
jmp 0x1400b31ed
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x1400b33e6
cmp eax, 0xffffffff
je 0x1400b340d
lock dec dword [rcx]
jne 0x1400b340d
mov rcx, qword [rbp + 0x48]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140011b40
jmp 0x1400b340d
lea rcx, [rbx + 0x20]
call fcn.140041f80
mov byte [rbx + 0x30], 0
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret