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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x2c], edi
call sym.SQLite3Encrypt.dll_sqlite3_initialize
test eax, eax
jne 0x10091089
push edi
push 0x280
call fcn.10003d80
add esp, 8
mov dword [esp + 0x20], eax
cmp eax, edi
jne 0x10091095
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
add eax, 0x238
lea ecx, [esp + 0x74]
mov dword [esp + 0x28], eax
push ecx
add eax, 0x10
push edx
mov dword [esp + 0x1c], eax
call fcn.10090e10
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x100916e4
cmp dword [esp + 0x24], 0
jle 0x100916c7
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xf8]
shl eax, 0xa
cdq
mov dword [esp + 0x48], eax
xor eax, eax
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c]
push eax
push 0x1c
mov eax, ecx
mov dword [esp + 0x58], edx
call fcn.10089310
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, 2
jge 0x1009110d
mov eax, 2
mov esi, dword [esp + 0x18]
cdq
mov ebx, eax
mov eax, 1
mov edi, edx
call fcn.1002ab00
test eax, eax
jne 0x1009115f
mov eax, dword [esi + 0x3c]
mov ecx, 0x2460
test word [eax + 8], cx
je 0x1009113e
push edi
push ebx
call fcn.10023430
add esp, 8
jmp 0x1009114c
mov edx, 4
mov dword [eax], ebx
mov dword [eax + 4], edi
mov word [eax + 8], dx
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1009115f
push eax
call dword [0x100d3430]
add esp, 4
push esi
call sym.SQLite3Encrypt.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x10091365
test esi, esi
je 0x100911c1
cmp dword [esi + 0x14], 0
je 0x1009119b
xor ecx, ecx
cmp cx, word [esi + 0x54]
jae 0x1009119b
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x10091196
push eax
call dword [0x100d3428]
add esp, 4
mov ecx, dword [esi + 0x14]
jmp 0x100911c6
mov eax, dword [esi]
test eax, eax
je 0x100911c1
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100911b2
push eax
call dword [0x100d3428]
add esp, 4
mov ebx, dword [esi]
mov eax, 0x19
mov dword [ebx + 0x34], eax
call fcn.10006cf0
mov ecx, 0x100b9380
movzx eax, word [ecx + 8]
test al, 4
je 0x100911d5
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
jmp 0x10091222
test al, 8
je 0x100911ef
fld qword [ecx]
sub esp, 8
fstp qword [esp]
call fcn.10023040
add esp, 8
mov edi, eax
mov ebx, edx
jmp 0x10091222
test al, 0x12
je 0x1009121e
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 0xc]
push eax
mov al, byte [ecx + 0xa]
mov ecx, dword [ecx + 0x10]
lea edx, [esp + 0x5c]
push edx
call fcn.10007680
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
add esp, 8
jmp 0x10091222
xor edi, edi
xor ebx, ebx
test esi, esi
je 0x1009125b
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
mov ecx, dword [esi + 0x50]
jne 0x10091240
cmp ecx, 0xc0a
je 0x10091240
mov eax, dword [eax + 0x38]
and eax, ecx
jmp 0x10091245
call fcn.10004830
mov dword [esi + 0x50], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1009125b
push eax
call dword [0x100d3430]
add esp, 4
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebx
test esi, esi
je 0x100912b9
cmp dword [esi + 0x14], 0
je 0x10091293
mov ecx, 1
cmp cx, word [esi + 0x54]
jae 0x10091293
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x1009128b
push eax
call dword [0x100d3428]
add esp, 4
mov ecx, dword [esi + 0x14]
add ecx, 0x28
jmp 0x100912be
mov eax, dword [esi]
test eax, eax
je 0x100912b9
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100912aa
push eax
call dword [0x100d3428]
add esp, 4
mov ebx, dword [esi]
mov eax, 0x19
mov dword [ebx + 0x34], eax
call fcn.10006cf0
mov ecx, 0x100b9380
movzx eax, word [ecx + 8]
test al, 4
je 0x100912d1
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [esp + 0x3c], eax
jmp 0x10091326
test al, 8
je 0x100912ed
fld qword [ecx]
sub esp, 8
fstp qword [esp]
call fcn.10023040
add esp, 8
mov edi, eax
mov dword [esp + 0x3c], edx
jmp 0x10091326
test al, 0x12
je 0x10091320
mov edx, dword [ecx + 0xc]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
push edx
push eax
mov al, byte [ecx + 0xa]
mov ecx, dword [ecx + 0x10]
call fcn.10007680
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
add esp, 8
mov dword [esp + 0x3c], ecx
jmp 0x10091326
xor edi, edi
mov dword [esp + 0x3c], edi
test esi, esi
je 0x1009135f
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
mov ecx, dword [esi + 0x50]
jne 0x10091344
cmp ecx, 0xc0a
je 0x10091344
mov eax, dword [eax + 0x38]
and eax, ecx
jmp 0x10091349
call fcn.10004830
mov edx, dword [esi]
mov dword [esi + 0x50], eax
mov eax, dword [edx + 0xc]
test eax, eax
je 0x1009135f
push eax
call dword [0x100d3430]
add esp, 4
mov dword [esp + 0x18], edi
jmp 0x1009136d
mov dword [esp + 0x18], 0xffffffff
push esi
call sym.SQLite3Encrypt.dll_sqlite3_reset
mov esi, eax
add esp, 4
test esi, esi
jne 0x1009142b
mov eax, dword [esp + 0x78]
test eax, eax
je 0x1009142b
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
xor edi, edi
lea ecx, [esp + 0x54]
push ecx
lea eax, [esp + 0x7c]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x38], edi
call fcn.10090fb0
add esp, 8
cmp dword [esp + 0x18], edi
mov edi, dword [esp + 0x54]
mov esi, eax
jl 0x1009140a
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
push edx
push eax
push edi
push ecx
call fcn.100a6ba0
mov ecx, dword [esp + 0x44]
mov ebx, edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x4c]
push eax
push ecx
push edx
call fcn.100a6ba0
cmp edx, ebx
jg 0x1009140a
jl 0x10091400
cmp eax, dword [esp + 0x68]
jae 0x1009140a
mov eax, dword [esp + 0x38]
mov dword [esp + 0x78], eax
jmp 0x1009142b
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x30]
mov eax, 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x18], 0
jl 0x100916c7
mov eax, dword [esp + 0x20]
push 0x280
push 0
push eax
call fcn.100a6a70
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov dword [ecx + 0xc], 1
test esi, esi
jne 0x100916b6
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x34]
push edx
push eax
push ebx
push ecx
call fcn.1008fd70
mov edi, dword [esp + 0x44]
add esp, 0x10
mov esi, eax
test edi, edi
je 0x1009148e
cmp dword [esp + 0x1c], 0
je 0x100914c4
cmp edi, 1
jne 0x100914c4
mov eax, dword [esp + 0x44]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x34]
push edx
add ebx, 1
adc eax, 0
push eax
push ebx
push ecx
mov dword [esp + 0x44], 0
call fcn.1008c1b0
add esp, 0x10
cmp dword [esp + 0x34], 0
mov esi, eax
je 0x100914c4
mov eax, dword [esp + 0x28]
or dword [eax + 0xc], 2
test esi, esi
jne 0x100916b6
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [ebp + 8]
push ebx
push eax
push ecx
push edx
call fcn.1008e720
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x100916b6
mov eax, dword [esp + 0x14]
cmp dword [eax + 4], ebx
jne 0x100916b6
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.1008c720
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100916b6
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.1008c9d0
mov esi, eax
add esp, 8
cmp esi, 0x64
jne 0x100916b6
cmp dword [esp + 0x1c], 0
je 0x10091579
test edi, edi
jle 0x10091579
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x28]
mov edx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x2c]
push edx
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
dec edi
push edi
push eax
push ecx
push edx
call fcn.1008f7f0
add esp, 0x1c
jmp 0x10091599
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [esp + 0x28]
push ecx
push edx
push eax
call fcn.1008fe70
add esp, 0x14
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10091655
mov ecx, dword [esp + 0x20]
cmp dword [ecx], eax
je 0x10091655
mov edi, ecx
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
push edx
call fcn.1008f110
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x100915e0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.1008c9d0
add esp, 8
mov dword [esp + 0x1c], eax
mov edx, dword [edi + 4]
cmp edx, dword [esp + 0x24]
jge 0x100915f0
cmp eax, 0x64
je 0x100915b3
jmp 0x100915f5
cmp eax, 0x64
je 0x100915f9
test eax, eax
jne 0x10091655
or eax, 0xffffffff
sub eax, edx
mov edx, dword [esp + 0x14]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.10090a80
mov esi, dword [esp + 0x2c]
add esp, 0x14
mov dword [esp + 0x1c], eax
test esi, esi
je 0x10091674
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
push edx
lea esi, [esp + 0x84]
mov dword [esp + 0x3c], 1
call fcn.10090ed0
add esp, 0x10
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
test esi, esi
je 0x10091674
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
neg eax
adc ecx, 0
neg ecx
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
mov eax, dword [ebp + 8]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.1008f300
add esp, 8
test esi, esi
jne 0x100916b2
cmp byte [edi + 0x30], 0
jne 0x100916b2
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi + 0x28]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [ebp + 8]
add eax, 1
adc ecx, esi
push ecx
push eax
push edx
call fcn.1008d2c0
add esp, 0x14
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
call fcn.1008d030
test esi, esi
je 0x100910c0
cmp dword [esp + 0x2c], 0
je 0x100916e4
test esi, esi
jne 0x100916e4
mov eax, dword [ebp + 8]
push eax
lea eax, [esp + 0x78]
call fcn.10090d40
add esp, 4
mov esi, eax
mov ecx, dword [esp + 0x20]
push ecx
call sym.SQLite3Encrypt.dll_sqlite3_free
mov edx, dword [esp + 0x78]
add esp, 4
push edx
call sym.SQLite3Encrypt.dll_sqlite3_free
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret