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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x101d2014]
mov edi, ecx
mov esi, dword [ebp + 8]
mov ebx, edx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [ecx + 0x50]
call dword [section..00cfg]
push esi
mov dword [ebp - 0x20], ebx
push ebx
push edi
call ecx
add esp, 0xc
movzx ecx, word [esi + 0x10]
mov ebx, dword [esi + 0xc]
xor eax, eax
cmp ebx, ecx
jne 0x100431a1
mov ecx, dword [ebp - 0x10]
mov esi, eax
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x1c], ecx
movzx eax, word [esi + 0x12]
mov ecx, dword [ebp - 0x20]
add ecx, eax
cmp ecx, dword [edi + 0x3c]
ja 0x100433e1
push dword [ecx - 4]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov esi, dword [edi + 0x34]
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x28]
not eax
add ebx, eax
lea eax, [ecx + ebx - 4]
mov ebx, edx
add ecx, 0xfffffffc
xor edx, edx
div ecx
mov dword [ebp - 0x24], esi
mov edi, eax
xor eax, eax
sub edi, 1
jb 0x1004318b
cmp ebx, 2
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
jb 0x100432e1
cmp ebx, dword [esi + 0x30]
ja 0x100432e1
test edi, edi
jne 0x100432b8
mov dword [ebp - 0x1c], edi
mov edi, dword [esi]
mov ecx, dword [0x101d20a0]
mov eax, dword [edi + 0xd4]
mov esi, dword [eax + 0x2c]
call dword [section..00cfg]
push 0
mov dword [ebp - 0x20], ebx
push ebx
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x100433a9
mov esi, eax
mov eax, dword [eax + 4]
mov ecx, dword [edi + 0xd4]
cmp dword [eax], 0
je 0x10043395
inc dword [ecx + 0xc]
inc word [eax + 0x1e]
mov edx, dword [eax + 8]
mov ebx, dword [ebp - 0x20]
cmp dword [edx + 4], ebx
jne 0x100433c0
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
test edx, edx
mov dword [ebp - 0x18], edx
je 0x1004327c
mov eax, dword [edx + 0x48]
cmp word [eax + 0x1e], 1
jne 0x10043309
mov ecx, esi
push ebx
call fcn.10043480
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100432a8
mov ecx, dword [ecx + 0x48]
test ecx, ecx
je 0x100432a8
test byte [ecx + 0x1c], 0x20
mov ebx, eax
jne 0x10043331
call fcn.10025e90
mov eax, ebx
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x100431e2
jmp 0x1004318b
lea eax, [ebp - 0x14]
mov ecx, esi
mov edx, ebx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1002abb0
add esp, 8
test eax, eax
jne 0x1004318b
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x10043209
jmp 0x1004326e
push 0x101b128f
push 0x115ed
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
jmp 0x1004318b
push 0x101b128f
push 0x11601
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
jmp 0x10043287
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x28], edx
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov dword [edx + 0x88], ecx
mov edx, dword [edx + 0x98]
mov eax, dword [ecx + 0x18]
mov esi, edx
dec eax
sar esi, 0x1f
imul esi, eax
mul edx
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 4]
add edx, esi
mov esi, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
call ecx
add esp, 0x10
jmp 0x100432a6
mov edx, dword [ebp - 0x20]
push esi
call fcn.100238a0
add esp, 4
test eax, eax
jne 0x10043252
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x18], 0
jmp 0x1004327c
mov ecx, dword [eax + 4]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x48], eax
mov dword [edx + 0x34], esi
mov dword [edx + 4], ebx
mov byte [edx + 9], 0
mov dword [ebp - 0x18], edx
jmp 0x1004326e
push 0x101b128f
push 0x115dc
jmp 0x100432eb