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

Disassembly:
push rbx
push r14
sub rsp, 0x98
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx edx, byte [rcx + 0x41]
xor r14d, r14d
inc edx
mov qword [rsp + 0x30], r14
mov r8d, 8
mov dword [rsp + 0x40], edx
sub r8d, edx
mov rbx, rcx
mov dword [rsp + 0x3c], r8d
cmp byte [rcx + 0x3f], r14b
jne 0x140045849
mov rcx, qword [rcx + 8]
lea r9d, [r14 + 0xa]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
test eax, eax
jne 0x140045bac
xor eax, eax
mov qword [rsp + 0xb8], rbp
mov qword [rbx + 0x48], rax
lea rdx, [rsp + 0x48]
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 0x140045b83
cmp qword [rsp + 0x48], 0x20
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x80], r15
jle 0x140045aea
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x50]
mov r15d, reloc.WLDAP32.dll_Ordinal_32
xor r9d, r9d
mov r8d, r15d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov ebp, eax
test eax, eax
jne 0x140045b5b
mov ecx, dword [rsp + 0x50]
mov r13d, dword [rsp + 0x58]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap r13d
cmp eax, 0x377f0682
jne 0x140045aea
lea eax, [r13 - 1]
test r13d, eax
jne 0x140045aea
lea eax, [r13 - 0x200]
cmp eax, 0xfe00
ja 0x140045aea
mov eax, dword [rsp + 0x5c]
lea r12, [rbx + 0x60]
and cl, 1
mov dword [rbx + 0x38], r13d
mov byte [rbx + 0x55], cl
lea r8d, [r15 - 8]
bswap eax
mov ecx, r14d
mov dword [rbx + 0x88], eax
mov rax, qword [rsp + 0x60]
lea rdx, [rsp + 0x50]
sete cl
mov qword [rbx + 0x68], rax
xor r9d, r9d
mov qword [rsp + 0x20], r12
call fcn.140045460
mov eax, dword [rsp + 0x68]
bswap eax
cmp dword [r12], eax
jne 0x140045aea
mov eax, dword [rsp + 0x6c]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x140045aea
mov eax, dword [rsp + 0x54]
bswap eax
cmp eax, 0x2de218
je 0x1400459a5
mov ebp, select
lea r9, [0x14029d18c]
mov ecx, ebp
lea rdx, str.cannot_open_file_at_line__d_of___.10s_
mov r8d, 0xc8f5
jmp 0x140045b56
lea eax, [r13 + 0x18]
movsxd rdi, eax
mov rcx, rdi
call fcn.140035b30
mov rsi, rax
test rax, rax
jne 0x1400459c4
lea ebp, [rax + 7]
jmp 0x140045b5b
lea rax, [rdi + 0x20]
cmp rax, qword [rsp + 0x48]
jg 0x140045adb
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
lea r8d, [r13 + 0x18]
inc r14d
mov r9, r15
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 0x140045adb
mov rax, qword [rbx + 0x68]
cmp rax, qword [rsi + 8]
jne 0x140045adb
mov r14d, dword [rsi]
bswap r14d
test r14d, r14d
je 0x140045adb
xor edi, edi
mov qword [rsp + 0x20], r12
cmp byte [rbx + 0x55], dil
lea r8d, [rbp + 8]
mov r9, r12
mov rdx, rsi
sete dil
mov ecx, edi
call fcn.140045460
mov r8d, dword [rbx + 0x38]
lea rdx, [rsi + 0x18]
mov r9, r12
mov qword [rsp + 0x20], r12
mov ecx, edi
call fcn.140045460
mov eax, dword [rsi + 0x10]
bswap eax
cmp dword [r12], eax
jne 0x140045adb
mov eax, dword [rsi + 0x14]
bswap eax
cmp dword [r12 + 4], eax
jne 0x140045adb
mov edi, dword [rsi + 4]
mov r8d, r14d
mov r14d, dword [rsp + 0x38]
mov rcx, rbx
mov edx, r14d
bswap edi
call fcn.1400456c0
mov ebp, eax
test eax, eax
jne 0x140045adb
test edi, edi
je 0x140045ac2
movzx eax, r13w
mov dword [rbx + 0x58], r14d
mov dword [rbx + 0x5c], edi
mov ecx, r13d
mov edx, 0xff00
sar ecx, 0x10
and ax, dx
or cx, ax
mov word [rbx + 0x56], cx
mov eax, dword [r12]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x34], eax
lea eax, [r13 + 0x18]
movsxd rdi, eax
add r15, rdi
lea rax, [rdi + r15]
cmp rax, qword [rsp + 0x48]
jle 0x1400459e0
mov rcx, rsi
call fcn.140035dc0
test ebp, ebp
jne 0x140045b5b
xor r14d, r14d
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.140045530
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
mov dword [rcx + 0x60], r14d
lea rdx, [rcx + 0x68]
mov dword [rcx + 0x64], r14d
mov rax, rdx
mov ecx, 4
nop dword [rax + rax]
mov dword [rax], 0xffffffff
lea rax, [rax + 4]
sub rcx, 1
jne 0x140045b20
mov eax, dword [rbx + 0x58]
test eax, eax
je 0x140045b39
mov dword [rdx], eax
cmp dword [rbx + 0x5c], 0
je 0x140045b5b
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.140038190
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x80]
cmp byte [rbx + 0x3f], 0
jne 0x140045ba2
mov rcx, qword [rbx + 8]
mov r9d, 9
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov eax, ebp
mov rbp, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140215090
add rsp, 0x98
pop r14
pop rbx
ret