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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x42], 1
jne 0x1001ba09
mov dl, byte [edi + 0x40]
test dl, 2
je 0x1001ba09
cmp byte [edi + 0x45], 0
je 0x1001ba09
mov eax, dword [edi + 0x10]
mov esi, dword [ebp + 0x10]
mov ecx, dword [edi + 0x14]
cmp eax, esi
jne 0x1001b9e7
cmp ecx, dword [ebp + 0x14]
jne 0x1001b9e7
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dl, 8
je 0x1001ba09
cmp ecx, dword [ebp + 0x14]
jg 0x1001ba09
jl 0x1001b9f7
cmp eax, esi
jae 0x1001ba09
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1001ba72
mov ecx, dword [eax]
movzx edx, word [ecx + 8]
movzx esi, word [ecx + 6]
add edx, esi
cmp edx, 0xd
jg 0x1001ba64
mov esi, dword [ecx + 0x10]
cmp byte [esi], 0
mov edx, dword [eax + 4]
movzx edx, word [edx + 8]
je 0x1001ba38
mov word [eax + 0xc], 0xff01
jmp 0x1001ba3e
mov word [eax + 0xc], 0x1ff
test dl, 4
je 0x1001ba51
mov dword [esp + 0xc], 0x100288c0
mov byte [eax + 0xb], 0
jmp 0x1001ba7a
test dl, 0x19
jne 0x1001ba64
cmp dword [ecx + 0x14], 0
mov dword [esp + 0xc], 0x10028ab0
je 0x1001ba6c
mov dword [esp + 0xc], 0x100288a0
mov byte [eax + 0xb], 0
jmp 0x1001ba7a
mov dword [esp + 0xc], 0
mov esi, edi
call fcn.1001b5b0
test eax, eax
jne 0x1001be9f
cmp byte [edi + 0x42], al
jne 0x1001baa0
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 1
sub ecx, dword [ebp + 0x18]
mov dword [esp + 0x24], ecx
lea esp, [esp]
movsx eax, byte [edi + 0x44]
mov ebx, dword [edi + eax*4 + 0x78]
movzx esi, word [ebx + 0x12]
dec esi
mov dword [esp + 0x14], esi
sar esi, cl
cmp dword [esp + 0xc], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], 0
mov word [edi + eax*2 + 0x50], si
jne 0x1001bbc5
nop
mov eax, dword [ebx + 0x40]
mov cx, word [eax + esi*2]
mov dh, cl
mov dl, ch
movzx ecx, word [ebx + 0x14]
movzx eax, dx
and eax, ecx
add eax, dword [ebx + 0x44]
cmp byte [ebx + 3], 0
je 0x1001bb14
cmp byte [eax], 0x80
jb 0x1001bb13
mov ecx, dword [ebx + 0x3c]
inc eax
cmp eax, ecx
jae 0x1001bdee
cmp byte [eax], 0x80
jae 0x1001bb05
inc eax
lea edi, [esp + 0x28]
call fcn.10007c60
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
cmp ecx, dword [ebp + 0x14]
jg 0x1001bb7f
jl 0x1001bb31
cmp edx, dword [ebp + 0x10]
jae 0x1001bb73
mov eax, dword [esp + 0x14]
lea ecx, [esi + 1]
mov dword [esp + 0x10], ecx
cmp ecx, eax
jle 0x1001bb8e
or ebx, 0xffffffff
mov edx, dword [esp + 0x1c]
cmp byte [edx + 4], 0
jne 0x1001be57
mov esi, dword [esp + 0x10]
mov ebx, edx
movzx eax, word [ebx + 0x12]
cmp esi, eax
jl 0x1001bda2
movzx ecx, byte [ebx + 5]
mov edx, dword [ebx + 0x38]
mov ecx, dword [ecx + edx + 8]
jmp 0x1001bdbc
cmp ecx, dword [ebp + 0x14]
jl 0x1001bb9f
jg 0x1001bb7f
cmp edx, dword [ebp + 0x10]
jbe 0x1001bb9f
mov ecx, dword [esp + 0x10]
lea eax, [esi - 1]
mov dword [esp + 0x14], eax
cmp ecx, eax
jg 0x1001bb98
lea esi, [eax + ecx]
sar esi, 1
jmp 0x1001bae0
mov ebx, 1
jmp 0x1001bb43
mov eax, dword [ebp + 8]
or byte [eax + 0x40], 2
mov dword [eax + 0x14], ecx
movsx ecx, byte [eax + 0x44]
mov dword [eax + 0x10], edx
mov word [eax + ecx*2 + 0x50], si
cmp byte [ebx + 4], 0
jne 0x1001be18
mov dword [esp + 0x10], esi
jmp 0x1001bb57
mov edx, dword [ebx + 0x40]
mov ax, word [edx + esi*2]
movzx edx, word [ebx + 0x14]
mov ch, al
mov cl, ah
movzx eax, cx
and eax, edx
add eax, dword [ebx + 0x44]
movzx edx, byte [ebx + 7]
movzx ecx, byte [eax]
cmp ecx, edx
jg 0x1001bbfc
mov edx, dword [ebp + 0xc]
push edx
inc eax
push eax
push ecx
call dword [esp + 0x18]
add esp, 0xc
mov ebx, eax
jmp 0x1001bd6a
mov dl, byte [eax + 1]
test dl, dl
js 0x1001bc2d
and ecx, 0x7f
movzx edx, dl
shl ecx, 7
add ecx, edx
movzx edx, word [ebx + 0xa]
cmp ecx, edx
jg 0x1001bc2d
mov edx, dword [ebp + 0xc]
push edx
add eax, 2
push eax
push ecx
call dword [esp + 0x18]
add esp, 0xc
mov ebx, eax
jmp 0x1001bd6a
movzx ecx, byte [ebx + 6]
mov edi, dword [ebp + 8]
mov edx, dword [ebx + 0x50]
add edi, 0x10
push edi
sub eax, ecx
push eax
push ebx
call edx
mov edi, dword [edi]
add esp, 0xc
mov dword [esp + 0x20], edi
cmp edi, 2
jl 0x1001be25
lea eax, [edi + 0x12]
cdq
mov edi, eax
or eax, edx
je 0x1001be45
test edx, edx
ja 0x1001be45
jb 0x1001bc77
cmp edi, 0x7fffff00
jae 0x1001be45
cmp dword [0x100d33d0], 0
je 0x1001bd4b
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x1001bc97
push eax
call dword [0x100d3428]
add esp, 4
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.10003ca0
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x1001bcb5
push eax
call dword [0x100d3430]
add esp, 4
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1001be45
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x20]
movsx ecx, byte [eax + 0x44]
push 2
push edi
push edx
push 0
push eax
mov word [eax + ecx*2 + 0x50], si
call fcn.1001b1a0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1001be4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x20]
push eax
push edi
push ecx
call dword [esp + 0x18]
add esp, 0xc
cmp dword [0x100d33d0], 0
mov ebx, eax
je 0x1001bd60
mov eax, dword [0x100d8cc0]
test eax, eax
je 0x1001bd19
push eax
call dword [0x100d3428]
add esp, 4
push edi
call dword [0x100d3404]
sub dword [0x100d8b08], eax
dec dword [0x100d8b2c]
add esp, 4
push edi
call dword [0x100d33fc]
mov eax, dword [0x100d8cc0]
add esp, 4
test eax, eax
je 0x1001bd6a
push eax
call dword [0x100d3430]
jmp 0x1001bd67
push edi
call dword [0x100d33f8]
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
jmp 0x1001bcb9
push edi
call dword [0x100d33fc]
add esp, 4
test ebx, ebx
jns 0x1001bd7b
mov eax, dword [esp + 0x14]
lea ecx, [esi + 1]
mov dword [esp + 0x10], ecx
jmp 0x1001bd8c
jle 0x1001be6c
mov ecx, dword [esp + 0x10]
lea eax, [esi - 1]
mov dword [esp + 0x14], eax
cmp ecx, eax
jg 0x1001bb43
mov ebx, dword [esp + 0x1c]
lea esi, [eax + ecx]
sar esi, 1
jmp 0x1001bbc5
mov eax, dword [ebx + 0x40]
mov cx, word [eax + esi*2]
mov dh, cl
mov dl, ch
movzx ecx, word [ebx + 0x14]
movzx eax, dx
mov edx, dword [ebx + 0x38]
and eax, ecx
mov ecx, dword [eax + edx]
mov eax, dword [ebp + 8]
movsx edx, byte [eax + 0x44]
mov si, word [esp + 0x10]
bswap ecx
push ecx
mov word [eax + edx*2 + 0x50], si
call fcn.1001b530
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1001be90
mov ecx, dword [esp + 0x24]
mov edi, dword [ebp + 8]
jmp 0x1001bab0
push 0x100c0d50
push 0xee15
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.SQLite3Encrypt.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
xor ebx, ebx
jmp 0x1001be90
push 0x100c0d50
push 0xee5e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.SQLite3Encrypt.dll_sqlite3_log
add esp, 0x14
jmp 0x1001be8b
mov ebx, 7
jmp 0x1001be90
push edi
call sym.SQLite3Encrypt.dll_sqlite3_free
add esp, 4
jmp 0x1001be90
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 0x44]
mov edx, dword [ebp + 0x1c]
mov word [eax + ecx*2 + 0x50], si
mov dword [edx], ebx
xor ebx, ebx
jmp 0x1001be90
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 0x44]
xor ebx, ebx
mov word [eax + ecx*2 + 0x50], si
cmp byte [edx + 0xb], bl
je 0x1001be90
mov ebx, 0xb
mov eax, dword [ebp + 8]
xor ecx, ecx
and byte [eax + 0x40], 0xf9
mov word [eax + 0x22], cx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret