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

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0xc8
mov rax, qword [0x14031a320]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx r14d, byte [rcx + 0x41]
xor edi, edi
inc r14d
mov dword [rsp + 0x40], edi
xor ebp, ebp
mov dword [rsp + 0x30], r14d
mov rbx, rcx
mov dword [rsp + 0x44], ebp
cmp byte [rcx + 0x3f], dil
jne 0x140016343
mov rcx, qword [rcx + 8]
lea r9d, [rdi + 0xa]
mov r8d, 3
mov edx, r14d
sub r8d, r14d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
test eax, eax
jne 0x14001691c
xorps xmm0, xmm0
mov qword [rsp + 0xf8], rsi
movups xmmword [rbx + 0x48], xmm0
lea rdx, [rsp + 0x88]
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov esi, eax
test eax, eax
jne 0x1400168f0
cmp qword [rsp + 0x88], 0x20
mov qword [rsp + 0x100], r12
mov qword [rsp + 0xc0], r15
jle 0x14001680c
mov rcx, qword [rbx + 0x10]
lea r8d, [rsi + 0x20]
xor r9d, r9d
lea rdx, [rsp + 0x90]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov esi, eax
test eax, eax
jne 0x1400168e0
mov ecx, dword [rsp + 0x90]
mov r14d, dword [rsp + 0x98]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap r14d
mov dword [rsp + 0x48], r14d
cmp eax, 0x377f0682
jne 0x14001680c
lea eax, [r14 - 1]
test r14d, eax
jne 0x14001680c
lea eax, [r14 - 0x200]
cmp eax, 0xfe00
ja 0x14001680c
mov eax, dword [rsp + 0x9c]
lea r12, [rbx + 0x60]
bswap eax
mov dword [rbx + 0x88], eax
lea r8, [rsp + 0x90]
mov rax, qword [rsp + 0xa0]
and cl, 1
mov qword [rbx + 0x68], rax
mov r11d, 0xff00
mov byte [rbx + 0x55], cl
mov r10d, edi
mov dword [rbx + 0x38], r14d
mov r9d, edi
jne 0x140016470
nop
mov eax, dword [r8]
add eax, r10d
add r9d, eax
mov eax, dword [r8 + 4]
add eax, r9d
add r8, 8
add r10d, eax
lea rax, [rsp + 0xa8]
cmp r8, rax
jb 0x140016440
jmp 0x1400164d0
mov edx, dword [r8]
mov eax, edx
and eax, r11d
mov ecx, edx
shl ecx, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, r11d
shl ecx, 8
add eax, r10d
shr edx, 0x18
add eax, ecx
add edx, eax
add r9d, edx
mov edx, dword [r8 + 4]
mov eax, edx
mov ecx, edx
and eax, r11d
shl ecx, 0x10
add ecx, eax
add r8, 8
mov eax, edx
shl ecx, 8
shr eax, 8
and eax, r11d
shr edx, 0x18
add eax, r9d
add eax, ecx
add edx, eax
lea rax, [rsp + 0xa8]
add r10d, edx
cmp r8, rax
jb 0x140016470
mov eax, dword [rsp + 0xa8]
bswap eax
mov dword [r12], r9d
mov dword [r12 + 4], r10d
cmp r9d, eax
jne 0x14001680c
mov eax, dword [rsp + 0xac]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x14001680c
mov eax, dword [rsp + 0x94]
bswap eax
cmp eax, 0x2de218
je 0x14001653e
lea rax, [0x1402e5e14]
mov esi, reloc.WLDAP32.dll_Ordinal_14
mov ecx, esi
mov qword [rsp + 0x20], rax
mov r9d, 0xeea2
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140007170
jmp 0x1400168db
lea eax, [r14 + 0x18]
mov dword [rsp + 0x38], eax
call fcn.1400b42f0
test eax, eax
jne 0x14001684a
movsxd rdi, r14d
add rdi, 0x18
lea rcx, [rdi + 0x8000]
call fcn.140004220
mov r15, rax
test rax, rax
je 0x14001684a
add rax, 0x18
movsxd rcx, r14d
add rcx, rax
mov qword [rsp + 0x108], r13
mov rax, qword [rsp + 0x88]
xor r13d, r13d
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x60], rcx
cqo
mov dword [rsp + 0x3c], r13d
idiv rdi
mov r8, rax
mov qword [rsp + 0x78], rax
add eax, 0x1000
mov r9d, r8d
sub rax, 0xfdf
mov qword [rsp + 0x80], r9
shr rax, 0xc
xor r14d, r14d
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], r14
nop dword [rax]
nop word [rax + rax]
mov eax, r13d
mov edi, r8d
shl eax, 0xc
mov ebp, 1
mov edx, eax
lea rcx, [rax + 0xfde]
add eax, 0xfde
cmp r9, rcx
cmovae edi, eax
mov dword [rsp + 0x34], edi
test r13d, r13d
je 0x14001660e
lea ebp, [rdx - 0x21]
cmp dword [rbx + 0x28], r13d
jle 0x140016632
mov rax, qword [rbx + 0x30]
movsxd rcx, r13d
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
test rcx, rcx
je 0x140016632
xor esi, esi
jmp 0x140016656
lea r8, [rsp + 0x50]
mov edx, r13d
mov rcx, rbx
call fcn.140015d90
mov esi, eax
test eax, eax
jne 0x1400167ec
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x60]
mov qword [r14 + rax], rcx
cmp ebp, edi
ja 0x140016786
movsxd rdx, dword [rsp + 0x38]
mov r13, rdx
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
lea r9d, [rbp - 1]
imul r9, r13
mov r10, qword [rcx]
mov r8d, edx
add r9, 0x20
mov rdx, r15
call qword [r10 + reloc.WS2_32.dll_recv]
mov esi, eax
test eax, eax
jne 0x14001677c
mov rax, qword [rbx + 0x68]
cmp rax, qword [r15 + 8]
jne 0x14001677c
mov r14d, dword [r15]
bswap r14d
test r14d, r14d
je 0x14001677c
xor edi, edi
mov qword [rsp + 0x20], r12
cmp byte [rbx + 0x55], dil
lea r8d, [rsi + 8]
mov r9, r12
mov rdx, r15
sete dil
mov ecx, edi
call fcn.140015ee0
mov r8d, dword [rbx + 0x38]
lea rdx, [r15 + 0x18]
mov r9, r12
mov qword [rsp + 0x20], r12
mov ecx, edi
call fcn.140015ee0
mov eax, dword [r15 + 0x10]
bswap eax
cmp dword [r12], eax
jne 0x140016778
mov eax, dword [r15 + 0x14]
bswap eax
cmp dword [r12 + 4], eax
jne 0x140016778
mov edi, dword [r15 + 4]
mov r8d, r14d
mov edx, ebp
mov rcx, rbx
bswap edi
call fcn.140016150
mov esi, eax
test eax, eax
jne 0x140016778
test edi, edi
je 0x140016764
mov r14d, dword [rsp + 0x48]
mov edx, 0xff00
movzx eax, r14w
mov dword [rbx + 0x58], ebp
and ax, dx
mov dword [rbx + 0x5c], edi
mov ecx, r14d
sar ecx, 0x10
or cx, ax
mov word [rbx + 0x56], cx
mov eax, dword [r12]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x44], eax
mov edi, dword [rsp + 0x34]
inc ebp
mov edx, dword [rsp + 0x38]
cmp ebp, edi
jbe 0x140016680
jmp 0x14001677c
mov edi, dword [rsp + 0x34]
mov r13d, dword [rsp + 0x3c]
mov r14, qword [rsp + 0x68]
mov rax, qword [rbx + 0x30]
mov edx, 0x88
mov rcx, qword [rsp + 0x58]
mov r8d, 0x8000
mov qword [r14 + rax], rcx
xor eax, eax
test r13d, r13d
cmove eax, edx
mov edx, 0x7f78
cmove r8d, edx
mov rdx, qword [rsp + 0x60]
add rdx, rax
add rcx, rax
call sub.VCRUNTIME140.dll_memcpy
cmp ebp, edi
jbe 0x1400167ec
mov r8, qword [rsp + 0x78]
inc r13d
mov r9, qword [rsp + 0x80]
add r14, 8
mov dword [rsp + 0x3c], r13d
mov qword [rsp + 0x68], r14
cmp r13d, dword [rsp + 0x70]
jbe 0x1400165e0
mov rcx, r15
call fcn.140004410
mov r13, qword [rsp + 0x108]
test esi, esi
jne 0x1400168db
mov edi, dword [rsp + 0x40]
mov ebp, dword [rsp + 0x44]
mov rcx, rbx
mov dword [rbx + 0x60], edi
mov dword [rbx + 0x64], ebp
call fcn.140015fb0
mov rax, qword [rbx + 0x30]
mov edi, 1
mov r14, qword [rax]
mov dword [r14 + 0x60], 0
mov eax, dword [rbx + 0x58]
mov dword [r14 + 0x80], eax
mov dword [r14 + 0x64], 0
cmp byte [rbx + 0x3f], 0
je 0x140016854
xor esi, esi
jmp 0x140016871
mov esi, 7
jmp 0x1400168db
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 0xa
mov rax, qword [rcx]
lea r8d, [r9 - 9]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov esi, eax
test eax, eax
jne 0x1400168ad
cmp edi, 1
jne 0x140016883
mov eax, dword [rbx + 0x58]
test eax, eax
je 0x140016883
mov dword [r14 + 0x68], eax
jmp 0x14001688e
mov eax, edi
mov dword [r14 + rax*4 + 0x64], 0xffffffff
cmp byte [rbx + 0x3f], 0
jne 0x1400168b2
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 9
mov rax, qword [rcx]
lea r8d, [r9 - 8]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
jmp 0x1400168b2
cmp eax, 5
jne 0x1400168db
inc edi
cmp edi, 5
jl 0x140016840
cmp dword [rbx + 0x5c], 0
je 0x1400168db
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.140007170
mov r14d, dword [rsp + 0x30]
mov r12, qword [rsp + 0x100]
mov r15, qword [rsp + 0xc0]
cmp byte [rbx + 0x3f], 0
jne 0x140016912
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]
mov eax, esi
mov rsi, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140252d20
add rsp, 0xc8
pop r14
pop rdi
pop rbp
pop rbx
ret