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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x10125170]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0x24]
push esi
mov esi, dword [edx + 0x10]
mov eax, dword [eax]
push edi
mov edi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x54], 0
test esi, esi
jne 0x1004db4e
mov ecx, dword [edi]
push esi
push 1
push esi
mov edx, 0x100fb600
call fcn.100ca6d0
add esp, 0xc
cmp eax, 0x12
jne 0x1004e063
mov ecx, dword [edi]
mov dword [edi + 0x14], eax
mov byte [edi + 0x19], 1
jmp 0x1004e050
xorps xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x80], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x60], edx
mov eax, dword [esi]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], eax
cmp eax, 5
je 0x1004dbce
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x60]
push eax
push 0x10050020
lea edx, [esp + 0x24]
call fcn.100500a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x1004dbc8
cmp dword [esp + 0x34], 2
je 0x1004dbc8
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x60]
push eax
push 0x10050020
lea edx, [esp + 0x24]
call fcn.100500a0
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x68]
jmp 0x1004dbde
mov eax, dword [esi + 0x14]
mov dword [esp + 0x64], 1
mov eax, dword [eax + 0x40]
xor edi, edi
mov dword [esp + 0x48], eax
test edi, edi
jne 0x1004dd40
lea esi, [eax + eax*2]
shl esi, 2
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
jne 0x1004dc12
test esi, esi
jle 0x1004dc12
mov eax, esi
cdq
mov ecx, eax
or eax, edx
je 0x1004dc12
push edx
push ecx
call fcn.100ecdb0
add esp, 8
jmp 0x1004dc14
xor eax, eax
mov dword [esp + 0x88], eax
test eax, eax
je 0x1004dd3b
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x1c], eax
cmp dword [edx + 0x18], eax
jle 0x1004dd40
jmp 0x1004dc60
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x74], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x78], 0
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
cmp eax, 5
lea eax, [esp + 0x70]
mov dword [esp + 0x18], 0
push eax
je 0x1004dce1
mov ecx, dword [esi + 0xc]
push fcn.1004e080
lea edx, [esp + 0x20]
call fcn.100500a0
add esp, 8
test eax, eax
jne 0x1004dcec
cmp dword [esp + 0x2c], 2
je 0x1004dcec
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x70]
push eax
push fcn.1004e080
lea edx, [esp + 0x20]
call fcn.100500a0
add esp, 8
jmp 0x1004dcec
push 0
push esi
call fcn.1004e080
add esp, 0xc
mov eax, dword [esp + 0x1c]
inc eax
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push dword [eax + 0xc]
call sym.SQLite.Interop.dll_sqlite3_column_text
push dword [esp + 0x20]
mov esi, eax
mov eax, dword [esp + 0x30]
push dword [eax + 0xc]
call sym.SQLite.Interop.dll_sqlite3_column_bytes
add esp, 0x10
test esi, esi
jne 0x1004dda2
mov eax, dword [esp + 0x24]
push dword [esp + 0x18]
push dword [eax + 0xc]
call sym.SQLite.Interop.dll_sqlite3_column_type
add esp, 8
cmp eax, 5
je 0x1004df0d
mov edi, 7
push dword [esp + 0x88]
call sym.SQLite.Interop.dll_sqlite3_free
mov eax, dword [esp + 0x24]
add esp, 4
push dword [eax + 0xf8]
call sym.SQLite.Interop.dll_sqlite3_blob_close
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x60]
add esp, 4
mov dword [eax + 0xf8], 0
test edi, edi
je 0x1004e027
push edi
push esi
call sym.SQLite.Interop.dll_sqlite3_result_error_code
push dword [esp + 0x1c]
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.10001186
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x2c]
push esi
mov edx, dword [eax + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x24]
call fcn.1005d470
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1004dd40
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x4c]
push dword [esp + 0x64]
mov eax, dword [eax + 0x14]
call eax
mov edi, eax
add esp, 0x18
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x1004deee
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x48]
mov esi, 0x7fffffff
test ecx, ecx
jle 0x1004def3
mov eax, dword [esp + 0x88]
add eax, 4
mov edi, ecx
cmp dword [eax - 4], 0
lea edx, [eax - 4]
je 0x1004de3d
mov ecx, dword [eax]
sub ecx, dword [eax + 4]
cmp ecx, esi
jge 0x1004de3d
mov esi, ecx
mov dword [esp + 0x28], edx
jmp 0x1004de41
mov edx, dword [esp + 0x28]
add eax, 0xc
dec edi
jne 0x1004de23
mov edi, dword [esp + 0x2c]
test edx, edx
je 0x1004def3
mov ecx, dword [edx]
mov dword [esp + 0x4c], ecx
mov al, byte [ecx]
test al, 0xfe
jne 0x1004de67
mov dword [edx], 0
jmp 0x1004dea0
test al, al
jns 0x1004de7e
lea edx, [esp + 0x58]
call fcn.10066500
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x4c]
jmp 0x1004de8a
movzx eax, al
mov dword [esp + 0x58], eax
mov eax, 1
add eax, ecx
mov dword [edx], eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffffe
add dword [edx + 4], eax
jmp 0x1004dea0
cmp dword [esp + 0x44], esi
jge 0x1004df2b
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x4c]
push dword [esp + 0x64]
mov eax, dword [eax + 0x14]
call eax
mov edi, eax
add esp, 0x18
mov dword [esp + 0x2c], edi
test edi, edi
je 0x1004dea0
cmp edi, 0x65
je 0x1004e00f
test edi, edi
je 0x1004de00
cmp edi, 0x65
jne 0x1004def5
xor edi, edi
mov eax, dword [esp + 0x38]
push dword [esp + 0x50]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
test edi, edi
jne 0x1004dd40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
cmp eax, dword [ecx + 0x18]
jge 0x1004dd40
mov ecx, dword [esp + 0x24]
jmp 0x1004dc60
test edi, edi
jne 0x1004dedd
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
sub eax, ecx
push eax
push ecx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x90]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push dword [esp + 0x28]
lea eax, [esp + 0xa8]
push str._d__d__d__d
push eax
push 0x40
call sym.SQLite.Interop.dll_sqlite3_snprintf
lea esi, [esp + 0xb4]
add esp, 0x1c
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x1004df80
mov eax, dword [esp + 0x30]
sub esi, ecx
mov ecx, dword [esp + 0x54]
add eax, esi
mov dword [esp + 0x4c], eax
inc eax
cmp eax, ecx
jl 0x1004dfd0
lea edi, [ecx + 0x64]
add edi, esi
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
jne 0x1004e005
xor ecx, ecx
mov eax, edi
test edi, edi
cmovs eax, ecx
mov ecx, dword [esp + 0x14]
cdq
push edx
push eax
call fcn.100eca20
add esp, 8
test eax, eax
je 0x1004e005
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], edi
jmp 0x1004dfd4
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x30]
push esi
lea ecx, [esp + 0x9c]
push ecx
push eax
call fcn.100086a0
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x20]
add esp, 0xc
xor edi, edi
mov dword [esp + 0x30], ecx
mov byte [ecx + eax], 0
mov dword [esp + 0x2c], edi
jmp 0x1004de00
mov edi, 7
jmp 0x1004def5
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x28], 0
jne 0x1004def3
mov edi, 0x10b
jmp 0x1004def5
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi]
push sym.SQLite.Interop.dll_sqlite3_free
dec eax
push 1
push eax
call fcn.100ca6d0
add esp, 0xc
cmp eax, 0x12
jne 0x1004e063
mov ecx, dword [esi]
mov dword [esi + 0x14], eax
mov byte [esi + 0x19], 1
push 0
push 1
push 0xffffffffffffffff
mov edx, str.string_or_blob_too_big
call fcn.100ca6d0
add esp, 0xc
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
call fcn.10001186
mov esp, ebp
pop ebp
ret