Function at 0x140020290
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 0x14002030e
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 [0x140125d88]
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 0x140020577
mov eax, dword [0x140125d88]
xor edx, edx
div dword [r13]
lea r8d, [rax + 1]
cmp ebx, r8d
je 0x140020577
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax + 0x50]
mov eax, dword [rcx + 0x24]
bswap eax
test eax, eax
jne 0x140020358
mov eax, 0x65
jmp 0x140020628
mov r14d, ebp
cmp ebx, 2
jb 0x14002038b
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.1400177c0
mov edi, eax
test eax, eax
jne 0x1400205e4
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 0x1400203cf
call fcn.140017e10
mov r9d, 0xe9db
jmp 0x1400205be
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.140017e10
lea eax, [rdi - 1]
cmp al, 4
ja 0x1400205b8
cmp dil, 1
jne 0x140020433
lea rax, [0x140109c54]
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.1400090c0
mov eax, edi
jmp 0x140020628
cmp dil, 2
jne 0x140020483
test r15d, r15d
jne 0x140020626
mov r9d, ebx
mov byte [rsp + 0x20], 1
lea r8, [rsp + 0xb0]
mov rcx, rsi
lea rdx, [rsp + 0x40]
call fcn.140022910
test eax, eax
jne 0x140020628
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140020580
mov rcx, qword [rcx + 0x70]
call fcn.140017e10
jmp 0x140020580
mov rcx, qword [rsi]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov edx, ebx
call fcn.1400177c0
test eax, eax
jne 0x140020628
mov rcx, qword [rsp + 0x30]
mov rdi, qword [rcx + 0x10]
cmp ebx, dword [rdi + 0x88]
je 0x1400204d4
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.140022910
mov r14d, eax
test eax, eax
jne 0x1400205a5
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140020528
mov rcx, qword [rcx + 0x70]
call fcn.140017e10
mov eax, dword [rsp + 0x30]
test r15d, r15d
je 0x14002053a
cmp eax, dword [rsp + 0xa8]
ja 0x1400204f0
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.140020110
mov r14d, eax
test rdi, rdi
je 0x14002056d
mov rcx, qword [rdi + 0x70]
call fcn.140017e10
test r14d, r14d
jne 0x1400205b3
mov r13, qword [rsp + 0x40]
test r15d, r15d
jne 0x140020626
mov eax, dword [0x140125d88]
xor edx, edx
div dword [r13]
mov r10, qword [rsp + 0x48]
lea r9d, [rax + 1]
dec ebx
cmp ebx, r9d
je 0x140020595
cmp ebx, 2
jae 0x1400205e8
mov ecx, ebp
jmp 0x140020617
test rdi, rdi
je 0x1400205b3
mov rcx, qword [rdi + 0x70]
call fcn.140017e10
mov eax, r14d
jmp 0x140020628
mov r9d, 0xe9e3
lea rax, [0x140109c54]
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.1400090c0
mov eax, edi
jmp 0x140020628
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 0x140020595
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