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

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push ebp
push ebp
mov edi, eax
push 0xffffffffffffffff
push edi
lea esi, [esp + 0x24]
mov eax, ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
call fcn.1008ade0
mov esi, eax
add esp, 0x14
mov eax, edi
mov ecx, ebx
call fcn.10021de0
cmp esi, ebp
jne 0x1008bb11
mov eax, dword [esp + 0x10]
push eax
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x1008b61d
mov ebx, dword [esp + 0x10]
mov esi, 1
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
je 0x1008b40a
cmp dword [ebx + 0x14], ebp
je 0x1008b3e3
cmp word [ebx + 0x54], bp
jbe 0x1008b3e3
mov ecx, dword [ebx]
mov eax, dword [ecx + 0xc]
cmp eax, ebp
je 0x1008b38d
push eax
call dword [0x100c64a4]
add esp, 4
mov edi, dword [ebx + 0x14]
cmp edi, ebp
je 0x1008b427
movzx ecx, word [edi + 0x1c]
test cl, 1
jne 0x1008b427
movzx edx, cl
shr dl, 3
and edx, 2
mov eax, edx
or eax, ecx
test eax, 0x4000
mov word [edi + 0x1c], ax
je 0x1008b3c4
mov eax, edi
call fcn.10036000
test byte [edi + 0x1c], 2
je 0x1008b411
cmp byte [edi + 0x1e], 1
je 0x1008b3da
push esi
push edi
call fcn.100363d0
add esp, 8
mov eax, edi
call fcn.10035fb0
jmp 0x1008b418
mov eax, dword [ebx]
cmp eax, ebp
je 0x1008b40a
mov eax, dword [eax + 0xc]
cmp eax, ebp
je 0x1008b3fa
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx]
push ebp
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov edi, 0x100abb60
jmp 0x1008b398
mov eax, edi
call fcn.1003fd90
cmp byte [edi + 0x1e], 1
jne 0x1008b427
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
jmp 0x1008b42b
mov dword [esp + 0x14], ebp
cmp ebx, ebp
je 0x1008b481
mov edi, dword [ebx]
cmp edi, ebp
mov ecx, dword [ebx + 0x50]
je 0x1008b464
cmp byte [edi + 0x40], 0
jne 0x1008b446
cmp ecx, 0xc0a
jne 0x1008b45f
push ebp
mov eax, 7
mov ecx, edi
call fcn.100410b0
add esp, 4
mov byte [edi + 0x40], 0
mov ecx, 7
mov eax, dword [edi + 0x38]
jmp 0x1008b469
mov eax, 0xff
and eax, ecx
mov ecx, dword [ebx]
mov dword [ebx + 0x50], eax
mov eax, dword [ecx + 0xc]
cmp eax, ebp
je 0x1008b481
push eax
call dword [0x100c64ac]
add esp, 4
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x1008b603
mov edi, dword [esp + 0x10]
test edi, edi
je 0x1008b4e5
cmp dword [edi + 0x14], 0
je 0x1008b4bd
cmp word [edi + 0x54], 1
jbe 0x1008b4bd
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x1008b4b5
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [edi + 0x14]
add ecx, 0x28
jmp 0x1008b4ea
mov eax, dword [edi]
test eax, eax
je 0x1008b4e5
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008b4d4
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [edi]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov ecx, 0x100abb60
call fcn.100204a0
mov edi, dword [esp + 0x10]
mov ebx, eax
call fcn.10044400
mov edi, dword [esp + 0x34]
push edi
push esi
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.10023ef0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1008b55a
mov eax, dword [esp + 0x14]
push edi
push eax
push esi
call fcn.10023ff0
add esp, 0xc
test eax, eax
je 0x1008b603
test byte [eax + 0x2c], 0x20
je 0x1008b603
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x1008b603
mov ecx, dword [ebp + 0x38]
and cl, 3
cmp cl, 2
je 0x1008b552
mov ebp, dword [ebp + 0x14]
test ebp, ebp
jne 0x1008b540
test ebp, ebp
je 0x1008b603
cmp dword [ebp + 0x3c], 0
jne 0x1008b603
cmp dword [esp + 0x2c], 0
jne 0x1008b57a
movzx eax, word [ebp + 0x32]
lea edx, [eax + 1]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
lea edi, [eax + eax*2]
lea edi, [edi*4 + 0x14]
imul edi, ebx
add ecx, ecx
add ecx, ecx
add edi, ecx
mov dword [esp + 0x20], ecx
mov ecx, edi
mov dword [ebp + 0x40], eax
call fcn.10027660
mov esi, eax
test esi, esi
je 0x1008b5b5
push edi
push 0
push esi
call fcn.10003bb0
add esp, 0xc
test esi, esi
mov dword [ebp + 0x48], esi
je 0x1008b718
lea eax, [ebx + ebx*4]
lea eax, [esi + eax*4]
mov dword [ebp + 0x44], eax
add eax, dword [esp + 0x20]
test ebx, ebx
jle 0x1008b603
mov edx, dword [esp + 0x18]
add edx, edx
add edx, edx
xor ecx, ecx
jmp 0x1008b5e0
mov esi, dword [ebp + 0x48]
mov dword [esi + ecx + 8], eax
mov esi, dword [ebp + 0x48]
add eax, edx
mov dword [esi + ecx + 0xc], eax
mov esi, dword [ebp + 0x48]
add eax, edx
mov dword [esi + ecx + 0x10], eax
add eax, edx
add ecx, 0x14
sub ebx, 1
jne 0x1008b5e0
mov ecx, dword [esp + 0x10]
push ecx
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
je 0x1008b354
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push eax
call sym.SQLite.Interop.dll_sqlite3_finalize
add esp, 4
test eax, eax
jne 0x1008bb13
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
mov esi, ebx
call fcn.10030b20
mov edi, eax
add esp, 8
test edi, edi
je 0x1008b725
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
lea esi, [esp + 0x24]
mov eax, ebx
call fcn.1008ade0
mov esi, eax
add esp, 0x14
mov eax, edi
mov ecx, ebx
call fcn.10021de0
test esi, esi
jne 0x1008bb11
mov ebp, dword [esp + 0x10]
push ebp
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x1008baf5
test ebp, ebp
je 0x1008b75c
cmp dword [ebp + 0x14], 0
je 0x1008b732
cmp word [ebp + 0x54], 0
jbe 0x1008b732
mov eax, dword [ebp]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008b6c1
push eax
call dword [0x100c64a4]
add esp, 4
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x1008b77d
movzx ecx, word [edi + 0x1c]
test cl, 1
jne 0x1008b77d
movzx edx, cl
shr dl, 3
and edx, 2
mov eax, edx
or eax, ecx
test eax, 0x4000
mov word [edi + 0x1c], ax
je 0x1008b6f8
mov eax, edi
call fcn.10036000
test byte [edi + 0x1c], 2
je 0x1008b766
cmp byte [edi + 0x1e], 1
je 0x1008b70f
push 1
push edi
call fcn.100363d0
add esp, 8
mov eax, edi
call fcn.10035fb0
jmp 0x1008b772
mov edx, dword [esp + 0x10]
push edx
call sym.SQLite.Interop.dll_sqlite3_finalize
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [ebp]
test eax, eax
je 0x1008b75c
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008b74a
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebp]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov edi, 0x100abb60
jmp 0x1008b6cc
mov esi, 1
mov eax, edi
call fcn.1003fd90
cmp byte [edi + 0x1e], 1
jne 0x1008b77d
mov ebx, dword [edi + 4]
jmp 0x1008b77f
xor ebx, ebx
test ebp, ebp
je 0x1008b7d8
mov esi, dword [ebp]
test esi, esi
mov ecx, dword [ebp + 0x50]
je 0x1008b7ba
cmp byte [esi + 0x40], 0
jne 0x1008b79b
cmp ecx, 0xc0a
jne 0x1008b7b5
push 0
mov eax, 7
mov ecx, esi
call fcn.100410b0
add esp, 4
mov byte [esi + 0x40], 0
mov ecx, 7
mov eax, dword [esi + 0x38]
jmp 0x1008b7bf
mov eax, 0xff
and eax, ecx
mov dword [ebp + 0x50], eax
mov eax, dword [ebp]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008b7d8
push eax
call dword [0x100c64ac]
add esp, 4
test ebx, ebx
je 0x1008bae3
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
push esi
push ebx
call fcn.10023ef0
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
jne 0x1008b844
mov ecx, dword [esp + 0x28]
push esi
push ebx
push ecx
call fcn.10023ff0
add esp, 0xc
test eax, eax
je 0x1008bae3
test byte [eax + 0x2c], 0x20
je 0x1008bae3
mov eax, dword [eax + 8]
test eax, eax
je 0x1008b836
mov edx, dword [eax + 0x38]
and dl, 3
cmp dl, 2
je 0x1008b836
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x1008b824
test eax, eax
mov edi, eax
mov dword [esp + 0x14], eax
je 0x1008bae3
cmp dword [esp + 0x2c], 0
mov eax, dword [edi + 0x40]
mov dword [esp + 0x18], eax
je 0x1008b85b
cmp eax, 1
jg 0x1008bae3
mov eax, dword [esp + 0x1c]
cmp edi, eax
je 0x1008b870
push eax
call fcn.100126f0
add esp, 4
mov dword [esp + 0x1c], edi
test ebp, ebp
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x48]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov dword [esp + 0x20], edx
je 0x1008b8d7
cmp dword [ebp + 0x14], 0
je 0x1008b8ad
cmp word [ebp + 0x54], 1
jbe 0x1008b8ad
mov eax, dword [ebp]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008b8a5
push eax
call dword [0x100c64a4]
add esp, 4
mov edi, dword [ebp + 0x14]
add edi, 0x28
jmp 0x1008b8dc
mov eax, dword [ebp]
test eax, eax
je 0x1008b8d7
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008b8c5
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebp]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov edi, 0x100abb60
mov bl, 1
call fcn.10044860
mov edi, ebp
mov ebx, eax
call fcn.10044400
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 8]
push 0
push 0
push ecx
mov ecx, ebx
call fcn.1001fdb0
add esp, 0xc
test ebp, ebp
je 0x1008b95d
cmp dword [ebp + 0x14], 0
je 0x1008b933
cmp word [ebp + 0x54], 2
jbe 0x1008b933
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x1008b92b
push eax
call dword [0x100c64a4]
add esp, 4
mov edi, dword [ebp + 0x14]
add edi, 0x50
jmp 0x1008b962
mov eax, dword [ebp]
test eax, eax
je 0x1008b95d
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008b94b
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebp]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov edi, 0x100abb60
mov bl, 1
call fcn.10044860
mov edi, ebp
mov ebx, eax
call fcn.10044400
mov eax, dword [esp + 0x18]
push 0
push 0
push eax
mov eax, dword [esi + 0xc]
mov ecx, ebx
call fcn.1001fdb0
add esp, 0xc
test ebp, ebp
je 0x1008b9df
cmp dword [ebp + 0x14], 0
je 0x1008b9b5
cmp word [ebp + 0x54], 3
jbe 0x1008b9b5
mov ecx, dword [ebp]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1008b9ad
push eax
call dword [0x100c64a4]
add esp, 4
mov edi, dword [ebp + 0x14]
add edi, 0x78
jmp 0x1008b9e4
mov eax, dword [ebp]
test eax, eax
je 0x1008b9df
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008b9cd
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebp]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov edi, 0x100abb60
mov bl, 1
call fcn.10044860
mov edi, ebp
mov ebx, eax
call fcn.10044400
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
push 0
push 0
push edx
mov ecx, ebx
call fcn.1001fdb0
add esp, 0xc
test ebp, ebp
je 0x1008ba64
cmp dword [ebp + 0x14], 0
je 0x1008ba3a
cmp word [ebp + 0x54], 4
jbe 0x1008ba3a
mov eax, dword [ebp]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008ba2f
push eax
call dword [0x100c64a4]
add esp, 4
mov edi, dword [ebp + 0x14]
add edi, 0xa0
jmp 0x1008ba69
mov eax, dword [ebp]
test eax, eax
je 0x1008ba64
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1008ba52
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebp]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov edi, 0x100abb60
test byte [edi + 0x1c], 0x10
jne 0x1008ba7e
mov bl, 1
call fcn.10044860
test eax, eax
jne 0x1008ba7e
xor esi, esi
jmp 0x1008ba8c
test word [edi + 0x1c], 0x4000
mov esi, dword [edi + 0x18]
je 0x1008ba8c
add esi, dword [edi + 0x10]
mov edi, ebp
call fcn.10044400
mov edi, dword [esp + 0x20]
lea ebx, [esi + 2]
mov dword [edi + 4], esi
mov esi, dword [esp + 0x28]
mov ecx, ebx
call fcn.10027660
mov esi, eax
test esi, esi
je 0x1008baba
push ebx
push 0
push esi
call fcn.10003bb0
add esp, 0xc
test esi, esi
mov dword [edi], esi
je 0x1008bb1b
mov ecx, dword [edi + 4]
push ecx
push 4
push ebp
call sym.SQLite.Interop.dll_sqlite3_column_blob
mov edx, dword [edi]
add esp, 8
push eax
push edx
call fcn.10008750
mov eax, dword [esp + 0x20]
add esp, 0xc
add dword [eax + 0x3c], 1
push ebp
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
je 0x1008b690
push ebp
call sym.SQLite.Interop.dll_sqlite3_finalize
mov esi, eax
add esp, 4
test esi, esi
jne 0x1008bb11
mov eax, dword [esp + 0x1c]
push eax
call fcn.100126f0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push ebp
call sym.SQLite.Interop.dll_sqlite3_finalize
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x14
ret