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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x1c], 0
dec edx
je 0x61c2fd85
mov dword [ebp - 0x30], 0
cmp byte [eax + 0x16], 0
je 0x61c2fd51
mov dword [ebp - 0x30], 1
cmp byte [eax + 0x10], 1
je 0x61c2fd51
xor eax, eax
test byte [ebp + 8], 2
setne al
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0
jne 0x61c2fd8c
mov dword [esp + 0xc], 0x61c77104
mov dword [esp + 8], 0xb9f7
mov dword [esp + 4], 0x61c77f56
mov dword [esp], 0xb
call sym.sqlite3.dll_sqlite3_log
mov esi, 0xb
jmp 0x61c300f3
mov dword [ebp - 0x30], 0
mov byte [ebx + 0x17], 1
mov esi, dword [ebx + 0x28]
test esi, esi
jne 0x61c300e3
cmp dword [ebp - 0x30], 0
je 0x61c2fefe
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x61c300fd
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
call sym._sqlite3WalFindFrame
test eax, eax
jne 0x61c30111
jmp 0x61c300fd
mov dword [ebp - 0x20], 0
mov edi, dword [ebp - 0x2c]
dec edi
mov eax, dword [ebx + 0x98]
mov edx, dword [ebx + 0x3c]
mov edx, dword [edx]
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov ecx, eax
sar ecx, 0x1f
imul ecx, edi
mul edi
lea edx, [ecx + edx]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x3c]
mov dword [esp], eax
mov edx, dword [ebp - 0x3c]
call dword [edx + 0x44]
test eax, eax
jne 0x61c30111
cmp dword [ebp - 0x20], 0
je 0x61c2fefe
cmp byte [ebx + 0x10], 1
jbe 0x61c2fe40
lea eax, [ebx + 0xcc]
mov edx, dword [ebp - 0x2c]
call sym._sqlite3PagerLookup.clone.117
mov esi, eax
test eax, eax
jne 0x61c2fec9
mov esi, dword [ebp - 0x20]
mov edx, dword [ebx + 0x88]
test edx, edx
movzx ecx, word [ebx + 0x8c]
je 0x61c2fe6d
mov eax, dword [edx + 0xc]
mov dword [ebx + 0x88], eax
mov dword [edx + 0xc], 0
xor eax, eax
mov edi, dword [edx + 8]
rep stosb byte es:[edi], al
jmp 0x61c2febb
lea eax, [ecx + 0x28]
xor edx, edx
call sym._sqlite3MallocZero
mov edx, eax
test eax, eax
jne 0x61c2fea6
mov eax, dword [ebx + 0x98]
mov ecx, eax
sar ecx, 0x1f
imul ecx, edi
mul edi
lea edx, [ecx + edx]
mov edi, dword [ebx + 0x3c]
mov dword [esp], esi
mov ecx, edx
mov edx, eax
mov eax, edi
call sym._sqlite3OsUnfetch
jmp 0x61c2ffb0
lea eax, [eax + 0x28]
mov dword [edx + 8], eax
mov word [edx + 0x18], 0x40
mov word [edx + 0x1a], 1
mov dword [edx + 0x10], ebx
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x14], eax
mov dword [edx + 4], esi
inc dword [ebx + 0x78]
jmp 0x61c2fef2
mov eax, dword [ebx + 0x98]
mov ecx, eax
sar ecx, 0x1f
imul ecx, edi
mul edi
lea edx, [ecx + edx]
mov edi, dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x20]
mov dword [esp], ecx
mov ecx, edx
mov edx, eax
mov eax, edi
call sym._sqlite3OsUnfetch
mov edx, esi
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
xor esi, esi
jmp 0x61c300f3
mov edx, dword [ebx + 0xcc]
movzx eax, byte [edx + 0x1d]
and eax, 3
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x28]
mov dword [esp], eax
call dword [0x61c75084]
test eax, eax
jne 0x61c2ffba
mov edi, dword [ebx + 0xcc]
cmp byte [edi + 0x1d], 2
je 0x61c2ffa7
mov eax, dword [edi + 8]
jmp 0x61c2ff3e
mov eax, dword [eax + 0x24]
test eax, eax
je 0x61c2ff4f
cmp word [eax + 0x1a], 0
jne 0x61c2ff3b
test byte [eax + 0x18], 8
jne 0x61c2ff3b
mov dword [edi + 8], eax
test eax, eax
jne 0x61c2ff69
mov eax, dword [edi + 4]
jmp 0x61c2ff5e
mov eax, dword [eax + 0x24]
test eax, eax
je 0x61c2ff83
cmp word [eax + 0x1a], 0
jne 0x61c2ff5b
mov dword [esp + 4], eax
mov eax, dword [edi + 0x24]
mov dword [esp], eax
call dword [edi + 0x20]
cmp eax, 5
je 0x61c2ff83
test eax, eax
jne 0x61c30111
mov dword [esp + 8], 2
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], edx
mov eax, dword [edi + 0x28]
mov dword [esp], eax
call dword [0x61c75084]
test eax, eax
jne 0x61c2ffba
jmp 0x61c3010c
mov eax, dword [ebp - 0x38]
mov dword [eax], 0
mov esi, 7
jmp 0x61c300e3
mov edx, dword [ebp + 8]
and edx, 1
mov dword [ebp - 0x34], edx
mov edi, dword [ebx + 0xcc]
mov ecx, eax
mov edx, dword [ebp - 0x2c]
mov eax, edi
call sym._sqlite3PcacheFetchFinish
mov edi, eax
mov eax, dword [ebp - 0x38]
mov dword [eax], edi
cmp dword [ebp - 0x34], 0
jne 0x61c2fff3
cmp dword [edi + 0x10], 0
je 0x61c2fff3
inc dword [ebx + 0xb8]
jmp 0x61c300f3
mov dword [edi + 0x10], ebx
cmp dword [ebp - 0x2c], 0
js 0x61c3000e
mov eax, dword [0x61c75110]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp dword [ebp - 0x2c], eax
jne 0x61c3003c
mov dword [esp + 0xc], 0x61c77104
mov dword [esp + 8], 0xba4c
mov dword [esp + 4], 0x61c77f56
mov dword [esp], 0xb
call sym.sqlite3.dll_sqlite3_log
mov esi, 0xb
jmp 0x61c300dc
cmp byte [ebx + 0xf], 0
jne 0x61c30058
cmp dword [ebp - 0x34], 0
jne 0x61c30058
mov edx, dword [ebp - 0x2c]
cmp dword [ebx + 0x18], edx
jb 0x61c30058
mov eax, dword [ebx + 0x3c]
cmp dword [eax], 0
jne 0x61c3009e
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebx + 0x9c]
ja 0x61c300d7
cmp dword [ebp - 0x34], 0
je 0x61c3008d
call sym._sqlite3BeginBenignMalloc
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebx + 0x1c]
ja 0x61c3007e
mov eax, dword [ebx + 0x38]
call sym._sqlite3BitvecSet
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call sym._addToSavepointBitvecs
call sym._sqlite3EndBenignMalloc
mov ecx, dword [ebx + 0x98]
mov edx, dword [edi + 4]
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
jmp 0x61c300f3
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x61c300bf
cmp dword [ebp - 0x30], 0
jne 0x61c300bf
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
call sym._sqlite3WalFindFrame
mov esi, eax
test eax, eax
jne 0x61c300dc
inc dword [ebx + 0xbc]
mov edx, dword [ebp - 0x1c]
mov eax, edi
call sym._readDbPage
mov esi, eax
test eax, eax
jne 0x61c300dc
jmp 0x61c300f3
mov esi, 0xd
mov eax, edi
call sym._sqlite3PcacheDrop
mov eax, ebx
call sym._pagerUnlockIfUnused
mov eax, dword [ebp - 0x38]
mov dword [eax], 0
mov eax, esi
add esp, 0x5c
pop ebx
pop esi
pop edi
leave
ret
cmp dword [ebp - 0x1c], 0
jne 0x61c2fefe
jmp 0x61c2fdcb
mov eax, 7
mov esi, eax
jmp 0x61c300e3