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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [0x101d2014]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0x78], eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 0xc]
mov eax, dword [eax + 0xc]
shl ecx, 4
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
push dword [ebx + 0x51c]
call sym.nss3.dll_sqlite3_free
add esp, 4
lea edx, [ebx + 0x14]
lea ecx, [ebx + 0x530]
lea eax, [ebx + 0x10]
mov dword [ebx + 0x51c], 0
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], ecx
lea edx, [ebx + 0x538]
lea ecx, [ebx + 0x524]
mov dword [esp + 4], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x44]
cmp dword [eax], 0
je 0x100c804f
mov eax, dword [ebx + 0x510]
cmp byte [ebx + 9], 0
lea esi, [eax + eax*4]
jne 0x100c7f02
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov dword [ebx + 0x54c], ecx
mov dword [ebx + 0x548], ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov edx, dword [esp + 4]
mov dword [esp + 0x14], esi
lea edi, [edx + esi*8]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x14]
mov dword [esp + 8], edi
cmp eax, ecx
jge 0x100c8111
lea esi, [edx + esi*8 + 0x14]
mov edx, dword [esi + 8]
lea ebx, [eax + eax*2]
lea edi, [edx + ebx*8 + 0x14]
mov eax, dword [edi]
cmp eax, dword [edi - 0xc]
jl 0x100c7f52
mov edi, dword [esp + 8]
cmp dword [esi + 0xc], 0
mov eax, dword [edi + 8]
jne 0x100c84a9
inc eax
mov dword [edi + 8], eax
cmp eax, dword [esi]
jl 0x100c7f23
jmp 0x100c814c
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
cmp byte [eax + 9], 0
jne 0x100c7f93
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x28]
mov dword [esp], eax
mov ecx, dword [ebp + 8]
inc dword [ecx + 0x524]
call fcn.100c8c90
mov eax, dword [edi - 0xc]
dec eax
cmp dword [edi], eax
jge 0x100c7fc4
mov eax, dword [esp]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
add eax, 0xfffffffc
mov dword [esp + 0xc], ecx
jmp 0x100c7ff0
mov ecx, eax
mov eax, dword [eax + 0xc]
inc eax
mov dword [ecx + 0xc], eax
cmp byte [ecx + 0xa], 0
jne 0x100c802a
call fcn.10028170
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
cmp byte [edx + 9], 0
mov ecx, dword [eax + 0x28]
mov dword [esp], ecx
jne 0x100c87d3
jmp 0x100c7f69
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov eax, dword [eax + ebx*8 + 0x10]
mov ecx, eax
sar ecx, 0x1f
add dword [edx], eax
adc dword [edx + 4], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esp]
mov ecx, dword [esp + 0x4c]
sub eax, dword [edx + ebx*8 + 0x10]
mov dword [esp + 0xc], ecx
add eax, 0xfffffffc
mov ecx, eax
mov dword [esp], eax
sar ecx, 0x1f
mov eax, dword [esp]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xc]
add dword [ecx], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
adc dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esp], eax
inc eax
mov dword [edi], eax
cmp byte [ecx + 9], 0
jne 0x100c7f2f
jmp 0x100c8831
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + 0x28]
mov dword [esp], ecx
mov ecx, dword [esp + 0x1c]
dec eax
mov dword [ecx + 0xc], eax
jne 0x100c7f69
call fcn.10028200
jmp 0x100c7f69
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov dword [ebx + 0x54c], ecx
mov dword [ebx + 0x548], ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
push dword [ebx + 4]
call sym.nss3.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x100c87df
mov edi, dword [ebx + 4]
xor edx, edx
inc edx
mov ecx, edi
call fcn.1000cae0
mov ecx, eax
call fcn.1000a8b0
mov ecx, edi
mov esi, eax
call fcn.1000cb60
mov edi, dword [esp + 0x3c]
cmp dword [edi + 0x18], 0
je 0x100c87df
mov ecx, dword [edi + 0xcc]
call dword [section..00cfg]
xor eax, eax
push eax
push dword [esp + 0x48]
push esi
push edi
call ecx
add esp, 0x10
mov edi, eax
xor eax, eax
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x18], eax
cmp byte [ebx + 9], 0
jne 0x100c80f8
push 0x101bd157
call sym.nss3.dll_sqlite3_mprintf
add esp, 4
test eax, eax
mov ecx, 7
mov dword [ebx + 0x1c], eax
cmove edi, ecx
mov dword [ebx + 0x510], 0
mov dword [ebx + 0x524], 1
jmp 0x100c81ef
cmp dword [edx + esi*8 + 0x20], 0
je 0x100c814c
cmp eax, ecx
jg 0x100c814c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x510]
lea edx, [eax + 1]
cmp eax, 0x1f
mov dword [ebx + 0x510], edx
jge 0x100c8805
mov eax, dword [edi + 8]
cmp eax, ecx
jne 0x100c8170
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx*8 + 0x20]
jmp 0x100c8183
mov ecx, edi
call fcn.100c8bf0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x510]
test eax, eax
jle 0x100c84b0
dec eax
mov dword [ebx + 0x510], eax
jmp 0x100c7ec0
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x14]
lea eax, [eax + eax*2]
mov ecx, dword [ecx + edx*8 + 0x1c]
lea eax, [ecx + eax*8 + 4]
mov esi, dword [eax]
lea eax, [edi + 0x2c]
mov dword [esp], eax
mov dword [edi + 0x28], esi
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi + 0xcc]
call dword [section..00cfg]
xor eax, eax
push eax
push dword [esp + 4]
push esi
mov esi, dword [esp + 0x14]
push edi
call ecx
add esp, 0x10
mov edi, eax
xor eax, eax
inc dword [ebx + 0x524]
mov dword [esi + 0x30], eax
cmp byte [ebx + 9], 0
jne 0x100c81ec
push dword [esi + 8]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x18]
push dword [eax + ecx*8 + 0xc]
push str._s_.3x_
call sym.nss3.dll_sqlite3_mprintf
add esp, 0xc
test eax, eax
mov ecx, 7
mov dword [esi + 0x34], eax
cmove edi, ecx
inc dword [esi + 8]
test edi, edi
jne 0x100c87f0
mov esi, dword [ebx + 4]
mov eax, dword [ebx + 0x510]
xor edx, edx
mov dword [esp + 0x30], 0
mov ecx, esi
lea edi, [eax + eax*4]
call fcn.1000cae0
push eax
call sym.nss3.dll_sqlite3_value_text
add esp, 4
mov ecx, esi
mov dword [esp + 8], eax
call fcn.1000cb60
mov eax, dword [esp + 8]
mov dword [esp], edi
mov edx, 0x64
mov dword [ebx + 0x518], eax
mov eax, dword [esp + 4]
lea esi, [eax + edi*8 + 0x10]
mov eax, dword [esi - 0x10]
mov dword [esp + 0xc], esi
mov dword [ebx + 0x514], eax
cmp eax, 1
mov ecx, dword [esi - 0xc]
mov edi, dword [ecx + 4]
mov ecx, 0
cmove ecx, edx
mov bl, byte [edi + ecx]
mov dword [esp + 8], edi
cmp bl, 9
mov byte [esi], bl
jg 0x100c8364
cmp bl, 2
je 0x100c8280
cmp bl, 5
jne 0x100c8322
mov bl, 1
mov edx, 0xc
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 8]
cmp eax, 1
lea ebx, [edx + 0x64]
mov eax, dword [esp + 4]
cmovne ebx, edx
mov edx, dword [esp]
mov dword [esp + 0x64], ebx
movzx esi, word [edi + ecx + 3]
lea eax, [eax + edx*8 + 0x14]
mov dword [esp + 0x18], eax
shl esi, 0x10
bswap esi
mov dword [eax], esi
mov dword [eax + 0x10], 0
lea edx, [ebx + esi*2]
movzx eax, word [edi + ecx + 5]
shl eax, 0x10
bswap eax
sub eax, edx
movzx edx, byte [edi + ecx + 7]
add eax, edx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 4]
mov edx, dword [edx + 0x24]
mov dword [esp + 0x14], edx
movzx edx, word [edi + ecx + 1]
shl edx, 0x10
bswap edx
test edx, edx
je 0x100c8447
cmp edx, dword [esp + 0x14]
jge 0x100c8322
mov ebx, dword [esp + 8]
movzx edi, word [ebx + edx + 2]
shl edi, 0x10
bswap edi
add eax, edi
movzx edi, word [ebx + edx]
add edx, 4
shl edi, 0x10
bswap edi
cmp edi, edx
mov edx, edi
jge 0x100c82ec
test edi, edi
mov edx, edi
je 0x100c82ec
mov ebx, dword [esp + 4]
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
lea ecx, [ebx + eax*8]
mov byte [edx], 0
call fcn.100c8c40
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.100c8c90
mov eax, dword [esp + 0xc]
mov cl, byte [eax]
cmp cl, 9
jg 0x100c837d
mov edx, dword [esp]
mov eax, str.internal
cmp cl, 2
je 0x100c8393
cmp cl, 5
je 0x100c8393
jmp 0x100c849f
mov edx, 8
cmp bl, 0xa
je 0x100c828b
cmp bl, 0xd
je 0x100c828b
jmp 0x100c8322
mov edx, dword [esp]
cmp cl, 0xd
je 0x100c838e
cmp cl, 0xa
jne 0x100c849f
mov eax, str.leaf
mov dword [edi + 0x520], eax
mov eax, dword [ebx + edx*8 + 0x14]
add dword [edi + 0x528], eax
mov eax, dword [ebx + edx*8 + 0x18]
mov ecx, eax
sar ecx, 0x1f
add dword [edi + 0x530], eax
adc dword [edi + 0x534], ecx
mov eax, dword [ebx + edx*8 + 0x24]
cmp eax, dword [edi + 0x52c]
jle 0x100c83ca
mov dword [edi + 0x52c], eax
xor esi, esi
cmp byte [edi + 9], 0
lea ebx, [ebx + edx*8 + 0x14]
mov edi, 0
jne 0x100c840c
mov eax, dword [esp + 4]
push dword [eax + edx*8 + 0xc]
push 0x101aef39
call sym.nss3.dll_sqlite3_mprintf
mov edx, dword [esp + 8]
add esp, 8
mov ecx, dword [ebp + 8]
test eax, eax
mov edi, 0
mov dword [ecx + 0x51c], eax
mov ecx, 7
cmove edi, ecx
mov eax, dword [ebx]
test eax, eax
jle 0x100c8424
mov ecx, dword [esp + 4]
xor esi, esi
mov ecx, dword [ecx + edx*8 + 0x1c]
add esi, dword [ecx]
add ecx, 0x18
dec eax
jne 0x100c841c
mov ebx, dword [ebp + 8]
mov eax, esi
sar eax, 0x1f
add dword [ebx + 0x538], esi
adc dword [ebx + 0x53c], eax
cmp byte [ebx + 9], 0
jne 0x100c7ec0
jmp 0x100c87f0
mov ebx, dword [esp + 4]
mov edx, dword [esp]
mov dword [ebx + edx*8 + 0x18], eax
xor eax, eax
cmp byte [esp + 0x30], 0
je 0x100c846f
mov eax, dword [esp + 8]
push dword [eax + ecx + 8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
mov edx, dword [esp + 4]
add esp, 4
mov edi, dword [ebp + 8]
test esi, esi
mov dword [ebx + edx*8 + 0x20], eax
je 0x100c833b
mov esi, dword [esp + 0x1c]
cmp byte [esi + 9], 0
je 0x100c84bf
inc dword [esi + 0xc]
mov al, 1
cmp byte [esi + 0xa], 0
jne 0x100c84c1
mov ecx, esi
call fcn.10028170
mov al, byte [esi + 9]
jmp 0x100c84c1
mov eax, 0x101b2db1
jmp 0x100c8393
mov ecx, dword [esi]
jmp 0x100c8118
cmp byte [ebx + 9], 0
je 0x100c7ec0
jmp 0x100c88da
xor eax, eax
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x28]
sub edx, dword [ecx + 0x24]
test al, al
mov dword [esp + 0x24], edx
je 0x100c84de
dec dword [esi + 0xc]
jne 0x100c84de
mov ecx, esi
call fcn.10028200
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
call sym.nss3.dll_sqlite3_initialize
test eax, eax
jne 0x100c88b7
lea eax, [esi + esi*2]
xor edx, edx
lea ecx, [eax*8 + 0x18]
call fcn.10002c70
mov ecx, dword [esp]
test eax, eax
mov dword [ebx + ecx*8 + 0x1c], eax
je 0x100c88d0
mov esi, dword [esp + 0x18]
mov ecx, dword [esi]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx*8 + 0x18]
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi], 0
jle 0x100c833b
mov edi, dword [esp + 0x24]
mov eax, dword [esp]
add edi, dword [esp + 0x14]
lea eax, [ebx + eax*8 + 0x1c]
mov ebx, 0x80808081
mov dword [esp + 0x60], eax
lea ecx, [edi - 0xc]
mov dword [esp + 0x24], edi
mov esi, ecx
shl ecx, 6
shl esi, 5
mov eax, esi
imul ebx
add edx, esi
lea esi, [edi - 4]
mov eax, edx
sar edx, 7
mov dword [esp + 0x28], esi
shr eax, 0x1f
lea eax, [edx + eax - 0x17]
mov dword [esp + 0x58], eax
mov eax, ecx
imul ebx
add edx, ecx
xor ecx, ecx
mov eax, edx
sar edx, 7
shr eax, 0x1f
lea eax, [edx + eax - 0x17]
lea edx, [edi - 0x23]
mov dword [esp + 0x50], edx
lea edx, [edi - 5]
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 8]
mov dword [esp + 0x2c], ecx
lea eax, [edx + ecx*2]
movzx esi, word [esi + eax]
shl esi, 0x10
bswap esi
cmp esi, edx
jb 0x100c8322
cmp esi, dword [esp + 0x14]
jge 0x100c8322
mov eax, dword [esp + 0x60]
cmp byte [esp + 0x30], 0
mov edi, dword [eax]
mov dword [esp + 0x10], edi
je 0x100c85f8
mov eax, dword [esp + 8]
push dword [eax + esi]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ecx, dword [esp + 0x2c]
add esi, 4
lea ecx, [ecx + ecx*2]
mov dword [edi + ecx*8 + 4], eax
mov eax, dword [esp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 4]
mov cl, byte [eax]
cmp cl, 5
jne 0x100c861c
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
inc ecx
cmp ecx, dword [eax]
jl 0x100c85a0
jmp 0x100c833b
mov edi, dword [esp + 8]
movzx eax, byte [edi + esi]
test al, al
js 0x100c87bc
mov dword [esp + 0x74], eax
mov al, 1
movzx eax, al
add esi, eax
cmp cl, 0xd
jne 0x100c864d
lea ecx, [edi + esi]
lea edx, [esp + 0x68]
call fcn.10026980
movzx eax, al
add esi, eax
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x18]
cmp edx, dword [eax + 0x10]
jbe 0x100c8661
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x5c], edx
cmp byte [eax], 0xd
mov eax, edx
cmove ecx, dword [esp + 0x50]
sub eax, ebx
cdq
idiv dword [esp + 0x28]
mov edi, edx
add edi, ebx
cmp edi, ecx
cmovg edi, ebx
test edi, edi
js 0x100c8322
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x5c]
lea edx, [eax + eax*2]
mov dword [ecx + edx*8], edi
mov ecx, ebx
sub ecx, edi
jbe 0x100c87b0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], edx
xor edx, edx
add eax, ecx
div dword [esp + 0x28]
test ebx, ebx
js 0x100c8322
add edi, esi
cmp edi, dword [esp + 0x24]
jg 0x100c8322
lea edx, [eax - 1]
mov ebx, dword [esp + 0x10]
mov esi, eax
imul edx, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [esp + 0x20]
mov dword [ebx + edx*8 + 0x10], ecx
mov dword [ebx + edx*8 + 8], eax
call sym.nss3.dll_sqlite3_initialize
test eax, eax
jne 0x100c88c4
lea ecx, [esi*4]
xor edx, edx
mov dword [esp + 0x40], esi
call fcn.10002c70
mov esi, eax
mov eax, dword [esp + 0x20]
test esi, esi
mov dword [ebx + eax*8 + 0xc], esi
je 0x100c88d0
mov eax, dword [esp + 8]
push dword [eax + edi]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x40]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
cmp edx, 2
jl 0x100c87b0
xor esi, esi
lea ebx, [ecx + eax*8 + 0xc]
inc esi
mov eax, dword [ebx]
mov eax, dword [eax + esi*4 - 4]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov edi, dword [eax]
mov ecx, dword [edi + 0xcc]
call dword [section..00cfg]
xor eax, eax
push eax
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x18]
push edi
call ecx
add esp, 0x10
test eax, eax
jne 0x100c87ee
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 4]
push dword [eax]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ecx, dword [ebx]
mov dword [ecx + esi*4], eax
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x100c87a7
call fcn.10025e10
mov edx, dword [esp + 0x40]
inc esi
cmp esi, edx
jne 0x100c8749
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 4]
jmp 0x100c860a
lea ecx, [edi + esi]
lea edx, [esp + 0x74]
call fcn.1003ab70
mov ecx, dword [esp + 0xc]
mov cl, byte [ecx]
jmp 0x100c8632
mov eax, edx
mov ecx, edx
mov eax, dword [eax + 0xc]
jmp 0x100c803b
mov byte [ebx + 8], 1
push dword [ebx + 4]
call sym.nss3.dll_sqlite3_reset
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.10192ef0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, ebx
call fcn.100c8a60
push 0x101b128f
push 0x31782
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov edi, 0xb
jmp 0x100c87f0
mov edi, dword [ebp + 8]
xor edx, edx
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.1000cae0
push eax
call sym.nss3.dll_sqlite3_value_text
add esp, 4
mov ecx, esi
mov dword [esp + 0xc], eax
call fcn.1000cb60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
mov dword [edi + 0x518], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + ebx*8 + 0xc]
mov eax, dword [eax + ecx*4]
mov dword [edi + 0x514], eax
mov dword [edi + 0x520], 0x101ac9a6
push ecx
mov eax, dword [esp + 0xc]
push dword [eax + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
push dword [eax + ecx*8 + 0xc]
push str._s_.3x_.6x
call sym.nss3.dll_sqlite3_mprintf
add esp, 0x10
mov dword [edi + 0x51c], eax
test eax, eax
mov edi, 7
mov ecx, 0
cmovne edi, ecx
jmp 0x100c87f0
mov eax, dword [esp]
mov dword [ebx + eax*8 + 0x1c], 0
jmp 0x100c88d0
mov eax, dword [esp + 0x20]
mov dword [ebx + eax*8 + 0xc], 0
mov edi, 7
jmp 0x100c87f0
xor edi, edi
jmp 0x100c87f0