Function at 0x100200b0
Capabilities:
Check if file exists
Link many functions at runtime
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x218], eax
mov ecx, dword [0x101dd35c]
push ebx
push ebp
mov ebp, dword [esp + 0x228]
push edi
push 0x104
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10020360
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str...Deepscanheavygate.dll
lea eax, [esp + 0x1c]
push eax
call ebx
test eax, eax
je 0x10020360
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
jne 0x10020199
push 0x208
push eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x20], 0x208
mov dword [esp + 0x1c], 1
call fcn.100d4cc0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push str.path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [esp + 0x18], 0
je 0x10020360
push str.Deepscanheavygate.dll
lea eax, [esp + 0x1c]
push eax
call ebx
test eax, eax
je 0x10020360
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
je 0x10020360
lea ecx, [esp + 0x18]
call fcn.10039a40
mov dword [esi + 8], eax
test eax, eax
jne 0x100201b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10020360
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open16
push eax
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x10020360
mov edx, dword [esi + 8]
push str.sqlite3_close
push edx
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x10020360
mov eax, dword [esi + 8]
push str.sqlite3_exec
push eax
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x10020360
mov ecx, dword [esi + 8]
push str.sqlite3_prepare16_v2
push ecx
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x10020360
mov edx, dword [esi + 8]
push str.sqlite3_reset
push edx
call edi
mov dword [esi + 0x20], eax
test eax, eax
je 0x10020360
mov eax, dword [esi + 8]
push str.sqlite3_bind_int64
push eax
call edi
mov dword [esi + 0x24], eax
test eax, eax
je 0x10020360
mov ecx, dword [esi + 8]
push str.sqlite3_bind_int
push ecx
call edi
mov dword [esi + 0x28], eax
test eax, eax
je 0x10020360
mov edx, dword [esi + 8]
push str.sqlite3_bind_blob
push edx
call edi
mov dword [esi + 0x2c], eax
test eax, eax
je 0x10020360
mov eax, dword [esi + 8]
push str.sqlite3_bind_text16
push eax
call edi
mov dword [esi + 0x30], eax
test eax, eax
je 0x10020360
mov ecx, dword [esi + 8]
push str.sqlite3_column_blob
push ecx
call edi
mov dword [esi + 0x34], eax
test eax, eax
je 0x10020360
mov edx, dword [esi + 8]
push str.sqlite3_column_text16
push edx
call edi
mov dword [esi + 0x38], eax
test eax, eax
je 0x10020360
mov eax, dword [esi + 8]
push str.sqlite3_column_int
push eax
call edi
mov dword [esi + 0x3c], eax
test eax, eax
je 0x10020360
mov ecx, dword [esi + 8]
push str.sqlite3_column_int64
push ecx
call edi
mov dword [esi + 0x40], eax
test eax, eax
je 0x10020360
mov edx, dword [esi + 8]
push str.sqlite3_finalize
push edx
call edi
mov dword [esi + 0x44], eax
test eax, eax
je 0x10020360
mov eax, dword [esi + 8]
push str.sqlite3_step
push eax
call edi
mov dword [esi + 0x48], eax
test eax, eax
je 0x10020360
mov ecx, dword [esi + 8]
push str.sqlite3_column_bytes
push ecx
call edi
mov dword [esi + 0x4c], eax
test eax, eax
je 0x10020360
mov edx, dword [esi + 8]
push str.sqlite3_next_stmt
push edx
call edi
mov dword [esi + 0x58], eax
test eax, eax
je 0x10020360
mov eax, dword [esi + 8]
push str.sqlite3_free
push eax
call edi
mov dword [esi + 0x5c], eax
test eax, eax
je 0x10020360
mov ecx, dword [esi + 8]
push str.sqlite3_clear_bindings
push ecx
call edi
mov edx, dword [esi + 8]
push str.sqlite3_geterrmsg
push edx
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x10]
push esi
push ebp
call eax
add esp, 8
test eax, eax
jne 0x10020360
mov dword [esi + 4], 1
mov ecx, dword [esp + 0x224]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x21c
ret 4