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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov edi, edx
mov dword [esp + 0x1c], ecx
mov ebx, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [esp + 0xa0], eax
mov esi, dword [ebx + 4]
cmp dword [ebp + 0xc], 0
je 0x10005f4b
movzx edx, byte [edi + 1]
mov dword [esp + 0x68], edx
mov ecx, 2
test dl, dl
js 0x10006290
movzx eax, byte [edi]
cmp edx, 0x80
jae 0x100062ac
movzx edx, byte [edx + 0x101b25c6]
add edx, eax
add esi, 0x28
mov dword [esp + 8], esi
xor esi, esi
inc esi
mov dword [esp + 0xc], edx
cmp edx, dword [esp + 0x1c]
ja 0x100061ed
mov dword [esp + 0x3c], eax
lea eax, [ebx + 0x17]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
mov eax, dword [esp + 8]
movzx eax, word [eax + 0x10]
test al, 0x24
mov dword [esp + 0x24], ecx
jne 0x10005eee
test al, 8
jne 0x10006146
test al, 2
jne 0x10005f89
movzx edx, byte [edi + ecx]
test al, 0x10
je 0x1000601c
test dl, dl
jns 0x10005e11
add ecx, edi
movzx eax, byte [ecx + 1]
test al, al
js 0x1000609e
and edx, 0x7f
shl edx, 7
or edx, eax
cmp edx, 0xc
mov dword [esp], edx
jb 0x10006072
mov eax, edx
and eax, 1
jne 0x10006072
lea eax, [edx - 0xc]
mov edi, eax
shr edi, 1
mov ecx, dword [esp + 0xc]
add ecx, edi
cmp ecx, dword [esp + 0x1c]
ja 0x10006281
mov ebx, edi
mov edi, esi
mov esi, dword [esp + 8]
test byte [esi + 0x11], 4
jne 0x100061d7
mov eax, dword [esi + 0xc]
mov ecx, ebx
sub ebx, eax
cmovl eax, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add ecx, edx
push eax
push dword [esi + 8]
push ecx
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
cmovne ebx, eax
mov edx, ebx
mov ebx, dword [ebp + 8]
mov esi, edi
test edx, edx
jne 0x100063a9
inc esi
movzx eax, word [ebx + 0x14]
cmp esi, eax
mov edx, dword [esp]
je 0x100061ca
add dword [esp + 8], 0x28
cmp edx, 0x80
jae 0x100060fd
movzx eax, byte [edx + 0x101b25c6]
mov ecx, dword [esp + 0xc]
add ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x1c]
ja 0x100061ca
mov edi, esi
xor eax, eax
inc eax
cmp edx, 0x80
jae 0x100060c9
mov ecx, dword [esp + 0x24]
add ecx, eax
cmp ecx, dword [esp + 0x3c]
jae 0x1000611a
mov esi, edi
mov edi, dword [esp + 0x10]
jmp 0x10005dc7
movzx ecx, byte [edi + ecx]
cmp ecx, 0xa
jae 0x10006216
test ecx, ecx
mov dword [esp], ecx
je 0x10006072
cmp ecx, 7
je 0x1000640e
mov dword [esp + 4], esi
lea eax, [ecx - 1]
cmp eax, 5
jbe 0x10005f6d
add ecx, 0xfffffff8
xor edi, edi
mov esi, dword [esp + 8]
mov ebx, dword [esi]
mov edx, dword [esi + 4]
cmp ecx, ebx
mov eax, edi
sbb eax, edx
jl 0x1000639f
cmp ebx, ecx
sbb edx, edi
jl 0x10006034
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 4]
jmp 0x10005e86
mov dword [esp + 8], esi
movzx eax, byte [edi]
mov dword [esp + 0x94], eax
xor esi, esi
test al, al
js 0x100063ef
xor ecx, ecx
inc ecx
mov edx, eax
jmp 0x10005daa
mov ecx, dword [esp + 0xc]
lea edx, [edi + ecx]
mov esi, dword [esp + 8]
jmp dword [eax*4 + 0x101b8cd0]
movsx ecx, byte [edx]
mov edi, ecx
sar edi, 0x1f
jmp 0x10005f24
movzx eax, byte [edi + ecx]
mov dword [esp + 0x64], eax
test al, al
js 0x1000654f
cmp eax, 0xc
mov dword [esp], eax
jb 0x10006072
mov dword [esp + 4], esi
test al, 1
je 0x1000624f
add eax, 0xfffffff4
shr eax, 1
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0xc]
add ecx, eax
cmp ecx, dword [esp + 0x1c]
mov edi, dword [esp + 4]
mov esi, dword [esp + 8]
ja 0x1000625a
mov edx, dword [ebx]
movzx ecx, word [edx + 8]
cmp edi, ecx
jae 0x1000625a
mov ebx, dword [edx + edi*4 + 0x14]
test ebx, ebx
jne 0x1000603c
mov ecx, dword [esi + 0xc]
mov edi, eax
sub edi, ecx
cmovl ecx, eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add eax, edx
push ecx
push dword [esi + 8]
push eax
call sub.VCRUNTIME140.dll_memcmp
mov edx, edi
add esp, 0xc
test eax, eax
cmovne edx, eax
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 4]
jmp 0x10005e7e
test edx, edx
setne al
mov dword [esp], edx
cmp dl, 0xa
setne cl
and cl, al
movzx edx, cl
jmp 0x10005e7e
xor edx, edx
inc edx
jmp 0x100063a2
mov al, byte [edx + 4]
lea ecx, [esp + 0x68]
mov byte [ecx + 0x12], al
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x14], eax
mov word [ecx + 0x10], 2
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add eax, edx
mov dword [ecx + 8], eax
mov edx, esi
push dword [esp + 0x18]
push ebx
call fcn.10005190
add esp, 8
mov edx, eax
jmp 0x10006010
xor edx, edx
dec edx
jmp 0x100063a9
mov edi, dword [edx]
mov ecx, dword [edx + 4]
bswap edi
bswap ecx
jmp 0x10005f24
mov ecx, dword [edx + 2]
bswap ecx
movsx ebx, byte [edx]
shl ebx, 8
movzx edi, byte [edx + 1]
or edi, ebx
jmp 0x10005f24
mov ebx, edx
movzx edx, byte [ecx + 2]
test dl, dl
js 0x1000656b
shl ebx, 0xe
or ebx, edx
mov edx, ebx
and edx, 0x1fc07f
and eax, 0x7f
shl eax, 7
or edx, eax
mov ebx, dword [ebp + 8]
jmp 0x10005e11
mov esi, edx
xor ecx, ecx
xor eax, eax
inc eax
xor edx, edx
mov ebx, ecx
shld ebx, esi, 0x19
mov dword [esp], ebx
shr edx, 7
inc eax
mov ebx, 0x3fff
cmp ebx, esi
mov ebx, 0
sbb ebx, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [esp]
mov ecx, edx
jae 0x10005ed3
jmp 0x100060d2
lea eax, [edx - 0xc]
shr eax, 1
jmp 0x10005eae
movsx edi, byte [edx]
mov ebx, edi
shl ebx, 8
movzx ecx, byte [edx + 1]
or ecx, ebx
jmp 0x10005f84
push 0x101db30a
push 0x1563c
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, dword [esp + 0x18]
mov byte [eax], 0xb
xor edx, edx
jmp 0x100063b5
mov dword [esp + 4], esi
movzx eax, byte [edi + ecx]
mov dword [esp], eax
cmp eax, 0xa
jae 0x10006269
cmp dword [esp], 0
je 0x1000622d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add ecx, eax
lea eax, [esp + 0x68]
mov ebx, dword [esp]
mov edx, ebx
push eax
call fcn.10003a50
add esp, 4
cmp bl, 7
jne 0x100062ee
movsd xmm0, qword [esp + 0x68]
mov eax, dword [esp + 8]
movsd xmm1, qword [eax]
ucomisd xmm1, xmm0
ja 0x10006239
ucomisd xmm0, xmm1
ja 0x10006244
mov esi, dword [esp + 4]
inc esi
mov ebx, dword [ebp + 8]
movzx eax, word [ebx + 0x14]
cmp esi, eax
je 0x100061ca
add dword [esp + 8], 0x28
mov edx, 7
jmp 0x10005ea7
mov byte [ebx + 0x1a], 1
movsx esi, byte [ebx + 0x16]
jmp 0x100063b7
cmp eax, 2
jae 0x100062b6
mov eax, dword [esp + 8]
mov edx, ebx
sub edx, dword [eax]
jmp 0x10005e79
push 0x101db30a
push 0x155a5
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov byte [ebx + 0x17], 0xb
xor esi, esi
jmp 0x100063b7
xor eax, eax
cmp cl, 0xa
setne al
lea edx, [eax + eax]
dec edx
xor eax, eax
inc eax
mov dword [esp], eax
jmp 0x100063a9
mov dword [esp], 0
jmp 0x1000639f
xor eax, eax
inc eax
mov dword [esp], eax
jmp 0x1000639f
xor edx, edx
inc edx
mov dword [esp], edx
jmp 0x100063a2
xor edx, edx
inc edx
mov dword [esp], edx
jmp 0x100063a5
push 0x101db30a
push 0x155f2
jmp 0x10006124
xor eax, eax
cmp byte [esp], 0xa
setne al
lea edx, [eax + eax]
dec edx
xor eax, eax
inc eax
mov dword [esp], eax
jmp 0x100063a2
push 0x101db30a
push 0x15610
jmp 0x10006124
lea ecx, [edi + 1]
lea ebx, [esp + 0x68]
mov edx, ebx
call fcn.100767a0
movzx ecx, al
inc ecx
mov edx, dword [ebx]
mov ebx, dword [ebp + 8]
jmp 0x10005d88
add edx, 0xfffffff4
shr edx, 1
jmp 0x10005d9e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add ecx, eax
xor eax, eax
inc eax
mov esi, ebx
cmp ebx, 2
mov edx, eax
cmovae edx, ebx
xor esi, esi
cmp byte [ecx + esi], 0
jne 0x100062df
inc esi
cmp edx, esi
jne 0x100062cf
jmp 0x100061e0
mov dword [esp], eax
mov edx, eax
mov ebx, dword [ebp + 8]
mov esi, edi
jmp 0x100063a9
mov eax, dword [esp + 8]
movsd xmm0, qword [eax]
xor esi, esi
inc esi
movsd xmm1, qword [0x101b11d0]
ucomisd xmm1, xmm0
ja 0x10006395
ucomisd xmm0, qword [0x101b10f8]
jae 0x1000639c
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
fnstcw word [esp + 0x14]
movzx edx, word [esp + 0x14]
or edx, 0xc00
mov word [esp + 0x20], dx
fldcw word [esp + 0x20]
fistp qword [esp + 0x28]
fldcw word [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp edi, ebx
mov ecx, eax
sbb ecx, edx
jl 0x1000639c
cmp ebx, edi
sbb edx, eax
jl 0x10006395
movd xmm1, edi
movd xmm2, eax
punpckldq xmm1, xmm2
movq qword [esp + 0x48], xmm1
fild qword [esp + 0x48]
fstp qword [esp + 0x40]
movsd xmm1, qword [esp + 0x40]
ucomisd xmm0, xmm1
ja 0x1000639c
xor edx, edx
ucomisd xmm1, xmm0
seta dl
jmp 0x10006010
mov edx, esi
mov dword [esp], esi
jmp 0x100063a2
mov dword [esp], esi
xor edx, edx
dec edx
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 4]
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
mov al, byte [eax + esi]
test al, al
jne 0x100063cf
mov esi, edx
mov ecx, dword [esp + 0xa0]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test al, 2
jne 0x100063d7
neg edx
jmp 0x100063b5
cmp dword [esp], 0
je 0x100063e9
test al, 1
sete al
mov ecx, dword [esp + 8]
xor al, byte [ecx + 0x10]
test al, 1
jne 0x100063b5
jmp 0x100063d3
lea ebx, [esp + 0x94]
mov ecx, edi
mov edx, ebx
call fcn.100767a0
xor esi, esi
movzx ecx, al
mov eax, dword [ebx]
mov ebx, dword [ebp + 8]
jmp 0x10005f66
mov ecx, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
bswap ebx
bswap eax
mov dword [esp + 0x6c], ebx
mov edx, ebx
not edx
movd xmm1, ebx
and ebx, 0xfffff
xor esi, esi
inc esi
or ebx, eax
mov edi, 8
mov dword [esp], esi
cmovne edi, esi
test edx, 0x7ff00000
mov edx, 8
cmovne edi, edx
mov dword [esp + 0x68], eax
mov word [esp + 0x78], di
movd xmm0, eax
punpckldq xmm0, xmm1
movsd xmm1, qword [0x101b11d0]
ucomisd xmm1, xmm0
ja 0x1000651f
xor eax, eax
inc eax
mov dword [esp], eax
ucomisd xmm0, qword [0x101b10f8]
jae 0x1000651a
mov eax, dword [esp + 8]
mov esi, dword [eax + 4]
mov edi, dword [eax]
movsd qword [esp + 0x30], xmm0
fld qword [esp + 0x30]
fnstcw word [esp + 0x16]
movzx edx, word [esp + 0x16]
or edx, 0xc00
mov word [esp + 0x22], dx
fldcw word [esp + 0x22]
fistp qword [esp + 0x30]
fldcw word [esp + 0x16]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
cmp edi, ebx
mov eax, esi
sbb eax, edx
jl 0x1000651a
cmp ebx, edi
sbb edx, esi
jl 0x1000651f
movd xmm1, edi
movd xmm2, esi
punpckldq xmm1, xmm2
movq qword [esp + 0x58], xmm1
fild qword [esp + 0x58]
fstp qword [esp + 0x50]
movsd xmm1, qword [esp + 0x50]
ucomisd xmm0, xmm1
mov edx, 1
mov ebx, dword [ebp + 8]
mov esi, ecx
ja 0x100063a9
xor edx, edx
ucomisd xmm1, xmm0
seta dl
neg edx
mov dword [esp], 7
jmp 0x10005e7e
xor edx, edx
inc edx
jmp 0x10006522
xor edx, edx
dec edx
mov ebx, dword [ebp + 8]
mov esi, ecx
jmp 0x100063a9
movsx edi, byte [edx]
mov ecx, edi
shl ecx, 0x10
movzx ebx, byte [edx + 1]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 2]
jmp 0x10006113
mov ecx, dword [edx]
bswap ecx
jmp 0x10005f82
mov eax, dword [esp + 0x24]
lea ecx, [edi + eax]
lea ebx, [esp + 0x64]
mov edx, ebx
call fcn.100767a0
mov eax, dword [ebx]
mov ebx, dword [ebp + 8]
jmp 0x10005f99
lea ebx, [esp + 0x98]
mov edx, ebx
call fcn.10004db0
xor edx, edx
cmp edx, dword [ebx + 4]
sbb edx, edx
or edx, dword [ebx]
jmp 0x100060c1