Function at 0x140023030
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 0x140023092
lea rax, [0x140108c34]
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.140008fe0
jmp 0x1400233d1
test rdx, rdx
je 0x1400230a8
mov rax, qword [rdx + 0x70]
inc word [rax + 0x2e]
mov rax, qword [rax + 0x30]
inc dword [rax + 0x18]
jmp 0x1400230b3
mov edx, r14d
call fcn.14001e100
mov rbx, rax
mov rcx, qword [r12 + 0x70]
mov qword [rsp + 0x78], rbp
call fcn.1400186e0
mov dword [rsp + 0x80], eax
mov edi, eax
test eax, eax
jne 0x1400233ad
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 0x140023167
test rbx, rbx
jne 0x14002313a
mov rcx, qword [rsi]
lea r8, [rsp + 0x70]
xor r9d, r9d
mov edx, r14d
call fcn.1400176e0
mov edi, eax
test eax, eax
jne 0x1400233cc
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx + 0x10]
cmp r14d, dword [rbx + 0x88]
je 0x14002313a
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.1400186e0
mov dword [rsp + 0x80], eax
mov edi, eax
test eax, eax
jne 0x1400233ad
mov rax, qword [rbx + 0x48]
xor edx, edx
mov rcx, qword [rbx + 0x50]
mov r8d, dword [rax + 0x30]
call fcn.1400f43c0
cmp byte [rsi + 0x21], r13b
je 0x14002319a
lea rax, [rsp + 0x80]
xor r9d, r9d
mov r8b, 2
mov qword [rsp + 0x20], rax
mov edx, r14d
mov rcx, rsi
call fcn.14001d180
mov edi, dword [rsp + 0x80]
test edi, edi
jne 0x1400233ad
test ebp, ebp
je 0x140023336
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.1400176e0
mov edi, eax
test eax, eax
jne 0x1400233ad
mov rcx, qword [rsp + 0x70]
mov rbp, qword [rcx + 0x10]
cmp r15d, dword [rbp + 0x88]
je 0x140023205
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 0x140023252
lea rax, [0x140108c34]
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.140008fe0
mov r13, rbp
jmp 0x1400233ad
lea eax, [rcx - 8]
mov r13, rbp
cmp r12d, eax
jae 0x14002332e
mov rcx, qword [rbp + 0x70]
call fcn.1400186e0
mov edi, eax
test eax, eax
jne 0x1400233ad
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 0x1400232cf
test byte [rsi + 0x26], 4
jne 0x1400232cf
mov rcx, qword [rbx + 0x70]
mov rdx, qword [rcx + 0x20]
cmp byte [rdx + 0x11], dil
jne 0x1400232cf
movzx eax, word [rcx + 0x2c]
test al, 2
je 0x1400232cf
cmp dword [rdx + 0x80], edi
jne 0x1400232cf
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 0x140023308
mov r12d, dword [rsi + 0x3c]
mov ecx, 0x200
call fcn.1400064d0
mov r15, rax
test rax, rax
je 0x140023323
lea rcx, [rax + 4]
xor edx, edx
mov r8d, 0x1fc
call fcn.1400f43c0
mov dword [r15], r12d
mov qword [rsi + 0x58], r15
cmp r14d, dword [r15]
ja 0x1400233ad
mov edx, r14d
mov rcx, r15
call fcn.140010f50
mov edi, eax
jmp 0x1400233ad
mov qword [rsi + 0x58], r15
mov edi, 7
jmp 0x1400233ad
mov r12, qword [rsp + 0x88]
test rbx, rbx
jne 0x140023381
mov rcx, qword [rsi]
lea r8, [rsp + 0x70]
xor r9d, r9d
mov edx, r14d
call fcn.1400176e0
mov edi, eax
test eax, eax
jne 0x1400233be
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx + 0x10]
cmp r14d, dword [rbx + 0x88]
je 0x140023381
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.1400186e0
mov edi, eax
test eax, eax
jne 0x1400233ad
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 0x1400233be
mov rcx, qword [rbx + 0x70]
mov byte [rbx], 0
call fcn.140017d30
test r13, r13
je 0x1400233cc
mov rcx, qword [r13 + 0x70]
call fcn.140017d30
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