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

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0xd8
mov rax, qword [0x1802407e8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movzx edi, byte [rcx + 0x41]
xor esi, esi
inc edi
mov dword [rsp + 0x3c], esi
xor r14d, r14d
mov dword [rsp + 0x30], edi
mov rbx, rcx
mov dword [rsp + 0x40], r14d
cmp byte [rcx + 0x3f], sil
jne 0x18001de31
mov rcx, qword [rcx + 8]
lea r9d, [rsi + 0xa]
mov r8d, 3
mov edx, edi
sub r8d, edi
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
test eax, eax
jne 0x18001e3dc
xorps xmm0, xmm0
mov qword [rsp + 0x108], rbp
movups xmmword [rbx + 0x48], xmm0
lea rdx, [rsp + 0x98]
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 0x18001e3b1
cmp qword [rsp + 0x98], 0x20
mov qword [rsp + 0x110], r12
mov qword [rsp + 0xd0], r15
jle 0x18001e2cf
mov rcx, qword [rbx + 0x10]
lea r8d, [rbp + 0x20]
xor r9d, r9d
lea rdx, [rsp + 0xa0]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov ebp, eax
test eax, eax
jne 0x18001e3a1
mov ecx, dword [rsp + 0xa0]
mov edi, dword [rsp + 0xa8]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap edi
mov dword [rsp + 0x54], edi
cmp eax, 0x377f0682
jne 0x18001e2cf
lea eax, [rdi - 1]
test edi, eax
jne 0x18001e2cf
lea eax, [rdi - 0x200]
cmp eax, 0xfe00
ja 0x18001e2cf
mov eax, dword [rsp + 0xac]
lea r12, [rbx + 0x60]
and cl, 1
mov dword [rbx + 0x38], edi
bswap eax
movzx ecx, cl
lea r8d, [rbp + 0x18]
mov dword [rbx + 0x88], eax
lea rdx, [rsp + 0xa0]
mov rax, qword [rsp + 0xb0]
xor r9d, r9d
mov byte [rbx + 0x55], cl
xor ecx, 1
mov qword [rbx + 0x68], rax
mov qword [rsp + 0x20], r12
call fcn.18001d8d0
mov eax, dword [rsp + 0xb8]
bswap eax
cmp dword [r12], eax
jne 0x18001e2cf
mov eax, dword [rsp + 0xbc]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x18001e2cf
mov eax, dword [rsp + 0xa4]
bswap eax
cmp eax, 0x2de218
je 0x18001df95
lea rax, [0x18020e2a4]
mov ebp, recv
mov ecx, ebp
mov qword [rsp + 0x20], rax
mov r9d, 0xff9d
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.180009b30
jmp 0x18001e39d
lea esi, [rdi + 0x18]
mov dword [rsp + 0x50], esi
call fcn.1800c9aa0
test eax, eax
jne 0x18001e30b
movsxd rsi, esi
mov qword [rsp + 0x78], rsi
lea rcx, [rsi + 0x8000]
call fcn.180006980
mov r15, rax
test rax, rax
je 0x18001e30b
add rax, 0x18
movsxd r8, edi
add r8, rax
mov qword [rsp + 0x118], r13
mov rax, qword [rsp + 0x98]
xor r13d, r13d
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x58], r8
cqo
mov dword [rsp + 0x38], r13d
idiv rsi
mov r9, rax
mov qword [rsp + 0x88], rax
add eax, 0x1000
mov r10d, r9d
sub rax, 0xfdf
mov qword [rsp + 0x90], r10
shr rax, 0xc
xor edx, edx
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x48], rdx
nop dword [rax]
mov eax, r13d
mov edi, r9d
shl eax, 0xc
mov ecx, eax
add rax, 0xfde
cmp r10, rax
jb 0x18001e04c
lea edi, [rcx + 0xfde]
mov dword [rsp + 0x34], edi
mov esi, 1
test r13d, r13d
je 0x18001e05d
lea esi, [rcx - 0x21]
lea r14, [rbx + 0x30]
cmp dword [rbx + 0x28], r13d
jle 0x18001e089
mov rax, qword [r14]
movsxd rcx, r13d
mov qword [rsp + 0x68], r14
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x18001e089
xor ebp, ebp
jmp 0x18001e0b4
lea r8, [rsp + 0x60]
mov edx, r13d
mov rcx, rbx
call fcn.18001d770
mov rcx, qword [rsp + 0x60]
mov ebp, eax
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], r14
test rcx, rcx
je 0x18001e25b
mov rax, qword [r14]
mov qword [rdx + rax], r8
cmp esi, edi
ja 0x18001e1eb
mov r13, qword [rsp + 0x78]
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
lea r9d, [rsi - 1]
mov r8d, dword [rsp + 0x50]
mov rdx, r15
imul r9, r13
mov r10, qword [rcx]
add r9, 0x20
call qword [r10 + reloc.WS2_32.dll_recv]
mov ebp, eax
test eax, eax
jne 0x18001e1d7
mov rax, qword [rbx + 0x68]
cmp rax, qword [r15 + 8]
jne 0x18001e1d7
mov r14d, dword [r15]
bswap r14d
test r14d, r14d
je 0x18001e1d7
xor edi, edi
mov qword [rsp + 0x20], r12
cmp byte [rbx + 0x55], dil
lea r8d, [rbp + 8]
mov r9, r12
mov rdx, r15
sete dil
mov ecx, edi
call fcn.18001d8d0
mov r8d, dword [rbx + 0x38]
lea rdx, [r15 + 0x18]
mov r9, r12
mov qword [rsp + 0x20], r12
mov ecx, edi
call fcn.18001d8d0
mov eax, dword [r15 + 0x10]
bswap eax
cmp dword [r12], eax
jne 0x18001e1d3
mov eax, dword [r15 + 0x14]
bswap eax
cmp dword [r12 + 4], eax
jne 0x18001e1d3
mov edi, dword [r15 + 4]
mov r8d, r14d
mov edx, esi
mov rcx, rbx
bswap edi
call fcn.18001dc20
mov ebp, eax
test eax, eax
jne 0x18001e1d3
test edi, edi
je 0x18001e1c3
mov dword [rbx + 0x5c], edi
mov edx, 0xff00
mov edi, dword [rsp + 0x54]
mov ecx, edi
movzx eax, di
mov dword [rbx + 0x58], esi
and ax, dx
sar ecx, 0x10
or cx, ax
mov word [rbx + 0x56], cx
mov eax, dword [r12]
mov dword [rsp + 0x3c], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x40], eax
mov edi, dword [rsp + 0x34]
inc esi
cmp esi, edi
jbe 0x18001e0e0
jmp 0x18001e1d7
mov edi, dword [rsp + 0x34]
mov r13d, dword [rsp + 0x38]
mov r14, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x48]
mov rax, qword [r14]
mov r8d, 0x8000
mov qword [rdx + rax], rcx
xor eax, eax
test r13d, r13d
mov edx, 0x88
cmove eax, edx
mov edx, 0x7f78
cmove r8d, edx
mov rdx, qword [rsp + 0x58]
add rdx, rax
add rcx, rax
call fcn.1801a1710
cmp esi, edi
jbe 0x18001e25b
mov rdx, qword [rsp + 0x48]
inc r13d
mov r8, qword [rsp + 0x58]
add rdx, 8
mov r9, qword [rsp + 0x88]
mov r10, qword [rsp + 0x90]
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x48], rdx
cmp r13d, dword [rsp + 0x80]
jbe 0x18001e030
cmp dword [reloc.WS2_32.dll_accept], 0
mov r13, qword [rsp + 0x118]
je 0x18001e2b5
mov rcx, qword [0x18024ba98]
test rcx, rcx
je 0x18001e27e
call qword [0x180241820]
mov rcx, r15
call qword [0x1802417d8]
dec qword [0x18024b888]
movsxd rcx, eax
sub qword [0x18024b840], rcx
mov rcx, r15
call qword [0x1802417c8]
mov rcx, qword [0x18024ba98]
test rcx, rcx
je 0x18001e2be
call qword [0x180241830]
jmp 0x18001e2be
mov rcx, r15
call qword [0x1802417c8]
test ebp, ebp
jne 0x18001e39d
mov esi, dword [rsp + 0x3c]
mov r14d, dword [rsp + 0x40]
mov rcx, rbx
mov dword [rbx + 0x60], esi
mov dword [rbx + 0x64], r14d
call fcn.18001da70
mov rax, qword [rbx + 0x30]
mov edi, 1
mov rsi, qword [rax]
mov dword [rsi + 0x60], 0
mov eax, dword [rbx + 0x58]
mov dword [rsi + 0x80], eax
mov dword [rsi + 0x64], 0
cmp byte [rbx + 0x3f], 0
je 0x18001e315
xor ebp, ebp
jmp 0x18001e332
mov ebp, 7
jmp 0x18001e39d
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 ebp, eax
test eax, eax
jne 0x18001e36f
cmp edi, 1
jne 0x18001e345
cmp dword [rbx + 0x58], 0
je 0x18001e345
mov eax, dword [rbx + 0x58]
mov dword [rsi + 0x68], eax
jmp 0x18001e350
movsxd rax, edi
mov dword [rsi + rax*4 + 0x64], 0xffffffff
cmp byte [rbx + 0x3f], 0
jne 0x18001e374
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 0x18001e374
cmp eax, 5
jne 0x18001e39d
inc edi
cmp edi, 5
jl 0x18001e301
cmp dword [rbx + 0x5c], 0
je 0x18001e39d
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.180009b30
mov edi, dword [rsp + 0x30]
mov r12, qword [rsp + 0x110]
mov r15, qword [rsp + 0xd0]
cmp byte [rbx + 0x3f], 0
jne 0x18001e3d2
mov rcx, qword [rbx + 8]
mov r8d, 3
sub r8d, edi
mov r9d, 9
mov edx, edi
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov eax, ebp
mov rbp, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18015c7e0
add rsp, 0xd8
pop r14
pop rdi
pop rsi
pop rbx
ret