Function at 0x53b310
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60b6b8
push eax
mov eax, dword [0x6d1668]
mov dword fs:[0], esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x53b361
cmp dword [0x6d166c], ebx
je 0x53b361
cmp dword [0x6d1670], ebx
je 0x53b361
cmp dword [0x6d1674], ebx
je 0x53b361
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov eax, dword [0x6d1664]
push esi
cmp eax, ebx
jne 0x53b4b8
xor ecx, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 8], ecx
mov word [esp + 0xc], bx
mov eax, dword [0x6d1108]
mov dword [esp + 0x34], ebx
cmp eax, ebx
jne 0x53b390
mov eax, 0x6d110c
mov edx, str._sidmindex.dll
test edx, edx
je 0x53b484
cmp eax, ebx
je 0x53b484
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], bx
call fcn.00402060
lea ecx, [esp + 8]
mov byte [esp + 0x34], 1
call fcn.00401070
push ebx
push str._sidmindex.dll
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov word [esp + 0x2c], bx
call fcn.00402980
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], 2
cmp eax, ebx
jne 0x53b3f7
lea eax, [esp + 0x18]
mov esi, dword [esp + 0x28]
push ebp
push edi
push eax
call fcn.005c7292
lea ebp, [eax + esi + 2]
lea esi, [ebp + ebp]
push esi
call fcn.005dfcbc
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x53b463
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x53b43c
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402050
push eax
mov eax, dword [esp + 0x18]
push ebp
push eax
call fcn.005c7222
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005c7292
add esp, 0x14
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 1
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], bl
call fcn.00401070
mov ecx, dword [esp + 0x10]
pop edi
pop ebp
cmp ecx, ebx
mov eax, ecx
jne 0x53b48e
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [esp + 8]
mov dword [0x6d1664], eax
mov dword [esp + 0x34], 0xffffffff
call fcn.00401070
mov eax, dword [0x6d1664]
cmp eax, ebx
je 0x53b54e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open
push eax
call esi
mov edx, dword [0x6d1664]
push str.sqlite3_close
push edx
mov dword [0x6d1668], eax
call esi
mov dword [0x6d166c], eax
mov eax, dword [0x6d1664]
push str.sqlite3_exec
push eax
call esi
mov ecx, dword [0x6d1664]
push str.sqlite3_free
push ecx
mov dword [0x6d1670], eax
call esi
mov edx, dword [0x6d1664]
push str.sqlite3_blob_open
push edx
mov dword [0x6d1674], eax
call esi
mov dword [0x6d1678], eax
mov eax, dword [0x6d1664]
push str.sqlite3_blob_close
push eax
call esi
mov ecx, dword [0x6d1664]
push str.sqlite3_blob_bytes
push ecx
mov dword [0x6d167c], eax
call esi
mov edx, dword [0x6d1664]
push str.sqlite3_blob_read
push edx
mov dword [0x6d1680], eax
call esi
mov dword [0x6d1684], eax
mov eax, dword [0x6d1668]
pop esi
cmp eax, ebx
je 0x53b585
cmp dword [0x6d166c], ebx
je 0x53b585
cmp dword [0x6d1670], ebx
je 0x53b585
cmp dword [0x6d1674], ebx
je 0x53b585
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [esp + 0x28]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret