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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x1012b470]
xor eax, esp
mov dword [esp + 0x150], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x24]
push esi
xor esi, esi
mov dword [esp + 0x30], eax
mov dword [eax], esi
xor eax, eax
cmp dword [ebp + 0x20], esi
push edi
mov edi, dword [ebp + 8]
setne al
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], esi
mov dword [ebp + 0x20], eax
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x1003f7f8
push eax
call dword [0x1012c438]
add esp, 4
push 0
push 0x20
mov ecx, edi
call fcn.1000ab60
mov ebx, eax
add esp, 8
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x1003f830
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
lea esp, [esp]
push 0x9c
lea ecx, [esp + 0x48]
push 0
push ecx
call fcn.100ff5c0
add esp, 0xc
push 0x4c
lea edx, [esp + 0x110]
push 0
push edx
call fcn.100ff5c0
mov eax, dword [edi + 0x10c]
add esp, 0xc
cmp byte [edi + 0x57], 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x100], eax
mov dword [edi + 0x10c], ecx
mov dword [esp + 0x40], edi
je 0x1003f889
mov edx, ecx
push str.out_of_memory
push edx
call fcn.1000e200
add esp, 8
test ebx, ebx
je 0x1003fd58
test esi, esi
je 0x1003f8ea
cmp esi, dword [edi + 0x174]
jae 0x1003f8cd
cmp esi, dword [edi + 0x16c]
jb 0x1003f8b5
mov eax, dword [edi + 0x168]
mov dword [esi], eax
mov dword [edi + 0x168], esi
jmp 0x1003f8ea
cmp esi, dword [edi + 0x170]
jb 0x1003f8cd
mov ecx, dword [edi + 0x160]
mov dword [esi], ecx
mov dword [edi + 0x160], esi
jmp 0x1003f8ea
cmp dword [edi + 0x220], 0
je 0x1003f8e1
mov eax, esi
mov ecx, edi
call fcn.1000a730
jmp 0x1003f8ea
push esi
call sym.MyService.dll_sqlite3_free
add esp, 4
cmp byte [edi + 0x5f], 0
mov dword [esp + 0x10], 0
jne 0x1003f8ff
mov esi, edi
call fcn.10020950
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
push edx
push esi
lea eax, [esp + 0x48]
push 0
push eax
call fcn.100579e0
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1003fcab
mov cl, byte [eax + 0x2b]
cmp cl, 1
je 0x1003fc7e
test byte [eax + 0x1c], 0x80
jne 0x1003fc8b
cmp cl, 2
je 0x1003fc98
mov dword [ebx + 0x1c], eax
mov esi, dword [eax + 0x3c]
mov ecx, 0xffff8000
test esi, esi
je 0x1003f968
mov edx, dword [edi + 0x10]
xor ecx, ecx
cmp dword [edx + 0xc], esi
je 0x1003f968
add edx, 0xc
nop
add edx, 0x10
inc ecx
cmp dword [edx], esi
jne 0x1003f960
mov eax, dword [edi + 0x10]
add ecx, ecx
mov ecx, dword [eax + ecx*8]
mov dword [ebx + 0x18], ecx
mov ecx, dword [esp + 0x1c]
movsx eax, word [ecx + 0x22]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x1003f9d9
mov edx, dword [ecx + 4]
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
mov ebx, dword [esp + 0x28]
sub ebx, ecx
lea ebx, [ebx]
movzx edx, byte [ecx]
movzx esi, byte [ebx + ecx]
cmp edx, esi
jne 0x1003f9b2
test edx, edx
je 0x1003f9d9
inc ecx
jmp 0x1003f9a0
movzx esi, byte [esi + 0x10112f10]
movzx edx, byte [edx + 0x10112f10]
sub edx, esi
jne 0x1003f9c7
inc ecx
jmp 0x1003f9a0
mov ecx, dword [esp + 0x20]
add dword [esp + 0x18], 0x10
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x1003f98e
cmp dword [esp + 0x20], eax
je 0x1003fd28
cmp dword [ebp + 0x20], 0
je 0x1003fa88
mov ecx, dword [edi + 0x20]
xor ebx, ebx
and ecx, 0x4000
xor edx, edx
or ecx, edx
mov dword [esp + 0x18], ebx
je 0x1003fa3a
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x30]
test esi, esi
je 0x1003fa3a
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x14]
test edx, edx
jle 0x1003fa2f
lea ecx, [esi + 0x24]
jmp 0x1003fa20
cmp dword [ecx], eax
jne 0x1003fa29
mov ebx, str.foreign_key
add ecx, 8
dec edx
jne 0x1003fa20
mov esi, dword [esi + 4]
test esi, esi
jne 0x1003fa11
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
test edx, edx
je 0x1003fa80
movzx eax, word [edx + 0x32]
test eax, eax
jle 0x1003fa79
mov ecx, dword [edx + 4]
mov esi, eax
movzx eax, word [ecx]
movsx ebx, ax
cmp ebx, dword [esp + 0x20]
je 0x1003fa64
cmp ax, 0xfffe
jne 0x1003fa6f
mov ebx, str.indexed
mov dword [esp + 0x18], ebx
jmp 0x1003fa73
mov ebx, dword [esp + 0x18]
add ecx, 2
dec esi
jne 0x1003fa52
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x1003fa45
test ebx, ebx
jne 0x1003fd40
lea edx, [esp + 0x40]
push edx
call fcn.1002f4f0
mov esi, eax
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [eax + 0x10], esi
test esi, esi
je 0x1003fc09
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0x3c]
mov ebx, 0xffff8000
test ecx, ecx
je 0x1003facb
mov eax, dword [edi + 0x10]
xor ebx, ebx
cmp dword [eax + 0xc], ecx
je 0x1003facb
add eax, 0xc
add eax, 0x10
inc ebx
cmp dword [eax], ecx
jne 0x1003fac3
mov eax, ecx
mov ecx, dword [esi + 0x6c]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp dword [esi + 0x70], ecx
jg 0x1003faec
mov ecx, dword [ebp + 0x20]
push edx
push 2
mov edx, ebx
call fcn.1002f7a0
add esp, 8
jmp 0x1003fb15
lea edi, [ecx + 1]
mov dword [esi + 0x6c], edi
mov edi, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
lea ecx, [edi + ecx*4]
xor edi, edi
mov word [ecx + 2], di
mov edi, dword [ebp + 0x20]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
mov word [ecx], 0xfd02
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x1003fb2c
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov ecx, 1
mov word [eax + edx*4 - 0x12], cx
push 0x10113a48
push 6
mov edi, esi
call fcn.10030270
mov edi, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
add esp, 8
or dword [esi + 0x9c], eax
cmp ebx, 1
je 0x1003fb6a
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
add ecx, ecx
mov ecx, dword [edx + ecx*8 + 4]
cmp byte [ecx + 9], 0
je 0x1003fb6a
or dword [esi + 0xa0], eax
mov edx, dword [esp + 0x24]
cmp byte [edx + 0x57], 0
jne 0x1003fc05
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x20]
mov dword [edi + 4], ebx
mov ecx, dword [eax + 0x14]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
mov eax, dword [eax]
je 0x1003fb9e
xor edx, edx
call fcn.100304a0
jmp 0x1003fbb0
mov ecx, dword [esi + 0x68]
push eax
add ecx, 0x28
push esi
xor eax, eax
call fcn.100305a0
add esp, 8
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x57], 0
jne 0x1003fc05
cmp dword [ebp + 0x20], 0
je 0x1003fbc4
mov byte [edi + 0x14], 0x71
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x14]
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ebx
mov byte [edi + 0x15], 0xfd
movsx edx, word [eax + 0x22]
mov ecx, 1
add edx, ecx
mov dword [edi + 0x24], edx
movsx eax, word [eax + 0x22]
mov dword [edi + 0x44], eax
xor edx, edx
lea eax, [esp + 0x40]
mov word [esp + 0x114], dx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], ecx
call fcn.10031170
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
mov cx, word [esp + 0x20]
mov word [eax + 8], cx
mov dword [eax + 0x14], edi
cmp byte [edi + 0x5f], 0
jne 0x1003fc26
mov ebx, edi
call fcn.100209a0
cmp byte [edi + 0x57], 0
jne 0x1003fd54
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call fcn.1003f5f0
mov ecx, dword [esp + 0x38]
inc ecx
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ecx
cmp ecx, 0x32
jge 0x1003fd54
cmp eax, 0x11
jne 0x1003fd54
lea ebx, [esp + 0x40]
call fcn.10074400
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
jmp 0x1003f830
push esi
push str.cannot_open_virtual_table:__s
lea edx, [esp + 0x48]
push edx
jmp 0x1003fca3
push esi
push str.cannot_open_table_without_rowid:__s
lea eax, [esp + 0x48]
push eax
jmp 0x1003fca3
push esi
push str.cannot_open_view:__s
lea ecx, [esp + 0x48]
push ecx
call fcn.1000e200
add esp, 0xc
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1003fcbf
mov dword [esp + 0x44], 0
mov dword [esp + 0x10], eax
cmp byte [edi + 0x5f], 0
mov dword [esp + 0x14], 1
jne 0x1003fcd4
mov ebx, edi
call fcn.100209a0
mov esi, dword [esp + 0x10]
cmp dword [esp + 0xc], 0
je 0x1003feb0
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x1003fdfc
mov al, byte [ebx + 0x97]
cmp al, 1
jb 0x1003fded
mov edi, dword [ebx]
cmp al, 2
jne 0x1003fd0b
call fcn.10032310
cmp dword [ebx + 0x20], 0
jl 0x1003fd81
cmp dword [edi + 0x130], 0
jne 0x1003fd7c
cmp dword [ebx + 0x7c], 0
jne 0x1003fd7c
mov edx, dword [ebx + 0x24]
mov dword [edi + 0x40], edx
jmp 0x1003fd81
mov edx, dword [esp + 0x28]
push edx
push str.no_such_column:___s_
push edi
call fcn.1000ced0
add esp, 0xc
jmp 0x1003fcbb
push ebx
push str.cannot_open__s_column_for_writing
push edi
call fcn.1000ced0
add esp, 0xc
jmp 0x1003fcbb
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
jne 0x1003fcd8
cmp byte [edi + 0x57], 0
jne 0x1003fcd8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
jmp 0x1003feb0
call fcn.100326b0
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x1003fde6
test edi, edi
je 0x1003fdd6
cmp eax, dword [edi + 0x174]
jae 0x1003fdc4
cmp eax, dword [edi + 0x16c]
jb 0x1003fdac
mov ecx, dword [edi + 0x168]
mov dword [eax], ecx
mov dword [edi + 0x168], eax
jmp 0x1003fddf
cmp eax, dword [edi + 0x170]
jb 0x1003fdc4
mov edx, dword [edi + 0x160]
mov dword [eax], edx
mov dword [edi + 0x160], eax
jmp 0x1003fddf
cmp dword [edi + 0x220], 0
je 0x1003fdd6
mov ecx, edi
call fcn.1000a730
jmp 0x1003fddf
push eax
call sym.MyService.dll_sqlite3_free
add esp, 4
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x78], 0
mov edi, ebx
call fcn.10032bf0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
cmp eax, dword [edi + 0x174]
jae 0x1003fe3a
cmp eax, dword [edi + 0x16c]
jb 0x1003fe1f
mov ecx, dword [edi + 0x168]
mov dword [eax], ecx
mov dword [edi + 0x168], eax
jmp 0x1003feb0
cmp eax, dword [edi + 0x170]
jb 0x1003fe3a
mov edx, dword [edi + 0x160]
mov dword [eax], edx
mov dword [edi + 0x160], eax
jmp 0x1003feb0
cmp dword [edi + 0x220], 0
je 0x1003fe50
mov eax, dword [esp + 0xc]
mov ecx, edi
call fcn.1000a730
jmp 0x1003feb0
cmp dword [0x1012c3e8], 0
je 0x1003fea2
mov eax, dword [0x1013afb8]
test eax, eax
je 0x1003fe6c
push eax
call dword [0x1012c438]
add esp, 4
mov ebx, dword [esp + 0xc]
push ebx
call dword [0x1012c414]
sub dword [0x1013af50], eax
dec dword [0x1013af74]
add esp, 4
push ebx
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x1003feb0
push eax
call dword [0x1012c440]
jmp 0x1003fead
mov eax, dword [esp + 0xc]
push eax
call dword [0x1012c40c]
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, 0x10112e4c
push esi
push ecx
mov ecx, edi
call fcn.1000e0d0
add esp, 8
test esi, esi
je 0x1003ff7b
cmp esi, dword [edi + 0x174]
jae 0x1003ff0f
cmp esi, dword [edi + 0x16c]
jb 0x1003fef7
mov edx, dword [edi + 0x168]
mov dword [esi], edx
mov dword [edi + 0x168], esi
jmp 0x1003ff7b
cmp esi, dword [edi + 0x170]
jb 0x1003ff0f
mov eax, dword [edi + 0x160]
mov dword [esi], eax
mov dword [edi + 0x160], esi
jmp 0x1003ff7b
cmp dword [edi + 0x220], 0
je 0x1003ff23
mov eax, esi
mov ecx, edi
call fcn.1000a730
jmp 0x1003ff7b
cmp dword [0x1012c3e8], 0
je 0x1003ff71
mov eax, dword [0x1013afb8]
test eax, eax
je 0x1003ff3f
push eax
call dword [0x1012c438]
add esp, 4
push esi
call dword [0x1012c414]
sub dword [0x1013af50], eax
dec dword [0x1013af74]
add esp, 4
push esi
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x1003ff7b
push eax
call dword [0x1012c440]
jmp 0x1003ff78
push esi
call dword [0x1012c40c]
add esp, 4
lea ebx, [esp + 0x40]
call fcn.10074400
cmp byte [edi + 0x57], 0
jne 0x1003ff95
cmp dword [esp + 0x14], 0
jne 0x1003ff95
xor esi, esi
jmp 0x1003ffa2
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.1000afb0
mov esi, eax
mov edi, dword [edi + 0xc]
test edi, edi
je 0x1003ffb3
push edi
call dword [0x1012c440]
add esp, 4
mov ecx, dword [esp + 0x15c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.100f9904
mov esp, ebp
pop ebp
ret