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

Disassembly:
sub esp, 0x68
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
push edi
mov edi, dword [esp + 0x80]
cmp edi, 1
jne 0x44a823
mov eax, str.CREATE_TEMP_TABLE_sqlite_temp_master__n__type_text__n__name_text__n__tbl_name_text__n__rootpage_integer__n__sql_text_n_
mov ebx, str.sqlite_temp_master
jmp 0x44a82d
mov eax, str.CREATE_TABLE_sqlite_master__n__type_text__n__name_text__n__tbl_name_text__n__rootpage_integer__n__sql_text_n_
mov ebx, str.sqlite_master
cmp dword [ebp + 0x30], 0xf03b7906
mov dword [esp + 0x24], ebx
mov esi, 0xb5357930
jne 0x44a848
mov dword [ebp + 0x30], 0xa029a697
jmp 0x44a855
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x98], 1
push 0
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x38]
push 3
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 0x4a884c
mov dword [esp + 0x5c], 0
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
call fcn.0044a650
add esp, 0x10
test eax, eax
je 0x44a8d7
mov eax, dword [ebp + 0x30]
cmp eax, 0xa029a697
jne 0x44a8b7
mov dword [ebp + 0x30], 0xf03b7906
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
cmp eax, 0xf03b7906
jne 0x44a8cb
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x98], 1
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov eax, dword [ebp + 4]
lea esi, [edi + edi*2]
add esi, esi
add esi, esi
add esi, esi
mov ecx, dword [esi + eax]
push ecx
push ebp
mov dword [esp + 0x24], esi
call fcn.0043c660
add esp, 8
test eax, eax
je 0x44a8fc
mov byte [eax + 0x34], 1
mov eax, dword [ebp + 0x30]
cmp eax, 0xa029a697
jne 0x44a90f
mov dword [ebp + 0x30], 0xf03b7906
jmp 0x44a927
cmp eax, 0xf03b7906
jne 0x44a927
mov dword [ebp + 0x30], 0xb5357930
mov dword [ebp + 0x98], 1
mov ecx, dword [ebp + 4]
lea eax, [ecx + esi + 4]
mov dword [esp + 0x20], eax
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
jne 0x44a956
cmp edi, 1
jne 0x44a94c
mov ecx, dword [ecx + 0x2c]
or word [ecx + 0x7a], di
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [eax + 4]
cmp dword [ecx + 8], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
jne 0x44a9a7
push eax
call fcn.00425ed0
mov edi, eax
add esp, 4
test edi, edi
je 0x44a9a7
mov esi, edi
test edi, edi
je 0x44aa9b
cmp edi, 0x10
je 0x44ab2b
mov eax, edi
and eax, 0xff
cmp eax, 0x65
ja 0x44aac7
call fcn.0045f7f0
jmp 0x44aacc
push 0x60
call fcn.0041ca60
mov edi, eax
add esp, 4
test edi, edi
je 0x44a9e4
push 0x60
push 0
push edi
call fcn.00487460
mov ebx, dword [esp + 0x24]
mov dword [edi + 0x14], 1
mov esi, dword [ebx]
add esp, 0xc
call fcn.00422900
test eax, eax
jne 0x44aa02
mov dword [esp + 0x7c], 0x10
jmp 0x44aa43
mov ebx, dword [esp + 0x18]
mov esi, ebx
mov dword [esp + 0x7c], 7
call fcn.00425fe0
mov esi, dword [esp + 0x7c]
mov edi, esi
jmp 0x44a97c
mov ecx, dword [edi + 0x14]
test ecx, ecx
jne 0x44aa13
mov dword [esp + 0x7c], 0xb
jmp 0x44aa43
lea eax, [edi + 0x18]
push eax
xor eax, eax
mov esi, ebx
call fcn.004256f0
add esp, 4
test eax, eax
jne 0x44aa3b
mov ecx, dword [edi + 0x18]
cmp byte [ecx], al
jne 0x44aa3b
push eax
mov ebx, ecx
call fcn.004254f0
add esp, 4
mov ebx, esi
test eax, eax
mov dword [esp + 0x7c], eax
je 0x44aa6d
mov eax, dword [edi + 0x18]
test eax, eax
je 0x44aa52
mov eax, dword [eax + 0x48]
call fcn.00423890
push edi
call fcn.00485420
add esp, 4
mov esi, ebx
call fcn.00425fe0
mov esi, dword [esp + 0x7c]
mov edi, esi
jmp 0x44a97c
mov edx, dword [esp + 0x28]
xor esi, esi
mov dword [edi + 0xc], 0x426d50
mov dword [edi + 0x10], esi
mov dword [edi], edx
mov byte [edi + 0x40], 0
mov eax, dword [ebx + 4]
cmp eax, esi
mov dword [edi + 4], eax
je 0x44aa90
mov dword [eax + 8], edi
mov dword [ebx + 4], edi
mov byte [edi + 0x41], 0
mov dword [esp + 0x14], edi
xor edi, edi
test esi, esi
jne 0x44aaed
lea ebx, [esp + 0x50]
cmp edi, 0xa
jae 0x44aae9
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
add edi, 1
push ebx
call fcn.0042af30
mov esi, eax
add esp, 4
add ebx, 4
test esi, esi
je 0x44aaa5
jmp 0x44aaed
mov eax, str.unknown_error
push 0
push eax
mov eax, dword [esp + 0x8c]
push eax
call fcn.0041cc40
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
test esi, esi
je 0x44ab51
mov eax, esi
and eax, 0xff
cmp eax, 0x65
ja 0x44ab00
call fcn.0045f7f0
jmp 0x44ab05
mov eax, str.unknown_error
mov edx, dword [esp + 0x84]
push 0
push eax
push edx
call fcn.0041cc40
mov edi, dword [esp + 0x20]
add esp, 0xc
call fcn.00426f60
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov ecx, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
jmp 0x44ab59
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x50]
test ecx, ecx
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
lea ebx, [edi + edx + 0x14]
mov edi, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebp + 4]
je 0x44ac0d
cmp dword [esp + 0x80], 0
mov edx, dword [eax + 0x14]
jne 0x44abd8
lea edi, [ebp + 0xf8]
test edi, edi
mov byte [edx + 0x79], cl
je 0x44abd1
cmp dword [edi + 0x18], 0
je 0x44abd1
cmp byte [edi], 3
mov eax, 0x41f730
je 0x44aba3
mov eax, 0x41f7a0
push 6
push str.BINARY
call eax
mov edx, dword [edi + 0x14]
sub edx, 1
push 6
and edx, eax
push str.BINARY
mov ecx, edi
call fcn.0041f9b0
add esp, 0x10
test eax, eax
je 0x44abd1
mov eax, dword [eax + 8]
mov dword [ebp + 0x1c], eax
jmp 0x44ac16
xor eax, eax
mov dword [ebp + 0x1c], eax
jmp 0x44ac16
movzx eax, byte [edx + 0x79]
cmp ecx, eax
je 0x44ac16
mov edi, dword [esp + 0x14]
call fcn.00426f60
push 0
push str.attached_databases_must_use_the_same_text_encoding_as_main_database
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0041cc40
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov eax, dword [edx + eax + 0x14]
or word [eax + 0x7a], 4
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebx]
mov cl, byte [edx + 0x79]
mov byte [eax + 0x79], cl
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x44ac31
mov eax, 0x7d0
mov edx, dword [ebx]
mov ecx, dword [esp + 0x20]
mov dword [edx + 0x7c], eax
mov eax, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [eax + 0x7c]
cmp eax, 0xa
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
jle 0x44ac50
mov dword [ecx + 0x44], eax
jmp 0x44ac57
mov dword [ecx + 0x44], 0xa
mov edx, dword [ebx]
mov al, byte [esp + 0x54]
mov byte [edx + 0x78], al
mov ecx, dword [ebx]
cmp byte [ecx + 0x78], 0
jne 0x44ac6e
mov edx, ecx
mov byte [edx + 0x78], 1
mov eax, dword [ebx]
cmp byte [eax + 0x78], 4
jbe 0x44ac8b
mov edi, dword [esp + 0x14]
call fcn.00426f60
push 0
push str.unsupported_file_format
jmp 0x44abf0
cmp esi, 0x10
jne 0x44ac97
xor esi, esi
jmp 0x44ad22
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [ecx + eax]
push edx
push str.SELECT_name__rootpage__sql_FROM__q._s
call fcn.0041dd30
mov edi, eax
add esp, 0xc
mov eax, ebp
call fcn.0041f5d0
push 0
lea eax, [esp + 0x34]
push eax
push fcn.0044a650
push edi
push ebp
call fcn.004485e0
mov esi, eax
add esp, 0x14
cmp esi, 4
mov dword [esp + 0x84], eax
jne 0x44acec
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x84], esi
mov eax, ebp
call fcn.0041f590
test edi, edi
je 0x44ad00
push edi
call fcn.00485420
add esp, 4
test esi, esi
jne 0x44ad19
mov eax, dword [esp + 0x80]
mov esi, ebp
call fcn.0043b2d0
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x14]
call fcn.00426f60
cmp dword [0x4c47e8], 0
je 0x44ad55
cmp dword [0x4c47f0], 0
jle 0x44ad55
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4c47cc], eax
jne 0x44ad55
push 0
mov ebx, ebp
mov esi, 7
call fcn.0043c9a0
add esp, 4
jmp 0x44ad59
test esi, esi
je 0x44ad62
test dword [ebp + 8], 0x40000
je 0x44ad74
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ecx + 0x14]
or word [eax + 0x7a], 1
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret