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

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x68
xor ebp, ebp
lea r10, [rcx + 0x34]
mov r15d, r9d
mov qword [rsp + 0x48], r10
lea r13, [rcx + 0x30]
cmp r8d, 2
mov ebx, r8d
mov qword [rsp + 0x40], r13
lea r9d, [r8 - 2]
mov r12d, edx
mov r8d, ebp
mov rsi, rcx
jb 0x14002022e
mov eax, 0xcccccccd
mov qword [rsp + 0x40], r13
mul dword [r10]
mov eax, r9d
mov qword [rsp + 0x48], r10
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x140123d88]
mov ecx, r9d
sub ecx, edx
xor edx, edx
div dword [r13]
dec eax
cmp ecx, eax
sete r8b
add r8d, 2
add r8d, ecx
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x60], r14
cmp r8d, ebx
je 0x140020497
mov eax, dword [0x140123d88]
xor edx, edx
div dword [r13]
lea r8d, [rax + 1]
cmp ebx, r8d
je 0x140020497
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax + 0x50]
mov eax, dword [rcx + 0x24]
bswap eax
test eax, eax
jne 0x140020278
mov eax, 0x65
jmp 0x140020548
mov r14d, ebp
cmp ebx, 2
jb 0x1400202ab
mov eax, 0xcccccccd
mul dword [r10]
mov eax, r9d
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
sub r9d, edx
lea eax, [r9 + 2]
cmp eax, r8d
sete r14b
add r14d, 2
add r14d, r9d
mov rcx, qword [rsi]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov edx, r14d
call fcn.1400176e0
mov edi, eax
test eax, eax
jne 0x140020504
mov rcx, qword [rsp + 0x38]
mov eax, ebx
sub eax, r14d
dec eax
mov r8, qword [rcx + 8]
lea edx, [rax + rax*4]
test edx, edx
jns 0x1400202ef
call fcn.140017d30
mov r9d, 0xe9db
jmp 0x1400204de
movsxd rax, edx
movzx edi, byte [rax + r8]
mov eax, dword [rax + r8 + 1]
bswap eax
mov dword [rsp + 0x38], eax
mov byte [rsp + 0xb0], dil
call fcn.140017d30
lea eax, [rdi - 1]
cmp al, 4
ja 0x1400204d8
cmp dil, 1
jne 0x140020353
lea rax, [0x140108c34]
mov edi, reloc.WS2_32.dll_inet_addr
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0xf3c5
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140008fe0
mov eax, edi
jmp 0x140020548
cmp dil, 2
jne 0x1400203a3
test r15d, r15d
jne 0x140020546
mov r9d, ebx
mov byte [rsp + 0x20], 1
lea r8, [rsp + 0xb0]
mov rcx, rsi
lea rdx, [rsp + 0x40]
call fcn.140022830
test eax, eax
jne 0x140020548
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400204a0
mov rcx, qword [rcx + 0x70]
call fcn.140017d30
jmp 0x1400204a0
mov rcx, qword [rsi]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov edx, ebx
call fcn.1400176e0
test eax, eax
jne 0x140020548
mov rcx, qword [rsp + 0x30]
mov rdi, qword [rcx + 0x10]
cmp ebx, dword [rdi + 0x88]
je 0x1400203f4
mov rax, qword [rcx + 8]
cmp ebx, 1
mov qword [rdi + 0x50], rax
mov eax, ebp
mov qword [rdi + 0x70], rcx
mov ecx, 0x64
cmove eax, ecx
mov qword [rdi + 0x48], rsi
mov byte [rdi + 5], al
mov dword [rdi + 0x88], ebx
test r15d, r15d
mov r13d, 2
cmovne r12d, ebp
cmovne r13d, ebp
nop word [rax + rax]
mov r9d, r12d
mov byte [rsp + 0x20], r13b
lea r8, [rsp + 0x30]
mov rcx, rsi
lea rdx, [rsp + 0x50]
call fcn.140022830
mov r14d, eax
test eax, eax
jne 0x1400204c5
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140020448
mov rcx, qword [rcx + 0x70]
call fcn.140017d30
mov eax, dword [rsp + 0x30]
test r15d, r15d
je 0x14002045a
cmp eax, dword [rsp + 0xa8]
ja 0x140020410
mov r9d, dword [rsp + 0x38]
mov rdx, rdi
movzx r8d, byte [rsp + 0xb0]
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
call fcn.140020030
mov r14d, eax
test rdi, rdi
je 0x14002048d
mov rcx, qword [rdi + 0x70]
call fcn.140017d30
test r14d, r14d
jne 0x1400204d3
mov r13, qword [rsp + 0x40]
test r15d, r15d
jne 0x140020546
mov eax, dword [0x140123d88]
xor edx, edx
div dword [r13]
mov r10, qword [rsp + 0x48]
lea r9d, [rax + 1]
dec ebx
cmp ebx, r9d
je 0x1400204b5
cmp ebx, 2
jae 0x140020508
mov ecx, ebp
jmp 0x140020537
test rdi, rdi
je 0x1400204d3
mov rcx, qword [rdi + 0x70]
call fcn.140017d30
mov eax, r14d
jmp 0x140020548
mov r9d, 0xe9e3
lea rax, [0x140108c34]
mov edi, reloc.WS2_32.dll_inet_addr
mov ecx, edi
mov qword [rsp + 0x20], rax
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140008fe0
mov eax, edi
jmp 0x140020548
lea r8d, [rbx - 2]
mov eax, 0xcccccccd
mul dword [r10]
mov eax, r8d
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov ecx, ebp
sub r8d, edx
lea eax, [r8 + 2]
cmp eax, r9d
sete cl
add ecx, 2
add ecx, r8d
cmp ecx, ebx
je 0x1400204b5
mov byte [rsi + 0x23], 1
mov dword [rsi + 0x3c], ebx
xor eax, eax
mov r14, qword [rsp + 0x60]
mov rdi, qword [rsp + 0xa0]
add rsp, 0x68
pop r15
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret