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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [ebp - 0x1c], edx
mov esi, ecx
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx + 0x14]
mov edi, dword [ecx + 0x74]
call fcn.10143ac0
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edi
sub ecx, dword [edi + 0x38]
mov dword [ebp - 0x34], ebx
mov edx, dword [ebx + 0x28]
mov dword [ebp - 0x2c], esi
movzx eax, word [esi + 0x30]
sub edx, eax
cmp ecx, edx
ja 0x10011ff6
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, eax
mov edi, dword [ebp - 0x1c]
sub ebx, edi
jbe 0x1001201b
lea ecx, [esi + edi]
cmp ecx, eax
cmovbe ebx, esi
add edi, dword [ebp - 0x24]
cmp dword [ebp + 0x10], 0
jne 0x10012026
push ebx
push edi
push edx
mov edi, edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
add edi, ebx
sub esi, ebx
xor ecx, ecx
mov edx, edi
test eax, eax
jne 0x10012180
test esi, esi
je 0x10012180
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax + 0x28]
lea eax, [ebx - 4]
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x2c]
movzx esi, word [edi + 0x30]
mov eax, dword [ebp - 0x24]
push dword [eax + esi]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
test byte [edi + 1], 4
jne 0x10012048
mov ecx, dword [edi + 0xc]
sub ebx, esi
mov eax, dword [edi + 0x2c]
add eax, ebx
add eax, 0xfffffffb
xor edx, edx
div dword [ebp - 0x30]
lea ebx, [edi + 0xc]
mov edi, ecx
test ecx, ecx
mov dword [ebp - 0x28], eax
je 0x10011fc8
lea esi, [eax*4]
mov ecx, dword [0x101db04c]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov edi, dword [ebx]
cmp esi, eax
jg 0x10011fc8
cmp esi, 4
jne 0x10012074
mov dword [edi], 0
mov eax, dword [ebp - 0x2c]
or byte [eax + 1], 4
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov ebx, edx
test edx, edx
mov edi, dword [ebp + 0x10]
je 0x10012179
shl ecx, 2
mov esi, ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
cmp ebx, dword [ecx + 0x30]
ja 0x10012085
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3c], esi
mov dword [eax + esi], ebx
mov eax, dword [ebp - 0x1c]
mov esi, eax
sub esi, edx
mov dword [ebp - 0x28], ebx
jae 0x10012094
xor ebx, ebx
test edi, edi
sete bl
add ebx, ebx
mov ecx, dword [ebp - 0x20]
lea edi, [eax + ecx]
mov esi, edx
mov dword [ebp - 0x1c], eax
sub esi, eax
cmp edi, edx
cmovbe esi, ecx
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x34]
mov esi, dword [eax]
mov ecx, dword [esi + 0xcc]
call dword [section..00cfg]
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
push esi
call ecx
add esp, 0x10
test eax, eax
jne 0x100120b9
mov esi, dword [ebp - 0x18]
mov edi, dword [esi + 4]
push dword [edi]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
lea ebx, [eax + edi]
add ebx, 4
cmp dword [ebp + 0x10], 0
jne 0x100120c3
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x38]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor edi, edi
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100120ed
mov dword [ebp - 0x1c], 0
test byte [ecx + 0x1c], 0x20
jne 0x100120f9
call fcn.1001c870
mov eax, dword [ebp - 0x24]
sub esi, eax
jne 0x10012155
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, edi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
mov ebx, dword [ebp - 0x28]
lea edx, [ebx*8]
mov ecx, edi
push 0
call fcn.1000f200
add esp, 4
test eax, eax
je 0x100121a1
mov edi, eax
mov dword [esi], eax
shl ebx, 2
mov esi, ebx
jmp 0x10011eb4
push 0x101c47ed
push 0x112a4
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 0x10011fb4
sub edi, eax
xor eax, eax
mov ecx, edi
jmp 0x10011e25
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x48]
mov edi, edx
call fcn.1014e2b0
test eax, eax
jne 0x10011e1d
push ebx
push edi
push dword [ebp - 0x1c]
jmp 0x10011e13
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
xor edx, edx
div dword [ebp - 0x30]
mov esi, eax
mov eax, dword [ecx + eax*4]
mov ebx, eax
test eax, eax
mov eax, edi
je 0x10011eca
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], edx
mov edi, dword [ebp + 0x10]
mov ecx, esi
jmp 0x10011edc
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x10011ec3
push 0x101c47ed
push 0x112e2
jmp 0x10012000
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax + ecx + 4]
test eax, eax
je 0x100121ab
mov dword [ebp - 0x14], eax
xor edi, edi
mov dword [ebp - 0x1c], esi
jmp 0x1001215b
mov edi, eax
mov esi, dword [ebp - 0x20]
jmp 0x10011fa9
mov ecx, esi
call fcn.1014e2b0
mov edi, eax
test eax, eax
mov esi, dword [ebp - 0x20]
jne 0x10011f88
push dword [ebp - 0x24]
push dword [ebp - 0x38]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor edi, edi
jmp 0x10011f88
mov dword [ebp - 0x1c], 0
jmp 0x10011fa9
mov ebx, dword [ecx + 0x14]
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x10], eax
mov dword [ebx + 0x88], ecx
mov eax, dword [ecx + 0x18]
dec eax
mov edx, dword [ebx + 0x98]
mov esi, edx
sar esi, 0x1f
imul esi, eax
mul edx
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x44], eax
mov ebx, dword [ebx + 0x3c]
add edx, esi
mov dword [ebp - 0x40], edx
mov esi, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push dword [ebp - 0x44]
push dword [ebp - 0x40]
push dword [ebp - 0x28]
push ebx
call ecx
add esp, 0x10
jmp 0x10011fa9
mov dword [ebp - 0x20], esi
add dword [ebp - 0x38], eax
test edi, edi
jne 0x1001217b
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x3c]
add esi, 4
test ebx, ebx
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x30]
jne 0x10011ee4
xor edi, edi
mov esi, dword [ebp - 0x20]
mov eax, edi
mov edi, eax
test eax, eax
jne 0x10011fb4
test esi, esi
je 0x10011fb4
push 0x101c47ed
push 0x11337
jmp 0x10012000
mov edi, 7
jmp 0x10011fb4
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
push eax
push 0
call fcn.1015bab0
add esp, 8
mov edi, eax
jmp 0x100120b1