Function at 0x10010130
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 dword [esp + 0x10], edx
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x68], esi
cmp byte [ecx], 4
je 0x100108ff
mov ebx, dword [edi + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x30], eax
mov al, byte [edi + 1]
test al, 0x20
mov dword [esp + 0xc], edi
jne 0x10010420
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x70]
test eax, eax
je 0x10010311
mov ecx, edx
and ecx, 2
or ecx, esi
jne 0x100101e9
mov ebx, edx
mov edi, dword [esp + 0x10]
movzx ecx, word [edi + 0x18]
test cx, cx
je 0x100109bf
lea edx, [esp + 0x40]
mov dword [edx], eax
mov eax, dword [edi + 0x14]
mov dword [edx + 4], eax
mov word [edx + 8], cx
xor eax, eax
test ebx, ebx
setne al
xor esi, esi
mov dword [edx + 0xa], esi
mov byte [edx + 0xe], 0
lea edi, [esp + 0x68]
mov ecx, dword [esp + 0xc]
push edi
push eax
push esi
push esi
call fcn.10143e70
add esp, 0x10
mov edi, eax
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x100102fc
mov esi, dword [esp + 0x68]
test esi, esi
mov ebx, dword [esp + 0xc]
je 0x100103da
mov edx, dword [ebx + 0x74]
cmp dword [edx + 0x14], 0
mov ebx, dword [ebp + 8]
mov dword [esp + 4], edx
js 0x100106b3
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x54]
test bl, bl
mov eax, ecx
mov dword [esp + 0x14], ecx
js 0x10010907
movzx esi, byte [edx + 0xa]
cmp byte [edx + 2], 0
mov eax, dword [esp + 0x10]
jne 0x1001037b
mov edi, dword [eax]
mov dword [esp + 0x28], edi
mov ebx, dword [eax + 8]
cmp ebx, 0x7f
mov dword [esp + 0x20], ebx
ja 0x1001056a
mov byte [ecx + esi], bl
inc esi
mov edi, esi
mov dword [esp + 8], ebx
lea eax, [ecx + edi]
mov dword [esp + 0x1c], eax
movzx ecx, word [edx + 0xe]
cmp dword [esp + 8], ecx
jg 0x100106dc
mov ebx, dword [esp + 8]
add edi, ebx
cmp edi, 4
mov eax, 4
cmovg eax, edi
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x20]
push esi
push dword [esp + 0x2c]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor edi, edi
sub ebx, esi
jne 0x1001099b
mov dword [esp + 0x6c], edi
mov ecx, dword [esp + 4]
test edi, edi
mov edi, dword [esp + 0xc]
jne 0x100102f8
movzx edx, word [edi + 0x46]
cmp dword [esp + 0x68], 0
je 0x1001048b
jns 0x100102cd
cmp word [ecx + 0x18], 0
je 0x100102cd
inc edx
mov word [edi + 0x46], dx
movzx edx, dx
and byte [edi + 1], 0xfd
lea eax, [esp + 0x6c]
xor esi, esi
mov ebx, ecx
push eax
push esi
push esi
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.10010e70
add esp, 0x14
mov word [edi + 0x32], 0
cmp byte [ebx + 0xc], 0
jne 0x100105f5
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.1014dc80
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [ebx + 0xb], 0
jne 0x100109e2
mov ebx, dword [esp + 0xc]
test byte [ebx + 1], 2
je 0x1001033d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xc]
xor eax, dword [ebx + 0x24]
mov ecx, dword [ecx + 8]
xor ecx, dword [ebx + 0x20]
or ecx, eax
je 0x10010598
test esi, esi
jne 0x100101f5
xor eax, eax
cmp dword [ebp + 8], 0
setne al
lea esi, [esp + 0x68]
mov ecx, ebx
xor edx, edx
push esi
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.10143e70
add esp, 0x10
mov dword [esp + 0x6c], eax
test eax, eax
je 0x100101f5
jmp 0x10010419
mov edx, dword [eax + 0x10]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x20], edx
add eax, edx
mov dword [esp + 8], eax
cmp eax, 0x7f
ja 0x100105c1
mov eax, dword [esp + 8]
mov byte [ecx + esi], al
inc esi
mov edi, esi
mov esi, ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x7f
cmp ecx, edx
mov ecx, 0
sbb ecx, eax
lea ecx, [esi + edi]
jb 0x10010a36
mov byte [ecx], dl
inc edi
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x14]
jmp 0x10010250
mov ecx, ebx
call fcn.10143ac0
mov ecx, dword [ebx + 0x24]
mov edx, dword [esp + 0x10]
xor ecx, dword [edx + 0xc]
mov eax, dword [ebx + 0x20]
mov edx, dword [edx + 8]
xor edx, eax
or edx, ecx
jne 0x100101f5
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
lea edx, [esp + 0x40]
mov dword [edx + 0x10], ecx
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], 0
mov ecx, ebx
call fcn.10012c30
mov edi, eax
jmp 0x100102fc
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x10010446
mov edx, dword [edi + 0x40]
cmp ecx, edi
je 0x1001043b
test edx, edx
je 0x10010455
cmp dword [ecx + 0x40], edx
je 0x10010455
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x1001042e
test edi, edi
je 0x1001044b
and al, 0xdf
mov byte [edi + 1], al
mov dword [esp + 0x6c], 0
jmp 0x10010466
push edi
call fcn.10010c40
add esp, 4
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x10010419
test esi, esi
mov edi, dword [esp + 0xc]
je 0x10010179
cmp byte [edi + 0x44], 0
jns 0x10010179
push 0x101c47ed
push 0x121e2
jmp 0x10010ab9
mov ebx, edx
mov ecx, dword [ecx + 0x48]
mov eax, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x1001068c
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x18]
jb 0x1001068c
cmp dword [eax + 0x60], 0
je 0x10010679
call fcn.10011230
mov dword [esp + 0x6c], eax
test eax, eax
mov eax, dword [esp + 4]
mov ecx, ebx
jne 0x100102f8
movzx esi, word [eax + 0x1a]
mov edx, dword [eax + 0x38]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x40]
movzx eax, word [eax + ecx*2]
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ushort
mov edx, dword [esp + 8]
add esp, 4
mov edi, eax
and edi, esi
add edi, dword [esp + 8]
cmp byte [edx + 8], 0
je 0x1001088c
mov ecx, dword [edx + 0x50]
mov esi, edx
call dword [section..00cfg]
lea eax, [esp + 0x40]
push eax
push edi
push esi
mov esi, eax
call ecx
add esp, 0xc
movzx ecx, word [esi + 0x10]
xor eax, eax
cmp dword [esi + 0xc], ecx
jne 0x10010899
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xc]
and byte [eax + 1], 0xfb
movzx eax, word [esp + 0x52]
cmp dword [esp + 0x18], eax
je 0x100108ad
lea esi, [esp + 0x6c]
mov edi, dword [esp + 4]
mov ecx, edi
mov edx, ebx
push esi
push eax
call fcn.10010d50
add esp, 8
cmp dword [esi], 0
jne 0x100102f8
mov edx, ebx
mov ecx, edi
mov edi, dword [esp + 0xc]
jmp 0x100102cd
add ecx, esi
mov eax, ebx
cmp ebx, 0x3fff
ja 0x10010a58
shr eax, 7
or al, 0x80
mov byte [ecx], al
mov eax, ebx
and al, 0x7f
mov byte [ecx + 1], al
mov edi, 2
add edi, esi
mov dword [esp + 8], ebx
jmp 0x100103d1
cmp word [ebx + 0x32], 0
je 0x100101f5
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x20]
add eax, dword [ecx + 0x1c]
cmp dword [ebx + 0x2c], eax
jne 0x100101f5
mov ecx, ebx
mov edx, dword [esp + 0x10]
jmp 0x10010414
add ecx, esi
cmp dword [esp + 8], 0x3fff
ja 0x10010a72
mov edx, dword [esp + 8]
mov eax, edx
shr eax, 7
or al, 0x80
mov byte [ecx], al
mov eax, edx
and al, 0x7f
mov byte [ecx + 1], al
mov edi, 2
add edi, esi
mov esi, dword [esp + 0x14]
jmp 0x100103a7
and byte [edi + 1], 0xfd
mov ecx, edi
call fcn.100254c0
mov dword [esp + 0x6c], eax
mov ecx, dword [edi + 0x74]
mov byte [ecx + 0xc], 0
mov byte [edi], 1
mov ecx, dword [ebp + 8]
test cl, 2
je 0x100102f8
test eax, eax
jne 0x100102f8
mov ecx, edi
call fcn.1001c760
cmp dword [edi + 0x70], 0
je 0x1001065f
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
call fcn.10144e50
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x10], eax
test eax, eax
je 0x10010bee
mov ecx, dword [esp + 0x10]
push dword [ecx + 8]
push dword [ecx]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0xc]
mov byte [eax], 3
mov ecx, dword [esp + 0x10]
movsd xmm0, qword [ecx + 8]
movsd qword [eax + 0x38], xmm0
jmp 0x100102f8
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 4]
mov ecx, ebx
jmp 0x100104ca
mov edx, dword [eax + 0x28]
test edx, edx
jne 0x10010a8c
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
ja 0x10010a95
call fcn.10011a30
jmp 0x100104b8
mov eax, dword [esp + 0xc]
cmp byte [eax], 2
jae 0x10010aaf
mov ecx, edx
call fcn.10027c10
mov edx, dword [esp + 4]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x10010209
jmp 0x10010419
movzx esi, word [edx + 0x10]
mov eax, dword [esp + 8]
sub eax, esi
mov edx, dword [edx + 0x34]
mov dword [esp + 0x24], edx
mov ebx, dword [edx + 0x28]
add ebx, 0xfffffffc
xor edx, edx
div ebx
add edx, esi
mov dword [esp + 0x2c], 0
cmp edx, ecx
cmovg edx, esi
lea esi, [edx + edi]
mov ebx, edx
lea eax, [edx + edi]
add eax, 4
mov dword [esp + 0x18], eax
add esi, dword [esp + 0x14]
mov dword [esp + 0x38], esi
lea eax, [esp + 0x74]
mov dword [eax], 0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 8]
mov eax, ebx
cmp edi, ebx
cmovg edi, ebx
cmp dword [esp + 0x20], edi
jl 0x10010ad7
push edi
push dword [esp + 0x2c]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
sub dword [esp + 8], edi
mov ecx, dword [esp + 0x24]
jle 0x10010867
add esi, edi
add dword [esp + 0x28], edi
sub dword [esp + 0x20], edi
sub ebx, edi
jne 0x1001072b
mov dword [esp + 0x70], 0
mov ebx, dword [esp + 0x74]
cmp byte [ecx + 0x11], 0
mov esi, ebx
je 0x100107b5
mov eax, dword [0x101db688]
mov dword [esp + 0x1c], eax
mov edi, ebx
mov esi, edi
inc edi
xor eax, eax
cmp edi, 2
jae 0x10010b1a
cmp edi, eax
je 0x10010789
mov eax, dword [esp + 0x1c]
xor edx, edx
mov ecx, dword [esp + 0x24]
div dword [ecx + 0x24]
cmp esi, eax
je 0x10010789
inc esi
mov dword [esp + 0x74], esi
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x70]
push 0
push esi
lea eax, [esp + 0x7c]
push eax
mov esi, ecx
call fcn.100165a0
add esp, 0xc
mov edi, eax
mov dword [esp + 0x40], eax
test eax, eax
jne 0x10010811
cmp byte [esi + 0x11], 0
je 0x10010811
mov edx, dword [esp + 0x74]
cmp ebx, 1
mov eax, 4
sbb eax, 0
mov ecx, dword [esp + 0x24]
lea edi, [esp + 0x40]
push edi
push ebx
push eax
call fcn.10027d30
add esp, 0xc
mov edi, dword [esp + 0x40]
test edi, edi
je 0x10010811
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x10010af6
test edi, edi
jne 0x10010afe
push dword [esp + 0x74]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x10010b6a
mov edi, dword [esp + 0x70]
mov esi, dword [edi + 0x38]
push 0
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esi], eax
mov dword [esp + 0x2c], edi
mov esi, dword [edi + 0x38]
add esi, 4
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x28]
add ebx, 0xfffffffc
jmp 0x1001072b
xor edi, edi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10010299
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x10010b77
call fcn.1001c870
jmp 0x10010299
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
jmp 0x100104fb
mov ecx, dword [esp + 4]
mov edx, edi
push esi
call fcn.1004f090
add esp, 4
jmp 0x10010523
movzx ecx, word [esp + 0x50]
cmp dword [esp + 0x4c], ecx
jne 0x1001053e
mov ecx, dword [esp + 0x30]
cmp byte [ecx + 0x11], 0
je 0x100108d8
mov ecx, dword [esp + 4]
movzx ecx, word [ecx + 0x10]
cmp dword [esp + 0x18], ecx
jge 0x1001053e
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x38]
movzx ecx, byte [ecx + 9]
add eax, ecx
add eax, 0xa
cmp edi, eax
jae 0x10010bfb
push 0x101c47ed
push 0x12283
jmp 0x10010ab9
mov edi, dword [edi + 4]
jmp 0x100102fc
mov dword [esp + 0x6c], 0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x58]
cmp eax, 4
mov edx, 4
cmovg edx, eax
mov dword [esp + 0x18], edx
cmp byte [ecx + 0x11], 0
je 0x100109b2
mov eax, dword [esp + 4]
movzx eax, word [eax + 0xe]
cmp dword [esp + 0x18], eax
jle 0x100109b2
mov edi, dword [esp + 4]
mov ecx, dword [edi + 0x50]
call dword [section..00cfg]
lea esi, [esp + 0x40]
push esi
push dword [esp + 0x18]
push edi
call ecx
add esp, 0xc
movzx eax, word [esi + 0x10]
cmp dword [esi + 0xc], eax
je 0x10010992
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push dword [ecx + eax - 4]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
lea esi, [esp + 0x6c]
mov ecx, dword [esp + 0x30]
mov edx, eax
push esi
mov eax, dword [esp + 8]
push dword [eax + 4]
push 3
call fcn.10027d30
add esp, 0xc
mov edi, dword [esp + 0x6c]
jmp 0x1001029d
mov ecx, dword [esp + 0x1c]
add ecx, esi
push ebx
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x10010299
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 4]
jmp 0x100102a9
xor eax, eax
test ebx, ebx
setne al
mov edx, dword [edi]
lea esi, [esp + 0x68]
mov ecx, dword [esp + 0xc]
push esi
push eax
push dword [edi + 0xc]
push dword [edi + 8]
call fcn.1015f460
jmp 0x100101d4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x40]
mov byte [ebx + 0xb], 0
mov edi, dword [ebx + 4]
mov edi, dword [edi + 8]
test edi, edi
je 0x1001031b
test byte [edi + 1], 0x10
je 0x10010a31
mov byte [ebx + 0xb], 1
cmp dword [edi + 0x40], edx
jne 0x10010a31
mov eax, dword [edi + 0x20]
xor eax, dword [esp + 8]
mov ecx, dword [edi + 0x24]
xor ecx, dword [esp + 4]
or ecx, eax
jne 0x10010a31
mov byte [edi], 1
mov edi, dword [edi + 0x18]
jmp 0x10010a05
mov esi, 0x3fff
cmp esi, edx
sbb ebx, eax
jb 0x10010a9f
mov eax, edx
shr eax, 7
or al, 0x80
mov byte [ecx], al
and dl, 0x7f
mov byte [ecx + 1], dl
add edi, 2
jmp 0x100103cd
sar eax, 0x1f
mov edx, ebx
push eax
call fcn.1015c660
mov edx, dword [esp + 8]
add esp, 4
movzx edi, al
jmp 0x1001058d
mov edx, dword [esp + 8]
mov eax, edx
sar eax, 0x1f
push eax
call fcn.1015c660
add esp, 4
movzx edi, al
jmp 0x100105ea
mov dword [esp + 0x6c], edx
jmp 0x100102f8
call fcn.10151ff0
jmp 0x100104b8
push eax
call fcn.1015c660
add esp, 4
add edi, eax
jmp 0x100103cd
push 0x101c47ed
push 0x12247
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 0x100102fc
mov eax, esi
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x20], 0
jle 0x10010bd1
mov edi, dword [esp + 0x20]
push edi
push esi
mov esi, eax
push eax
jmp 0x10010746
mov ecx, dword [eax + 0x48]
call fcn.1014e440
cmp dword [esp + 0x2c], 0
je 0x10010299
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x48]
call fcn.1014e440
jmp 0x10010299
mov eax, 0xcccccccd
mov ecx, dword [esp + 0x24]
mul dword [ecx + 0x28]
shr edx, 2
inc edx
mov dword [esp + 0x34], edx
lea eax, [esi - 1]
mov ecx, eax
xor edx, edx
div dword [esp + 0x34]
sub ecx, edx
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x1c]
xor edx, edx
mov ecx, dword [esp + 0x24]
div dword [ecx + 0x24]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x34]
lea edx, [ecx + 1]
xor eax, eax
cmp edx, dword [esp + 0x3c]
sete al
add eax, ecx
add eax, 2
jmp 0x10010797
mov ecx, dword [eax + 0x48]
call fcn.1014e440
jmp 0x10010837
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 eax, dword [ecx + 0x18]
dec eax
mov edx, dword [esi + 0x98]
mov ebx, edx
sar ebx, 0x1f
imul ebx, eax
mul edx
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov esi, dword [esi + 0x3c]
add edx, ebx
mov ebx, edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push dword [esp + 0x20]
push ebx
push dword [esp + 0x10]
push esi
call ecx
add esp, 0x10
jmp 0x10010299
push edi
push 0
mov dword [esp + 0x24], eax
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x1c]
jmp 0x1001074e
mov dword [esp + 0x6c], 7
jmp 0x1001065f
mov eax, dword [esp + 0x18]
add eax, edi
mov ecx, dword [esp + 4]
cmp eax, dword [ecx + 0x3c]
jbe 0x10010c19
push 0x101c47ed
push 0x12286
jmp 0x10010ab9
push dword [esp + 0x18]
push dword [esp + 0x18]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor edi, edi
jmp 0x100102fc