Function at 0x1400021d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0x30
mov rax, qword [rdx]
mov ebx, 1
mov qword [0x14037d5b0], rax
call fcn.140021dc0
lea r9, [rsp + 0x48]
mov dword [0x14037da90], ebx
lea r8, [rsp + 0x40]
lea rdx, str.mysqlcheck
lea rcx, [0x14005f038]
call fcn.140022b20
test eax, eax
je 0x14000223c
xor ecx, ecx
cmp eax, 4
je 0x14000222e
call fcn.140021c70
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140021c70
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x58], rdi
lea rdx, [rsp + 0x48]
mov rdi, qword [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140001940
test eax, eax
jne 0x140002538
mov r8, qword [0x140375008]
lea ebx, [rax + 2]
mov rdx, qword [0x140374b00]
mov rcx, qword [0x140374b10]
mov qword [rsp + 0x50], rsi
xor esi, esi
mov dword [0x14037da90], esi
call fcn.140001070
test eax, eax
jne 0x140002533
cmp byte [0x1401bb001], sil
lea ebx, [rsi + 1]
jne 0x1400022a8
call fcn.140001300
test eax, eax
jne 0x1400024ee
cmp byte [0x140374aea], sil
je 0x140002366
mov dword [rsp + 0x28], esi
lea rcx, [0x14037e120]
mov r9d, reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], 0x40
xor r8d, r8d
mov edx, 0x202
call fcn.140022320
test al, al
jne 0x1400024ee
mov dword [rsp + 0x28], esi
lea rcx, [0x14037e0c0]
mov r9d, reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], 0x40
xor r8d, r8d
mov edx, 0x202
call fcn.140022320
test al, al
jne 0x1400024ee
mov dword [rsp + 0x28], esi
lea rcx, [0x14037e100]
mov r9d, reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], 0x40
xor r8d, r8d
mov edx, 0x202
call fcn.140022320
test al, al
jne 0x1400024ee
mov dword [rsp + 0x28], esi
lea rcx, [0x14037e0e0]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
mov edx, 0x20000
call fcn.140022320
test al, al
jne 0x1400024ee
cmp byte [0x140374aa2], sil
je 0x140002376
call fcn.140002970
jmp 0x1400023a9
mov r8d, dword [rsp + 0x40]
cmp r8d, ebx
jle 0x14000239f
cmp byte [0x140374aa5], sil
jne 0x14000239f
mov rcx, qword [rsp + 0x48]
dec r8d
lea rdx, [rcx + 8]
mov rcx, qword [rcx]
call fcn.140002f40
jmp 0x1400023a9
mov rcx, qword [rsp + 0x48]
call fcn.140002e20
cmp byte [0x140374aea], sil
je 0x1400024e3
cmp byte [0x140374ae9], sil
jne 0x1400023dc
cmp dword [0x14037e128], esi
jne 0x1400023cf
cmp dword [0x14037e108], esi
je 0x1400023dc
lea rcx, str._nRepairing_tables
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov rbx, rsi
mov dword [0x140374b34], 2
cmp dword [0x14037e128], ebx
jbe 0x140002423
mov ecx, dword [0x14037e134]
imul rcx, rbx
add rcx, qword [0x14037e120]
call fcn.140001500
mov rdx, rax
mov r9b, 1
xor r8d, r8d
call fcn.140001c00
mov eax, dword [0x14037e128]
inc rbx
cmp rbx, rax
jb 0x1400023f1
mov rbx, rsi
cmp dword [0x14037e108], ebx
jbe 0x140002454
nop
mov ecx, dword [0x14037e114]
imul rcx, rbx
add rcx, qword [0x14037e100]
call fcn.1400030b0
mov eax, dword [0x14037e108]
inc rbx
cmp rbx, rax
jb 0x140002430
mov rbx, rsi
cmp dword [0x14037e0e8], ebx
jbe 0x140002486
nop
mov ecx, dword [0x14037e0f4]
mov dl, 1
imul rcx, rbx
add rcx, qword [0x14037e0e0]
call fcn.1400031f0
mov eax, dword [0x14037e0e8]
inc rbx
cmp rbx, rax
jb 0x140002460
cmp byte [0x140374ae9], sil
jne 0x1400024a4
cmp dword [0x14037e0c8], esi
je 0x1400024a4
lea rcx, str._nRepairing_views
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov rbx, rsi
cmp dword [0x14037e0c8], ebx
jbe 0x1400024e3
nop
mov ecx, dword [0x14037e0d4]
imul rcx, rbx
add rcx, qword [0x14037e0c0]
call fcn.140001500
mov r9b, 1
mov rdx, rax
movzx r8d, r9b
call fcn.140001c00
mov eax, dword [0x14037e0c8]
inc rbx
cmp rbx, rax
jb 0x1400024b0
mov ebx, esi
cmp dword [0x140375004], ebx
setne bl
mov rcx, qword [0x140374b10]
call fcn.1400012a0
cmp byte [0x140374aea], sil
je 0x140002533
lea rcx, [0x14037e0c0]
call fcn.1400222f0
lea rcx, [0x14037e120]
call fcn.1400222f0
lea rcx, [0x14037e100]
call fcn.1400222f0
lea rcx, [0x14037e0e0]
call fcn.1400222f0
mov rsi, qword [rsp + 0x50]
mov rcx, qword [0x140375008]
call fcn.140021930
call fcn.140006460
mov rcx, rdi
call fcn.140022660
mov ecx, dword [0x140375000]
call fcn.140021c70
mov rdi, qword [rsp + 0x58]
mov eax, ebx
add rsp, 0x30
pop rbx
ret