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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0x24]
push ebx
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp + 0x20], ebx
push esi
mov esi, dword [ebp + 8]
setne cl
mov dword [eax], ebx
mov eax, dword [esi + 0xc]
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [ebp + 0x20], ecx
cmp eax, ebx
je 0x10031c3e
push eax
call dword [0x100d3428]
add esp, 4
push ebx
push 0x1c
mov eax, esi
call fcn.10004420
mov ecx, eax
add esp, 8
mov dword [esp + 0x1c], ecx
cmp ecx, ebx
je 0x10032254
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
push ebx
push 0x220
mov eax, esi
call fcn.10004420
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x10032254
jmp 0x10031c90
mov edi, dword [esp + 0x10]
push 0x220
push 0
push edi
call fcn.100a6a70
mov dword [edi], esi
xor edi, edi
add esp, 0xc
cmp ebx, edi
je 0x10031cee
cmp dword [esi + 0x1c8], edi
je 0x10031cbf
mov eax, ebx
mov ecx, esi
call fcn.100040f0
jmp 0x10031cee
cmp ebx, dword [esi + 0x120]
jb 0x10031ce5
cmp ebx, dword [esi + 0x124]
jae 0x10031ce5
mov edx, dword [esi + 0x11c]
mov dword [ebx], edx
dec dword [esi + 0x108]
mov dword [esi + 0x11c], ebx
jmp 0x10031cee
push ebx
call sym.SQLite3Encrypt.dll_sqlite3_free
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
cmp dword [esi + 0x14], edi
jle 0x10031d30
xor ebx, ebx
lea ecx, [ecx]
mov eax, dword [esi + 0x10]
mov edi, dword [ebx + eax + 4]
test edi, edi
je 0x10031d1f
cmp byte [edi + 9], 0
je 0x10031d1f
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x10031d1f
call fcn.10016bd0
mov eax, dword [esp + 0x28]
inc eax
add ebx, 0x10
mov dword [esp + 0x28], eax
cmp eax, dword [esi + 0x14]
jl 0x10031d00
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, dword [esp + 0x10]
push ecx
push 0
call fcn.100421f0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x10032111
mov ecx, eax
mov al, byte [ecx + 0x2a]
test al, 0x10
jne 0x100320cc
test al, 0x20
jne 0x100320e3
cmp dword [ecx + 0xc], 0
jne 0x100320fa
movsx eax, word [ecx + 0x22]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x10031df7
mov edx, dword [ebp + 0x14]
movzx eax, byte [edx]
movzx edx, byte [eax + 0x100b8af0]
mov eax, dword [ecx + 4]
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov dl, byte [ecx]
movzx eax, dl
movzx eax, byte [eax + 0x100b8af0]
sub eax, dword [esp + 0x34]
jne 0x10031de3
mov edi, dword [ebp + 0x14]
sub edi, ecx
test dl, dl
je 0x10031ddf
movzx eax, byte [ecx + edi + 1]
movzx ebx, byte [eax + 0x100b8af0]
mov dl, byte [ecx + 1]
inc ecx
movzx eax, dl
movzx eax, byte [eax + 0x100b8af0]
sub eax, ebx
mov ebx, dword [esp + 0x24]
je 0x10031db7
jmp 0x10031de3
test eax, eax
je 0x10031df3
add dword [esp + 0x28], 0x10
inc ebx
mov dword [esp + 0x24], ebx
cmp ebx, dword [esp + 0x2c]
jl 0x10031d9a
mov eax, dword [esp + 0x2c]
cmp ebx, eax
je 0x10032193
cmp dword [ebp + 0x20], 0
je 0x10031e94
test dword [esi + 0x18], 0x80000
mov dword [esp + 0x28], 0
je 0x10031e49
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x10]
test edx, edx
je 0x10031e49
mov ecx, dword [edx + 0x14]
test ecx, ecx
jle 0x10031e42
lea eax, [edx + 0x24]
nop
cmp dword [eax], ebx
jne 0x10031e3c
mov dword [esp + 0x28], str.foreign_key
add eax, 8
dec ecx
jne 0x10031e30
mov edx, dword [edx + 4]
test edx, edx
jne 0x10031e25
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 8]
test edx, edx
je 0x10031e88
movzx eax, word [edx + 0x32]
test eax, eax
jle 0x10031e81
mov ecx, dword [edx + 4]
mov edi, eax
movzx eax, word [ecx]
movsx ebx, ax
cmp ebx, dword [esp + 0x24]
je 0x10031e73
cmp ax, 0xfffe
jne 0x10031e7b
mov dword [esp + 0x28], str.indexed
add ecx, 2
dec edi
jne 0x10031e61
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x10031e54
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x100321ec
mov eax, dword [esp + 0x10]
push eax
call fcn.10023fe0
mov ecx, dword [esp + 0x20]
mov edi, eax
add esp, 4
mov dword [ecx + 0x14], edi
test edi, edi
je 0x10031fda
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx + 0x40]
mov esi, 0xfff0bdc0
test edx, edx
je 0x10031edf
mov ecx, dword [ebp + 8]
xor esi, esi
cmp dword [ecx + 0x14], esi
jle 0x10031edf
mov eax, dword [ecx + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x10031edf
inc esi
add eax, 0x10
cmp esi, dword [ecx + 0x14]
jl 0x10031ed2
mov eax, edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
mov edx, dword [ebp + 0x20]
push esi
push 2
mov ecx, edi
call fcn.100247f0
mov eax, dword [edi]
add esp, 0xc
cmp byte [eax + 0x45], 0
jne 0x10031f0d
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 4]
lea ecx, [eax + eax*4]
mov byte [edx + ecx*4 - 0x11], 1
push 0x100b93dc
push 9
call fcn.10024b60
mov ebx, eax
mov eax, 1
mov ecx, esi
shl eax, cl
add esp, 8
or dword [edi + 0x68], eax
cmp esi, 1
je 0x10031f45
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x10]
mov edx, esi
add edx, edx
mov edx, dword [ecx + edx*8 + 4]
cmp byte [edx + 9], 0
je 0x10031f45
or dword [edi + 0x6c], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x45], 0
jne 0x10031f83
mov eax, dword [esp + 0x20]
mov edx, dword [ebp + 0x20]
mov dword [ebx + 4], esi
mov ecx, dword [eax + 0x1c]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [eax]
mov edx, dword [edi]
xor eax, eax
cmp byte [edx + 0x45], al
je 0x10031f73
call fcn.10024cd0
jmp 0x10031f83
push ecx
mov ecx, dword [edi + 4]
add ecx, 0x14
push edi
call fcn.10024ec0
add esp, 8
mov eax, dword [ebp + 8]
cmp byte [eax + 0x45], 0
jne 0x10031fda
cmp dword [ebp + 0x20], 0
je 0x10031f96
mov byte [ebx + 0x14], 0x37
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x1c]
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], esi
mov byte [ebx + 0x15], 0xf2
movsx edx, word [eax + 0x22]
mov ecx, 1
add edx, ecx
mov dword [ebx + 0x24], edx
movsx eax, word [eax + 0x22]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x10]
mov edx, ecx
push eax
mov esi, edi
mov word [eax + 0x1bc], dx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x48], ecx
call fcn.10025c00
add esp, 4
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0x24]
xor edi, edi
mov dword [eax], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x18], esi
cmp dword [esi + 0x14], edi
jle 0x10032022
xor ebx, ebx
mov eax, dword [esi + 0x10]
mov eax, dword [eax + ebx + 4]
test eax, eax
je 0x10032019
cmp byte [eax + 9], 0
je 0x10032019
dec dword [eax + 0xc]
jne 0x10032019
mov esi, eax
call fcn.10016b90
mov esi, dword [ebp + 8]
inc edi
add ebx, 0x10
cmp edi, dword [esi + 0x14]
jl 0x10031ff9
cmp byte [esi + 0x45], 0
jne 0x10032245
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 0x14]
mov eax, 1
call fcn.1002ab00
test eax, eax
jne 0x10032088
mov eax, dword [esi + 0x3c]
mov edx, 0x2460
test word [eax + 8], dx
je 0x10032061
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ecx
push edx
call fcn.10023430
add esp, 8
jmp 0x10032075
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov dword [eax], ecx
mov ecx, 4
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x10032088
push eax
call dword [0x100d3430]
add esp, 4
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push ecx
push edx
call fcn.10031aa0
mov ecx, dword [esp + 0x3c]
inc ecx
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ecx
cmp ecx, 0x32
jge 0x10032242
cmp eax, 0x11
jne 0x10032242
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
jmp 0x10031c90
mov edi, dword [esp + 0x10]
mov eax, ebx
push eax
push str.cannot_open_virtual_table:__s
push edi
call fcn.10006e10
add esp, 0xc
jmp 0x10032115
mov edi, dword [esp + 0x10]
mov ecx, ebx
push ecx
push str.cannot_open_table_without_rowid:__s
push edi
call fcn.10006e10
add esp, 0xc
jmp 0x10032115
mov edi, dword [esp + 0x10]
mov edx, ebx
push edx
push str.cannot_open_view:__s
push edi
call fcn.10006e10
add esp, 0xc
jmp 0x10032115
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 4]
test eax, eax
je 0x10032127
mov dword [esp + 0x14], eax
mov dword [edi + 4], 0
mov ebx, esi
mov dword [esp + 0x18], 1
call fcn.10016ce0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x100322ea
mov eax, dword [edi + 0x14]
mov dword [esp + 0x30], eax
test eax, eax
je 0x10032178
mov eax, dword [eax + 0x28]
cmp eax, 0xbdf20da3
je 0x10032162
cmp eax, 0x519c2973
jne 0x1003216b
mov eax, dword [esp + 0x30]
call fcn.100270e0
mov edi, dword [esp + 0x30]
call fcn.10027740
mov edi, dword [esp + 0x1c]
cmp dword [esi + 0x1c8], 0
je 0x1003226c
mov eax, edi
mov ecx, esi
call fcn.100040f0
jmp 0x100322ea
mov eax, dword [ebp + 0x14]
push eax
push str.no_such_column:___s_
push esi
call fcn.10005f90
xor edi, edi
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
cmp dword [esi + 0x14], edi
jle 0x10032136
xor ebx, ebx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + ebx + 4]
test eax, eax
je 0x100321de
cmp byte [eax + 9], 0
je 0x100321de
dec dword [eax + 0xc]
jne 0x100321de
mov esi, eax
call fcn.10016b90
mov esi, dword [ebp + 8]
inc edi
add ebx, 0x10
cmp edi, dword [esi + 0x14]
jl 0x100321be
jmp 0x10032136
push eax
push str.cannot_open__s_column_for_writing
push esi
call fcn.10005f90
xor edi, edi
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
cmp dword [esi + 0x14], edi
jle 0x10032136
xor ebx, ebx
mov edx, dword [esi + 0x10]
mov eax, dword [edx + ebx + 4]
test eax, eax
je 0x10032234
cmp byte [eax + 9], 0
je 0x10032234
dec dword [eax + 0xc]
jne 0x10032234
mov esi, eax
call fcn.10016b90
mov esi, dword [ebp + 8]
inc edi
add ebx, 0x10
cmp edi, dword [esi + 0x14]
jl 0x10032214
jmp 0x10032136
mov esi, dword [ebp + 8]
cmp dword [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
jne 0x1003213a
cmp byte [esi + 0x45], 0
jne 0x1003213a
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
jmp 0x100322ea
cmp edi, dword [esi + 0x120]
jb 0x10032292
cmp edi, dword [esi + 0x124]
jae 0x10032292
mov edx, dword [esi + 0x11c]
mov dword [edi], edx
dec dword [esi + 0x108]
mov dword [esi + 0x11c], edi
jmp 0x100322ea
cmp dword [0x100d33d0], 0
je 0x100322e0
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x100322ae
push eax
call dword [0x100d3428]
add esp, 4
push edi
call dword [0x100d3404]
sub dword [0x100d8b08], eax
dec dword [0x100d8b2c]
add esp, 4
push edi
call dword [0x100d33fc]
mov eax, dword [0x100d8cc0]
add esp, 4
test eax, eax
je 0x100322ea
push eax
call dword [0x100d3430]
jmp 0x100322e7
push edi
call dword [0x100d33fc]
add esp, 4
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0x100bd55c
push ebx
push eax
mov eax, dword [esp + 0x20]
mov ecx, esi
call fcn.10006d60
add esp, 8
test ebx, ebx
je 0x100323a2
cmp dword [esi + 0x1c8], 0
je 0x10032324
mov eax, ebx
mov ecx, esi
call fcn.100040f0
jmp 0x100323a2
cmp ebx, dword [esi + 0x120]
jb 0x1003234a
cmp ebx, dword [esi + 0x124]
jae 0x1003234a
mov ecx, dword [esi + 0x11c]
mov dword [ebx], ecx
dec dword [esi + 0x108]
mov dword [esi + 0x11c], ebx
jmp 0x100323a2
cmp dword [0x100d33d0], 0
je 0x10032398
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x10032366
push eax
call dword [0x100d3428]
add esp, 4
push ebx
call dword [0x100d3404]
sub dword [0x100d8b08], eax
dec dword [0x100d8b2c]
add esp, 4
push ebx
call dword [0x100d33fc]
mov eax, dword [0x100d8cc0]
add esp, 4
test eax, eax
je 0x100323a2
push eax
call dword [0x100d3430]
jmp 0x1003239f
push ebx
call dword [0x100d33fc]
add esp, 4
cmp dword [esp + 0x10], 0
je 0x10032512
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x78]
mov ebx, dword [eax]
test edi, edi
je 0x10032457
test ebx, ebx
je 0x100323ff
cmp dword [ebx + 0x1c8], 0
je 0x100323d9
mov eax, edi
mov ecx, ebx
call fcn.100040f0
jmp 0x10032457
cmp edi, dword [ebx + 0x120]
jb 0x100323ff
cmp edi, dword [ebx + 0x124]
jae 0x100323ff
mov edx, dword [ebx + 0x11c]
mov dword [edi], edx
dec dword [ebx + 0x108]
mov dword [ebx + 0x11c], edi
jmp 0x10032457
cmp dword [0x100d33d0], 0
je 0x1003244d
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x1003241b
push eax
call dword [0x100d3428]
add esp, 4
push edi
call dword [0x100d3404]
sub dword [0x100d8b08], eax
dec dword [0x100d8b2c]
add esp, 4
push edi
call dword [0x100d33fc]
mov eax, dword [0x100d8cc0]
add esp, 4
test eax, eax
je 0x10032457
push eax
call dword [0x100d3430]
jmp 0x10032454
push edi
call dword [0x100d33fc]
add esp, 4
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x144]
push eax
push ebx
call fcn.10039850
add esp, 8
test ebx, ebx
je 0x10032479
movzx ecx, byte [edi + 0x18]
sub dword [ebx + 0x100], ecx
mov byte [edi + 0x18], 0
cmp dword [esi + 0x1c8], 0
je 0x10032494
mov eax, edi
mov ecx, esi
call fcn.100040f0
jmp 0x10032512
cmp edi, dword [esi + 0x120]
jb 0x100324ba
cmp edi, dword [esi + 0x124]
jae 0x100324ba
mov edx, dword [esi + 0x11c]
mov dword [edi], edx
dec dword [esi + 0x108]
mov dword [esi + 0x11c], edi
jmp 0x10032512
cmp dword [0x100d33d0], 0
je 0x10032508
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x100324d6
push eax
call dword [0x100d3428]
add esp, 4
push edi
call dword [0x100d3404]
sub dword [0x100d8b08], eax
dec dword [0x100d8b2c]
add esp, 4
push edi
call dword [0x100d33fc]
mov eax, dword [0x100d8cc0]
add esp, 4
test eax, eax
je 0x10032512
push eax
call dword [0x100d3430]
jmp 0x1003250f
push edi
call dword [0x100d33fc]
add esp, 4
cmp byte [esi + 0x45], 0
jne 0x10032529
mov edi, dword [esp + 0x18]
cmp edi, 0xc0a
je 0x10032529
and edi, dword [esi + 0x38]
jmp 0x10032536
mov eax, esi
call fcn.10004830
mov dword [esp + 0x18], eax
mov edi, eax
mov esi, dword [esi + 0xc]
test esi, esi
je 0x10032547
push esi
call dword [0x100d3430]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret