Function at 0x180153f20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x88
mov rax, qword [0x1801eab50]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx edi, byte [rcx + 0x41]
xor esi, esi
inc edi
mov dword [rsp + 0x34], esi
mov r14d, 8
mov dword [rsp + 0x38], esi
sub r14d, edi
mov dword [rsp + 0x3c], edi
mov rbx, rcx
mov dword [rsp + 0x40], r14d
cmp byte [rcx + 0x3f], sil
jne 0x180153f82
mov rcx, qword [rcx + 8]
lea r9d, [rsi + 0xa]
mov r8d, r14d
mov edx, edi
mov rax, qword [rcx]
call qword [rax + 0x70]
test eax, eax
jne 0x1801542b8
xorps xmm0, xmm0
mov qword [rsp + 0xb8], rbp
movups xmmword [rbx + 0x48], xmm0
lea rdx, [rsp + 0x48]
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov ebp, eax
test eax, eax
jne 0x180154293
cmp qword [rsp + 0x48], 0x20
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xc8], r13
mov qword [rsp + 0x80], r15
jle 0x180154206
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x50]
mov r12d, 0x20
xor r9d, r9d
mov r8d, r12d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov ebp, eax
test eax, eax
jne 0x18015427b
mov ecx, dword [rsp + 0x50]
mov r15d, dword [rsp + 0x58]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap r15d
cmp eax, 0x377f0682
jne 0x180154206
lea eax, [r15 - 1]
test r15d, eax
jne 0x180154206
lea eax, [r15 - 0x200]
cmp eax, 0xfe00
ja 0x180154206
mov eax, dword [rsp + 0x5c]
lea r13, [rbx + 0x60]
and cl, 1
mov dword [rbx + 0x38], r15d
bswap eax
movzx ecx, cl
lea r8d, [r12 - 8]
mov dword [rbx + 0x88], eax
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0x60]
xor r9d, r9d
mov byte [rbx + 0x55], cl
xor ecx, 1
mov qword [rbx + 0x68], rax
mov qword [rsp + 0x20], r13
call fcn.1801537d0
mov eax, dword [rsp + 0x68]
bswap eax
cmp dword [r13], eax
jne 0x180154206
mov eax, dword [rsp + 0x6c]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x180154206
mov eax, dword [rsp + 0x54]
bswap eax
cmp eax, 0x2de218
je 0x1801540b5
mov ecx, 0xcd33
call fcn.1800f3400
mov ebp, eax
jmp 0x1801541fe
lea eax, [r15 + 0x18]
movsxd rcx, r15d
add rcx, 0x18
mov dword [rsp + 0x30], eax
call fcn.1800639f0
mov rsi, rax
test rax, rax
jne 0x1801540d9
lea ebp, [rax + 7]
jmp 0x18015427b
movsxd rdx, dword [rsp + 0x30]
xor r14d, r14d
lea rax, [rdx + 0x20]
cmp rax, qword [rsp + 0x48]
jg 0x1801541ed
mov rcx, qword [rbx + 0x10]
mov r8d, edx
inc r14d
mov r9, r12
mov rdx, rsi
mov dword [rsp + 0x30], r14d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov ebp, eax
test eax, eax
jne 0x1801541e9
mov rax, qword [rbx + 0x68]
cmp rax, qword [rsi + 8]
jne 0x1801541e9
mov r14d, dword [rsi]
bswap r14d
test r14d, r14d
je 0x1801541e9
xor edi, edi
mov qword [rsp + 0x20], r13
cmp byte [rbx + 0x55], dil
lea r8d, [rbp + 8]
mov r9, r13
mov rdx, rsi
sete dil
mov ecx, edi
call fcn.1801537d0
mov r8d, dword [rbx + 0x38]
lea rdx, [rsi + 0x18]
mov r9, r13
mov qword [rsp + 0x20], r13
mov ecx, edi
call fcn.1801537d0
mov eax, dword [rsi + 0x10]
bswap eax
cmp dword [r13], eax
jne 0x1801541e9
mov eax, dword [rsi + 0x14]
bswap eax
cmp dword [r13 + 4], eax
jne 0x1801541e9
mov edi, dword [rsi + 4]
mov r8d, r14d
mov r14d, dword [rsp + 0x30]
mov rcx, rbx
mov edx, r14d
bswap edi
call fcn.180153a40
mov ebp, eax
test eax, eax
jne 0x1801541e9
test edi, edi
je 0x1801541d0
movzx eax, r15w
mov dword [rbx + 0x58], r14d
mov dword [rbx + 0x5c], edi
mov ecx, r15d
mov edx, 0xff00
sar ecx, 0x10
and ax, dx
or cx, ax
mov word [rbx + 0x56], cx
mov eax, dword [r13]
mov dword [rsp + 0x34], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x38], eax
lea edx, [r15 + 0x18]
movsxd rdi, edx
add r12, rdi
lea rax, [rdi + r12]
cmp rax, qword [rsp + 0x48]
jle 0x1801540f0
mov edi, dword [rsp + 0x3c]
mov rcx, rsi
call fcn.180063ab0
mov r14d, dword [rsp + 0x40]
mov esi, dword [rsp + 0x34]
test ebp, ebp
jne 0x18015427b
mov eax, dword [rsp + 0x38]
mov rcx, rbx
mov dword [rbx + 0x64], eax
mov dword [rbx + 0x60], esi
call fcn.180154480
mov rax, qword [rbx + 0x30]
xor edx, edx
mov rcx, qword [rax]
mov dword [rcx + 0x60], edx
mov eax, dword [rbx + 0x58]
mov dword [rcx + 0x80], eax
mov dword [rcx + 0x64], edx
lea rdx, [rcx + 0x68]
mov rax, rdx
mov ecx, 4
nop dword [rax]
mov dword [rax], 0xffffffff
lea rax, [rax + 4]
sub rcx, 1
jne 0x180154240
mov eax, dword [rbx + 0x58]
test eax, eax
je 0x180154259
mov dword [rdx], eax
cmp dword [rbx + 0x5c], 0
je 0x18015427b
mov r9, qword [rbx + 0x80]
lea rdx, str.recovered__d_frames_from_WAL_file__s
mov r8d, dword [rbx + 0x58]
mov ecx, 0x11b
call fcn.18006eed0
mov r13, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x80]
cmp byte [rbx + 0x3f], 0
jne 0x1801542ae
mov rcx, qword [rbx + 8]
mov r9d, 9
mov r8d, r14d
mov edx, edi
mov rax, qword [rcx]
call qword [rax + 0x70]
mov eax, ebp
mov rbp, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18015fd80
add rsp, 0x88
pop r14
pop rdi
pop rsi
pop rbx
ret