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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, qword [rcx + 0x18]
xor r13d, r13d
xor r15d, r15d
mov qword [rsp + 0x88], r12
mov r14d, r8d
mov rbx, rdx
mov rsi, rcx
cmp r8d, 2
jae 0x140023172
lea rax, [0x140109c54]
mov edi, reloc.WS2_32.dll_inet_addr
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0xfd29
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1400090c0
jmp 0x1400234b1
test rdx, rdx
je 0x140023188
mov rax, qword [rdx + 0x70]
inc word [rax + 0x2e]
mov rax, qword [rax + 0x30]
inc dword [rax + 0x18]
jmp 0x140023193
mov edx, r14d
call fcn.14001e1e0
mov rbx, rax
mov rcx, qword [r12 + 0x70]
mov qword [rsp + 0x78], rbp
call fcn.1400187c0
mov dword [rsp + 0x80], eax
mov edi, eax
test eax, eax
jne 0x14002348d
mov rcx, qword [r12 + 0x50]
mov ebp, dword [rcx + 0x24]
bswap ebp
lea eax, [rbp + 1]
bswap eax
mov dword [rcx + 0x24], eax
test byte [rsi + 0x26], 4
je 0x140023247
test rbx, rbx
jne 0x14002321a
mov rcx, qword [rsi]
lea r8, [rsp + 0x70]
xor r9d, r9d
mov edx, r14d
call fcn.1400177c0
mov edi, eax
test eax, eax
jne 0x1400234ac
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx + 0x10]
cmp r14d, dword [rbx + 0x88]
je 0x14002321a
mov rax, qword [rcx + 8]
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x70], rcx
mov qword [rbx + 0x48], rsi
mov dword [rbx + 0x88], r14d
mov byte [rbx + 5], r13b
mov rcx, qword [rbx + 0x70]
call fcn.1400187c0
mov dword [rsp + 0x80], eax
mov edi, eax
test eax, eax
jne 0x14002348d
mov rax, qword [rbx + 0x48]
xor edx, edx
mov rcx, qword [rbx + 0x50]
mov r8d, dword [rax + 0x30]
call fcn.1400f4290
cmp byte [rsi + 0x21], r13b
je 0x14002327a
lea rax, [rsp + 0x80]
xor r9d, r9d
mov r8b, 2
mov qword [rsp + 0x20], rax
mov edx, r14d
mov rcx, rsi
call fcn.14001d260
mov edi, dword [rsp + 0x80]
test edi, edi
jne 0x14002348d
test ebp, ebp
je 0x140023416
mov rax, qword [r12 + 0x50]
lea r8, [rsp + 0x70]
mov rcx, qword [rsi]
xor r9d, r9d
mov r15d, dword [rax + 0x20]
bswap r15d
mov edx, r15d
call fcn.1400177c0
mov edi, eax
test eax, eax
jne 0x14002348d
mov rcx, qword [rsp + 0x70]
mov rbp, qword [rcx + 0x10]
cmp r15d, dword [rbp + 0x88]
je 0x1400232e5
mov rax, qword [rcx + 8]
mov qword [rbp + 0x50], rax
xor eax, eax
cmp r15d, 1
mov qword [rbp + 0x70], rcx
mov ecx, 0x64
mov qword [rbp + 0x48], rsi
cmove eax, ecx
mov dword [rbp + 0x88], r15d
mov byte [rbp + 5], al
mov rax, qword [rbp + 0x50]
mov ecx, dword [rsi + 0x34]
shr ecx, 2
mov r12d, dword [rax + 4]
bswap r12d
lea eax, [rcx - 2]
cmp r12d, eax
jbe 0x140023332
lea rax, [0x140109c54]
mov edi, reloc.WS2_32.dll_inet_addr
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0xfd5f
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1400090c0
mov r13, rbp
jmp 0x14002348d
lea eax, [rcx - 8]
mov r13, rbp
cmp r12d, eax
jae 0x14002340e
mov rcx, qword [rbp + 0x70]
call fcn.1400187c0
mov edi, eax
test eax, eax
jne 0x14002348d
mov rax, qword [rbp + 0x50]
lea ecx, [r12 + 1]
mov edx, r14d
bswap ecx
bswap edx
mov dword [rax + 4], ecx
lea ecx, [r12*4 + 8]
mov rax, qword [rbp + 0x50]
mov dword [rcx + rax], edx
test rbx, rbx
je 0x1400233af
test byte [rsi + 0x26], 4
jne 0x1400233af
mov rcx, qword [rbx + 0x70]
mov rdx, qword [rcx + 0x20]
cmp byte [rdx + 0x11], dil
jne 0x1400233af
movzx eax, word [rcx + 0x2c]
test al, 2
je 0x1400233af
cmp dword [rdx + 0x80], edi
jne 0x1400233af
mov edx, 0xfffb
and ax, dx
or ax, 0x10
mov word [rcx + 0x2c], ax
mov r15, qword [rsi + 0x58]
xor edi, edi
test r15, r15
jne 0x1400233e8
mov r12d, dword [rsi + 0x3c]
mov ecx, 0x200
call fcn.1400065b0
mov r15, rax
test rax, rax
je 0x140023403
lea rcx, [rax + 4]
xor edx, edx
mov r8d, 0x1fc
call fcn.1400f4290
mov dword [r15], r12d
mov qword [rsi + 0x58], r15
cmp r14d, dword [r15]
ja 0x14002348d
mov edx, r14d
mov rcx, r15
call fcn.140011030
mov edi, eax
jmp 0x14002348d
mov qword [rsi + 0x58], r15
mov edi, 7
jmp 0x14002348d
mov r12, qword [rsp + 0x88]
test rbx, rbx
jne 0x140023461
mov rcx, qword [rsi]
lea r8, [rsp + 0x70]
xor r9d, r9d
mov edx, r14d
call fcn.1400177c0
mov edi, eax
test eax, eax
jne 0x14002349e
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx + 0x10]
cmp r14d, dword [rbx + 0x88]
je 0x140023461
mov rax, qword [rcx + 8]
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x70], rcx
mov qword [rbx + 0x48], rsi
mov dword [rbx + 0x88], r14d
mov byte [rbx + 5], dil
mov rcx, qword [rbx + 0x70]
call fcn.1400187c0
mov edi, eax
test eax, eax
jne 0x14002348d
mov rax, qword [rbx + 0x50]
bswap r15d
bswap r14d
mov dword [rax], r15d
mov rax, qword [rbx + 0x50]
mov dword [rax + 4], edi
mov rax, qword [r12 + 0x50]
mov dword [rax + 0x20], r14d
test rbx, rbx
je 0x14002349e
mov rcx, qword [rbx + 0x70]
mov byte [rbx], 0
call fcn.140017e10
test r13, r13
je 0x1400234ac
mov rcx, qword [r13 + 0x70]
call fcn.140017e10
mov rbp, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret