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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
movsx eax, byte [ecx + 0x44]
cmp eax, 0x13
jge 0x1000c089
mov esi, ecx
xor ecx, ecx
mov word [esi + 0x32], cx
and byte [esi + 1], 0xf9
movzx edi, word [esi + 0x46]
mov word [esi + eax*2 + 0x48], di
mov eax, dword [esi + 0x74]
movsx edi, byte [esi + 0x44]
mov dword [esi + edi*4 + 0x78], eax
mov word [esi + 0x46], cx
inc byte [esi + 0x44]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], edx
cmp dword [eax + 0x30], edx
jb 0x1000c0b1
movzx ecx, byte [esi + 2]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax + 0xdc]
cmp ecx, fcn.10143300
jne 0x1000c0bd
cmp dword [ebp - 0x18], 0
je 0x1000c0e3
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xe4]
movzx ebx, byte [eax + 0x29]
mov dword [ebp - 0x28], ebx
and ebx, 3
mov ecx, dword [0x101f10a0]
mov dword [ebp - 0x20], eax
mov edi, dword [eax + 0x34]
cmp ecx, 0x1000d6a0
jne 0x1000c11d
mov ecx, dword [edi + 0x38]
mov eax, dword [ebp - 0x18]
xor edx, edx
div dword [edi + 0x34]
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x1000bd91
mov ecx, dword [ebp - 0x18]
cmp dword [eax + 8], ecx
je 0x1000be56
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x1000bd81
test bl, bl
je 0x1000bdbd
mov ecx, edi
mov edx, dword [ebp - 0x18]
push ebx
call fcn.10006f30
add esp, 4
test eax, eax
jne 0x1000be5d
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xe4]
mov dword [ebp - 0x20], eax
mov al, byte [eax + 0x29]
mov dword [ebp - 0x28], eax
mov edi, 7
cmp byte [ebp - 0x28], 2
mov ebx, dword [ebp - 0x20]
je 0x1000c15e
mov ecx, dword [0x101f109c]
mov edi, dword [ebx + 0x34]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
cmp eax, dword [ebx + 0x1c]
jle 0x1000be2e
mov edi, dword [ebx + 8]
test edi, edi
je 0x1000c181
mov eax, dword [edi + 0x20]
or eax, dword [edi + 0x24]
jne 0x1000c049
test byte [edi + 0x1c], 8
jne 0x1000c049
mov dword [ebx + 8], edi
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax + 0x30]
call dword [section..00cfg]
push edi
push ebx
mov ebx, dword [ebp - 0x20]
call ecx
add esp, 8
test eax, eax
jne 0x1000c1aa
mov ecx, dword [0x101f10a0]
mov edi, dword [ebx + 0x34]
call dword [section..00cfg]
push 2
push dword [ebp - 0x18]
push edi
call ecx
add esp, 0xc
mov edi, 7
test eax, eax
jne 0x1000be5d
jmp 0x1000c15e
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x1000bed6
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xe4]
mov edi, dword [eax + 4]
cmp dword [edi], 0
je 0x1000bf4c
add dword [ecx + 0x10], 1
adc dword [ecx + 0x14], 0
add dword [edi + 0x20], 1
adc dword [edi + 0x24], 0
mov dword [ebp - 0x14], edi
test byte [ebp - 0x24], 1
jne 0x1000bef7
cmp dword [edi + 0x14], 0
je 0x1000bef7
mov eax, dword [ebp - 0x1c]
inc dword [eax + 0xc8]
mov ecx, dword [edi + 8]
mov dword [esi + 0x74], ecx
cmp byte [ecx], 0
je 0x1000bf5f
cmp word [ecx + 0x18], 0
je 0x1000c051
mov al, byte [ecx + 1]
xor edi, edi
cmp al, byte [esi + 0x45]
jne 0x1000c051
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [eax + 0x1c]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
mov dword [ecx + 0x1c], edx
mov dword [eax + 0x18], 0
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x2c]
jmp 0x1000be5d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0xa4], eax
je 0x1000c132
mov dword [edi + 0x14], ecx
mov eax, dword [ecx + 0x40]
cmp dword [eax], 0
je 0x1000bfa4
test byte [ebp - 0x24], 1
jne 0x1000bfa4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x1c], eax
jb 0x1000bfa4
mov eax, dword [ebp - 0x1c]
inc dword [eax + 0xcc]
mov ecx, edi
call fcn.10006910
test eax, eax
je 0x1000be9a
mov ebx, eax
jmp 0x1000c155
mov edx, dword [ebp - 0x18]
push eax
call fcn.100068b0
add esp, 4
mov edi, eax
jmp 0x1000be82
mov eax, dword [edi + 8]
mov edx, dword [ebp - 0x18]
cmp dword [eax + 4], edx
je 0x1000bf8f
mov ecx, dword [edi + 4]
mov dword [eax + 0x38], ecx
mov dword [eax + 0x48], edi
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x34], ecx
mov dword [eax + 4], edx
xor ecx, ecx
cmp edx, 1
mov edx, 0x64
cmovne edx, ecx
mov byte [eax + 9], dl
mov ecx, dword [esi + 0x74]
call fcn.10006c20
test eax, eax
jne 0x1000c1b7
mov ecx, dword [esi + 0x74]
jmp 0x1000bea9
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0xa0], eax
jb 0x1000c1be
test byte [ebp - 0x24], 1
je 0x1000c00d
mov ecx, dword [0x101f42bc]
test ecx, ecx
jne 0x1000c1d7
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx + 0x20], eax
jae 0x1000c03c
mov eax, dword [ebx + 0x68]
test eax, eax
jle 0x1000bfff
xor ecx, ecx
mov ebx, 0x14
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x64]
mov edx, dword [ebp - 0x18]
cmp dword [ecx + ebx], edx
jae 0x1000c028
mov ecx, dword [ebp - 0x24]
inc ecx
add ebx, 0x30
cmp ecx, eax
jl 0x1000bfe3
mov ecx, dword [0x101f42c0]
test ecx, ecx
jne 0x1000c1e4
mov eax, dword [ebp - 0x1c]
push dword [eax + 0xa8]
push 0
push dword [edi + 4]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x1000be9a
mov ecx, dword [ecx + ebx - 4]
mov edx, dword [ebp - 0x18]
call fcn.1013b050
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x68]
jmp 0x1000bff4
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebp - 0x18]
call fcn.1013b050
jmp 0x1000bfd5
mov edi, dword [edi + 0x2c]
jmp 0x1000bdec
push 0x101db30a
push 0x115ab
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
mov eax, dword [esi + 0x74]
test eax, eax
je 0x1000c106
mov ecx, dword [eax + 0x48]
call fcn.10157e40
jmp 0x1000c106
push 0x101db30a
push 0x1213e
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 0x1000bec2
push 0x101db30a
push 0x11596
jmp 0x1000c0ed
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push dword [ebp - 0x24]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call ecx
add esp, 0x10
mov edi, eax
test eax, eax
jne 0x1000c106
mov edi, dword [ebp - 0x14]
jmp 0x1000be9a
push 0x101db30a
push 0xef2f
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
mov al, byte [esi + 0x44]
dec al
mov byte [esi + 0x44], al
movsx eax, al
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
jmp 0x1000bec2
call dword [section..00cfg]
push ebx
push dword [ebp - 0x18]
push edi
call ecx
add esp, 0xc
jmp 0x1000bda3
push 0x101db30a
push 0xef4f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov ebx, 0xb
mov ecx, edi
call fcn.10158c50
mov edi, ebx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xe4]
mov ecx, dword [eax + 0x10]
or ecx, dword [eax + 0x14]
jne 0x1000c177
mov ecx, dword [ebp - 0x1c]
call fcn.10164f30
test esi, esi
je 0x1000bec2
jmp 0x1000c106
mov dword [ebx + 8], 0
mov edi, dword [ebx + 4]
test edi, edi
je 0x1000be2e
mov ebx, dword [ebp - 0x20]
mov eax, dword [edi + 0x20]
or eax, dword [edi + 0x24]
je 0x1000c1f1
mov edi, dword [edi + 0x2c]
test edi, edi
jne 0x1000c196
jmp 0x1000be2e
mov edi, eax
cmp eax, 5
je 0x1000be2e
jmp 0x1000c15e
mov edi, eax
jmp 0x1000c074
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x1c], eax
jb 0x1000c1f9
mov ecx, edi
call fcn.1013f960
mov edi, 0xd
jmp 0x1000c15e
call dword [section..00cfg]
call ecx
jmp 0x1000bfca
call dword [section..00cfg]
call ecx
jmp 0x1000c00d
mov ebx, dword [ebp - 0x20]
jmp 0x1000be0d
mov ebx, 0xd
jmp 0x1000c155