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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x101d2014]
lea ebx, [esp + 0x24]
mov esi, edx
mov edx, ecx
mov edi, str.sqlite_master
xor eax, ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x18], esi
mov eax, dword [ecx + 0x18]
mov byte [ecx + 0xa5], 1
mov dword [ebx], ecx
mov ecx, dword [ebp + 8]
mov dword [ebx + 8], esi
or eax, 0xffffffbf
cmp esi, 1
mov dword [esp + 8], eax
mov eax, str.sqlite_temp_master
cmove edi, eax
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 4], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x20], edi
mov dword [ebx + 0x10], ecx
lea ecx, [esp + 0x60]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ecx], 0x101b21d8
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov edi, edx
mov dword [ecx + 0xc], 0x101bcefd
mov dword [ecx + 0x10], str.CREATE_TABLE_x_type_text_name_text_tbl_name_text_rootpage_int_sql_text_
mov dword [ecx + 0x14], eax
push eax
push ecx
push 5
push ebx
call fcn.10040140
add esp, 0x10
mov eax, dword [esp + 8]
and dword [edi + 0x18], eax
mov dword [esp + 4], edi
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x1003fe11
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 0x10]
shl eax, 4
mov ecx, dword [edx + eax + 4]
test ecx, ecx
je 0x1003fc1c
cmp byte [ecx + 9], 0
lea esi, [edx + eax + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jne 0x1003feb1
mov ecx, dword [esi]
mov dword [esp + 0xc], esi
test ecx, ecx
je 0x1003fadd
cmp byte [ecx + 8], 0
jne 0x1003fea6
mov dword [esp + 0x1c], 0
xor edx, edx
push 0
call fcn.10007960
add esp, 4
test eax, eax
jne 0x10040001
mov ebx, 0xfffffffb
mov esi, dword [esi]
mov edi, dword [esi + 4]
cmp byte [esi + 9], 0
jne 0x1003fb37
mov dword [esp + 8], 0
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x38]
push dword [eax + ebx*4 + 0x3c]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
cmp byte [esp + 8], 0
mov dword [esp + ebx*4 + 0x54], eax
jne 0x1003fb4b
mov esi, dword [esp + 0xc]
inc ebx
jne 0x1003fafe
jmp 0x1003fb59
inc dword [esi + 0xc]
mov al, 1
cmp byte [esi + 0xa], 0
mov dword [esp + 8], eax
jne 0x1003fb11
jmp 0x1004008b
dec dword [esi + 0xc]
jne 0x1003fb2e
mov ecx, esi
call fcn.10028200
jmp 0x1003fb2e
mov edi, dword [esp + 4]
test byte [edi + 0x23], 2
jne 0x1003ff37
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
lea ebx, [ebx + edx + 0xc]
test eax, eax
mov edx, dword [ebx]
mov dword [edx], ecx
je 0x1003ff55
cmp dword [esp + 0x18], 0
jne 0x1003fe5c
test byte [edi + 0x18], 0x40
jne 0x1003fe5c
and al, 3
xor ecx, ecx
inc ecx
test al, al
movzx eax, al
cmove eax, ecx
mov byte [edi + 0x4e], al
mov dword [esp + 0x10], eax
mov esi, dword [edi + 0x198]
test esi, esi
jne 0x1003fe43
lea eax, [edi + 0x194]
lea edx, [edi + 0x190]
mov esi, dword [edx]
mov ecx, 0x101d4a18
test esi, esi
je 0x1003fc35
mov dword [esp + 8], ebx
mov eax, dword [eax]
dec esi
xor ebx, ebx
mov edi, dword [eax + 0xc]
movzx edx, byte [edi + ebx]
movzx ecx, byte [ebx + 0x101945e5]
cmp dl, cl
jne 0x1003fbf7
test dl, dl
je 0x1003fc2b
inc ebx
jmp 0x1003fbe1
mov dl, byte [edx + 0x10194380]
cmp dl, byte [ecx + 0x10194380]
je 0x1003fbf4
test esi, esi
jne 0x1003fbd9
mov edi, dword [esp + 4]
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ecx, 0x101d4a18
jmp 0x1003fc39
mov eax, dword [edx + 0x1c]
xor ebx, ebx
or word [eax + 0x4e], 1
jmp 0x1003fe19
mov edi, dword [esp + 4]
mov ebx, dword [esp + 8]
mov ecx, eax
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
movzx ecx, dl
mov esi, dword [esp + 0xc]
lea ecx, [ecx + ecx*4]
test eax, eax
lea ecx, [eax + ecx*4 - 0x14]
cmove ecx, eax
mov dword [edi + 8], ecx
mov eax, dword [ebx]
mov byte [eax + 0x4d], dl
mov eax, dword [ebx]
cmp dword [eax + 0x50], 0
jne 0x1003fceb
mov dword [eax + 0x50], 0xfffff830
mov dword [esp + 8], ebx
mov eax, dword [ebx]
mov edi, dword [eax + 0x50]
mov eax, dword [esi]
mov esi, dword [eax + 4]
cmp byte [eax + 9], 0
mov dword [esp + 0x10], eax
jne 0x1003ff09
mov eax, dword [esi]
test edi, edi
mov ebx, dword [eax + 0xd4]
mov dword [ebx + 0x10], edi
mov esi, dword [0x101d2098]
jns 0x1003fcc3
mov eax, edi
xor ecx, ecx
sar eax, 0x1f
shld eax, edi, 0xa
shl edi, 0xa
neg edi
sbb ecx, eax
mov eax, dword [ebx + 0x1c]
add eax, dword [ebx + 0x18]
mov edx, eax
sar edx, 0x1f
push edx
push eax
push ecx
push edi
call fcn.10193120
mov edi, eax
mov ebx, dword [ebx + 0x2c]
mov ecx, esi
call dword [section..00cfg]
push edi
push ebx
call esi
add esp, 8
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 8]
cmp byte [ecx + 9], 0
jne 0x1003ff24
mov eax, dword [esp + 0x44]
mov ecx, dword [ebx]
mov byte [ecx + 0x4c], al
mov edx, dword [ebx]
mov cl, byte [edx + 0x4c]
test cl, cl
je 0x1003fe35
cmp cl, 5
mov ecx, dword [esp + 4]
jae 0x1003ff5d
cmp dword [esp + 0x18], 0
jne 0x1003fd1e
cmp eax, 4
jl 0x1003fd1e
and byte [ecx + 0x20], 0xfd
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x10]
push dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push dword [eax + edx]
push str.SELECTFROM__w_._s_ORDER_BY_rowid
push ecx
call fcn.1000f4f0
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edi, dword [eax + 0x148]
xor eax, eax
mov dword [ecx + 0x148], eax
push eax
lea eax, [esp + 0x28]
push eax
push fcn.10040140
push esi
push dword [esp + 0x14]
call sym.nss3.dll_sqlite3_exec
add esp, 0x14
mov ecx, dword [esp + 4]
mov ebx, eax
test ebx, ebx
mov dword [ecx + 0x148], edi
mov edi, dword [esp + 4]
jne 0x1003fd8e
mov ebx, dword [esp + 0x30]
test esi, esi
je 0x1003fd9b
mov ecx, edi
mov edx, esi
call fcn.10019c40
test ebx, ebx
jne 0x1003ffad
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.10040580
cmp byte [edi + 0x51], 0
mov esi, dword [esp + 0xc]
jne 0x1003ffb7
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
xor ebx, ebx
mov eax, dword [eax + ecx + 0xc]
or word [eax + 0x4e], 1
cmp byte [esp + 0x1c], 0
jne 0x1003fe05
mov esi, dword [esi]
cmp byte [esi + 9], 0
jne 0x1003fedb
mov ecx, esi
xor edx, edx
call fcn.100091a0
test eax, eax
jne 0x1003fdf7
mov ecx, esi
xor edx, edx
call fcn.10009060
cmp byte [esi + 9], 0
jne 0x1003fef4
mov esi, dword [esp + 0xc]
mov ecx, dword [esi]
cmp byte [ecx + 9], 0
jne 0x1003fec8
test ebx, ebx
jne 0x1003ffd2
mov byte [edi + 0xa5], 0
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [edx + 0x4c], 1
mov ecx, dword [ebx]
mov cl, byte [ecx + 0x4c]
jmp 0x1003fd01
mov eax, 0x2eb35835
xor edx, edx
div dword [edi + 0x18c]
lea eax, [esi + edx*8 + 4]
lea edx, [esi + edx*8]
jmp 0x1003fbca
movzx edx, byte [edi + 0x4e]
and eax, 3
cmp eax, edx
je 0x1003fc52
mov eax, dword [ebp + 8]
mov edx, dword [eax]
test edx, edx
je 0x1003fe7d
mov ecx, dword [esp + 4]
call fcn.10019c40
mov ecx, dword [esp + 4]
mov edx, 0x44
push 0
call fcn.10019ed0
add esp, 4
mov esi, eax
test eax, eax
je 0x1003ff98
push 0x44
push str.attached_databases_must_use_the_same_text_encoding_as_main_database
jmp 0x1003ff8f
mov al, 1
mov dword [esp + 0x1c], eax
jmp 0x1003faf9
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x1003fac9
call fcn.10028170
jmp 0x1003fac9
dec dword [ecx + 0xc]
jne 0x1003fe11
call fcn.10028200
jmp 0x1003fe11
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1003fde1
mov ecx, esi
call fcn.10028170
jmp 0x1003fde1
dec dword [esi + 0xc]
jne 0x1003fe01
mov ecx, esi
call fcn.10028200
jmp 0x1003fe01
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x1003fc86
mov ecx, dword [esp + 0x10]
call fcn.10028170
jmp 0x1003fc86
dec dword [ecx + 0xc]
jne 0x1003fceb
call fcn.10028200
jmp 0x1003fceb
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
xorps xmm0, xmm0
mov dword [esp + 0x50], eax
movaps xmmword [esp + 0x40], xmm0
lea ebx, [edx + ecx + 0xc]
mov ecx, dword [ebx]
mov dword [ecx], eax
mov dl, byte [edi + 0x4e]
jmp 0x1003fc52
mov eax, dword [ebp + 8]
mov edx, dword [eax]
test edx, edx
je 0x1003ff6f
mov ecx, dword [esp + 4]
call fcn.10019c40
mov ecx, dword [esp + 4]
mov edx, 0x18
push 0
call fcn.10019ed0
add esp, 4
mov esi, eax
test eax, eax
je 0x1003ff98
push 0x18
push str.unsupported_file_format
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
mov edi, dword [esp + 4]
xor ebx, ebx
inc ebx
mov dword [eax], esi
mov esi, dword [esp + 0xc]
jmp 0x1003fdce
cmp byte [edi + 0x51], 0
mov esi, dword [esp + 0xc]
je 0x1003ffc3
mov ecx, edi
call fcn.10008620
mov ebx, 7
test byte [edi + 0x23], 8
jne 0x1003fdbc
jmp 0x1003fdce
cmp ebx, 0xc0a
je 0x1003ffdf
cmp ebx, 7
jne 0x1003ffed
mov eax, dword [esp + 4]
cmp byte [eax + 0x51], 0
je 0x1004009e
mov edi, dword [esp + 4]
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.1003afb0
jmp 0x1003fe19
mov ebx, eax
cmp eax, 0x204
mov dword [esp + 8], str.abort_due_to_ROLLBACK
jne 0x1004007c
mov eax, dword [ebp + 8]
mov edx, dword [eax]
test edx, edx
je 0x10040024
mov ecx, dword [esp + 4]
call fcn.10019c40
cmp dword [esp + 8], 0
mov dword [esp + 0x14], 0
je 0x1004006a
push dword [esp + 8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, dword [esp + 4]
mov esi, eax
inc esi
mov edx, esi
push 0
call fcn.10019ed0
add esp, 4
test eax, eax
je 0x1004006a
mov edi, eax
push esi
push dword [esp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 0x14], edi
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 4]
mov dword [eax], ecx
jmp 0x1003fe01
cmp ebx, 0x65
jne 0x100400f8
mov dword [esp + 8], str.no_more_rows_available
jmp 0x10040012
mov ecx, esi
call fcn.10028170
mov al, byte [esi + 9]
mov dword [esp + 8], eax
jmp 0x1003fb11
mov eax, dword [esp + 4]
cmp byte [eax + 0x52], 0
jne 0x1003ffed
mov eax, dword [esp + 4]
mov byte [eax + 0x51], 1
cmp dword [eax + 0xbc], 0
jle 0x100400cb
mov eax, dword [esp + 4]
mov dword [eax + 0x108], 1
mov eax, dword [esp + 4]
inc dword [eax + 0x110]
mov word [eax + 0x114], 0
mov eax, dword [eax + 0xec]
test eax, eax
je 0x1003ffed
mov dword [eax + 0xc], 7
jmp 0x1003ffed
cmp ebx, 0x64
jne 0x1004010a
mov dword [esp + 8], str.another_row_available
jmp 0x10040012
movzx eax, bl
mov dword [esp + 8], str.unknown_error
cmp eax, 0x1c
ja 0x10040012
mov ecx, 0x1410004
bt ecx, eax
jb 0x10040012
mov eax, dword [eax*4 + 0x101994dc]
mov dword [esp + 8], eax
jmp 0x10040012