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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x30], edx
jb 0x10042fad
mov esi, dword [ecx]
mov dword [esp], ecx
mov edi, edx
mov ecx, dword [esi + 0xcc]
cmp ecx, fcn.10023550
jne 0x10042fd5
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
call fcn.10023550
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x10042f36
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 8]
cmp byte [esi], 0
je 0x10042f6b
cmp byte [esi + 1], 0
jne 0x10042feb
mov byte [esi + 1], 1
mov edi, dword [ebp + 0xc]
movzx eax, byte [esi + 9]
mov dword [esp + 8], eax
xor eax, eax
cmp word [esi + 0x18], 0
jne 0x10043013
cmp byte [esi + 8], 0
je 0x1004309f
test edi, edi
je 0x10042eda
add dword [edi], eax
cmp dword [ebp + 8], 0
jne 0x100430d1
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x10042f4b
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x18]
jb 0x10042f4b
cmp dword [eax + 0x60], 0
je 0x10042f09
call fcn.1001ee10
mov ebx, eax
test eax, eax
jne 0x10042f20
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 8]
movzx edx, byte [eax + ecx]
mov ecx, esi
or edx, 8
call fcn.10029320
xor ebx, ebx
mov byte [esi + 1], 0
mov ecx, dword [esi + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x100430e8
call fcn.10025e90
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [eax + 0x28]
test ebx, ebx
jne 0x10042f20
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
ja 0x10043140
call fcn.10029840
jmp 0x10042f03
cmp dword [esi + 4], edi
je 0x10042f92
mov ecx, dword [eax + 4]
mov edx, dword [esp]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x48], eax
mov dword [esi + 0x34], edx
xor edx, edx
cmp edi, 1
mov ecx, 0x64
mov dword [esi + 4], edi
cmovne ecx, edx
mov byte [esi + 9], cl
mov ecx, esi
call fcn.10026390
test eax, eax
je 0x10042ea4
mov ecx, dword [esi + 0x48]
mov ebx, eax
call fcn.10025e10
jmp 0x10042f36
push 0x101b128f
push 0x12117
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
jmp 0x10042f36
call dword [section..00cfg]
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
call ecx
jmp 0x10042e87
push 0x101b128f
push 0x1211c
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
jmp 0x10042f20
mov dword [esp + 0xc], 0
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
movzx ebx, word [esi + 0x1a]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x40]
movzx eax, word [eax + ecx*2]
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ushort
add esp, 4
and eax, ebx
add eax, dword [esp + 4]
cmp byte [esi + 8], 0
mov dword [esp + 4], eax
jne 0x1004306c
mov eax, dword [esp + 4]
push dword [eax]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ecx, dword [esp]
mov edx, eax
push edi
push 1
call fcn.10042e40
add esp, 8
test eax, eax
jne 0x100430e1
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.10043150
add esp, 4
test eax, eax
jne 0x100430e1
mov edx, dword [esp + 0xc]
movzx eax, word [esi + 0x18]
inc edx
cmp edx, eax
mov ecx, edx
mov dword [esp + 0xc], edx
jae 0x10042eca
jmp 0x1004301b
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 8]
push dword [ecx + eax + 8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ecx, dword [esp]
mov edx, eax
push edi
push 1
call fcn.10042e40
add esp, 8
mov ebx, eax
test eax, eax
jne 0x10042f20
jmp 0x10042eda
mov ecx, dword [esi + 0x34]
mov edx, esi
push dword [esi + 4]
call fcn.10043480
add esp, 4
mov ebx, eax
jmp 0x10042f20
mov esi, dword [ecx + 0x14]
dec dword [esi + 0x78]
mov eax, dword [esi + 0x88]
mov dword [ecx + 0x10], eax
mov dword [esi + 0x88], ecx
mov edx, dword [esi + 0x98]
mov eax, dword [ecx + 0x18]
mov esi, dword [esi + 0x3c]
mov edi, edx
dec eax
sar edi, 0x1f
imul edi, eax
mul edx
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esi]
add edx, edi
mov edi, edx
mov ecx, dword [ecx + 0x48]
mov dword [esp], eax
call dword [section..00cfg]
push dword [esp]
push edi
push dword [esp + 0x10]
push esi
call ecx
add esp, 0x10
jmp 0x10042f36
call fcn.100295e0
jmp 0x10042f03