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

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x78
mov rax, qword [0x18016f298]
xor rax, rsp
mov qword [rsp + 0x68], rax
movzx r14d, byte [rcx + 0x41]
xor eax, eax
inc r14d
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov dword [rsp + 0x3c], r14d
lea esi, [rax + 3]
cmp byte [rcx + 0x3f], al
jne 0x180020e95
mov rcx, qword [rcx + 8]
lea r9d, [rsi + 7]
mov r8d, esi
mov edx, r14d
sub r8d, r14d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov edi, eax
test eax, eax
jne 0x180020ed6
cmp byte [rbx + 0x3f], 0
jne 0x180020edd
mov rcx, qword [rbx + 8]
mov edx, 4
mov r8d, edx
mov rax, qword [rcx]
lea r9d, [rdx + 6]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov edi, eax
test eax, eax
je 0x180020edd
cmp byte [rbx + 0x3f], 0
jne 0x180020ed6
mov rcx, qword [rbx + 8]
sub esi, r14d
mov r9d, 9
mov r8d, esi
mov edx, r14d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov eax, edi
jmp 0x180021238
xor eax, eax
mov qword [rsp + 0xa8], rbp
mov qword [rbx + 0x48], rax
lea rdx, [rsp + 0x40]
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x58], rax
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x68], rax
mov qword [rbx + 0x70], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + Ordinal_50]
mov ebp, eax
test eax, eax
jne 0x1800211f0
cmp qword [rsp + 0x40], 0x20
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0x70], r15
jle 0x18002115f
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x48]
mov r12d, reloc.WLDAP32.dll_Ordinal_32
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 0x1800211db
mov ecx, dword [rsp + 0x48]
mov r15d, dword [rsp + 0x50]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap r15d
cmp eax, 0x377f0682
jne 0x18002115f
lea eax, [r15 - 1]
test r15d, eax
jne 0x18002115f
lea eax, [r15 - 0x200]
cmp eax, 0xfe00
ja 0x18002115f
mov eax, dword [rsp + 0x54]
lea r13, [rbx + 0x60]
and cl, 1
mov dword [rbx + 0x38], r15d
mov byte [rbx + 0x55], cl
lea r8d, [r12 - 8]
bswap eax
mov ecx, ebp
mov dword [rbx + 0x88], eax
mov rax, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
sete cl
mov qword [rbx + 0x68], rax
xor r9d, r9d
mov qword [rsp + 0x20], r13
call fcn.180020a20
mov eax, dword [rsp + 0x60]
bswap eax
cmp dword [r13], eax
jne 0x18002115f
mov eax, dword [rsp + 0x64]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x18002115f
mov eax, dword [rsp + 0x4c]
bswap eax
cmp eax, 0x2de218
je 0x180021017
mov ecx, 0xe79f
call fcn.1800a7b20
mov ebp, eax
jmp 0x180021157
lea eax, [r15 + 0x18]
movsxd rdi, eax
mov rcx, rdi
call fcn.18000ffb0
mov rsi, rax
test rax, rax
jne 0x180021036
lea ebp, [rax + 7]
jmp 0x1800211db
xor r14d, r14d
lea rax, [rdi + 0x20]
cmp rax, qword [rsp + 0x40]
jg 0x18002114a
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
lea r8d, [r15 + 0x18]
inc r14d
mov r9, r12
mov rdx, rsi
mov dword [rsp + 0x38], r14d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov ebp, eax
test eax, eax
jne 0x18002114a
mov rax, qword [rbx + 0x68]
cmp rax, qword [rsi + 8]
jne 0x18002114a
mov r14d, dword [rsi]
bswap r14d
test r14d, r14d
je 0x18002114a
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.180020a20
mov r8d, dword [rbx + 0x38]
lea rdx, [rsi + 0x18]
mov r9, r13
mov qword [rsp + 0x20], r13
mov ecx, edi
call fcn.180020a20
mov eax, dword [rsi + 0x10]
bswap eax
cmp dword [r13], eax
jne 0x18002114a
mov eax, dword [rsi + 0x14]
bswap eax
cmp dword [r13 + 4], eax
jne 0x18002114a
mov edi, dword [rsi + 4]
mov r8d, r14d
mov r14d, dword [rsp + 0x38]
mov rcx, rbx
mov edx, r14d
bswap edi
call fcn.180020cb0
mov ebp, eax
test eax, eax
jne 0x18002114a
test edi, edi
je 0x180021131
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 + 0x30], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x34], eax
lea eax, [r15 + 0x18]
movsxd rdi, eax
add r12, rdi
lea rax, [rdi + r12]
cmp rax, qword [rsp + 0x40]
jle 0x180021050
mov rcx, rsi
call fcn.180010010
mov r14d, dword [rsp + 0x3c]
test ebp, ebp
jne 0x1800211db
mov eax, dword [rsp + 0x30]
mov rcx, rbx
mov dword [rbx + 0x60], eax
mov eax, dword [rsp + 0x34]
mov dword [rbx + 0x64], eax
call fcn.180020af0
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 0x1800211a0
mov eax, dword [rbx + 0x58]
test eax, eax
je 0x1800211b9
mov dword [rdx], eax
cmp dword [rbx + 0x5c], 0
je 0x1800211db
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.180012930
mov r13, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x70]
cmp byte [rbx + 0x3f], 0
jne 0x18002122e
mov rcx, qword [rbx + 8]
mov r8d, 3
sub r8d, r14d
mov r9d, 9
mov edx, r14d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
cmp byte [rbx + 0x3f], 0
jne 0x18002122e
mov rcx, qword [rbx + 8]
mov edx, 4
mov r8d, edx
mov rax, qword [rcx]
lea r9d, [rdx + 5]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov eax, ebp
mov rbp, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180107470
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret