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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe8
mov eax, dword [0x10291210]
xor eax, esp
mov dword [esp + 0xe4], eax
mov eax, dword [ebp + 8]
fldz
mov dword [esp + 8], eax
fstp qword [esp + 0x70]
mov eax, dword [ebp + 0x10]
push esi
movzx esi, byte [ebx + 0x14]
mov dword [esp + 0x38], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [edi*4 + 4]
inc esi
mov dword [esp + 0x1c], edi
imul esi, eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x38], ecx
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
jne 0x1014b0a0
mov edx, esi
or edx, eax
je 0x1014b0a0
push eax
push esi
call fcn.10145440
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1014b0b9
mov eax, 7
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.100fd740
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebx + 0x14]
lea edx, [edi*4 + 4]
imul ecx, edx
push esi
add ecx, eax
push 0
push eax
mov dword [esp + 0x20], ecx
call fcn.100ffab0
movzx eax, byte [ebx + 0x14]
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x18], ecx
cmp eax, ecx
jle 0x1014b142
mov esi, dword [esp + 0xc]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
add ecx, eax
lea eax, [edx + ecx*4]
mov dword [esi], eax
xor eax, eax
test edi, edi
jle 0x1014b10e
mov ecx, dword [esi]
mov dword [ecx + eax*4], eax
inc eax
cmp eax, edi
jl 0x1014b104
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esi]
push eax
push ecx
push edi
push edx
push ebx
call fcn.101180a0
mov ecx, dword [esp + 0x30]
movzx eax, byte [ebx + 0x14]
add dword [esp + 0x38], edi
inc ecx
add esp, 0x18
add esi, 4
mov dword [esp + 0x18], ecx
cmp ecx, eax
jl 0x1014b0ef
movzx eax, byte [ebx + 0x14]
xor ecx, ecx
mov dword [esp + 0x18], ecx
test eax, eax
jle 0x1014b3ac
mov eax, dword [ebx + 0x10]
fldz
movzx esi, byte [ebx + 0x17]
sub eax, 4
cdq
idiv esi
mov edx, eax
mov eax, 0x55555556
imul edx
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, edi
sub edx, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edx
fst qword [esp + 0x48]
mov dword [esp + 0x14], 0
fst qword [esp + 0x68]
mov dword [esp + 0x34], esi
fst qword [esp + 0x70]
cmp esi, edx
jg 0x1014b372
mov eax, dword [esp + 0xc]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx]
mov edi, dword [edx + edi*4 - 4]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
shl ecx, 4
add ecx, eax
mov dword [esp + 0x64], ecx
lea ecx, [edi + edi*2]
shl ecx, 4
add ecx, eax
movzx eax, byte [ebx + 0x15]
add eax, 0xfffffffe
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], eax
jmp 0x1014b1e4
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x1c]
mov ecx, 0xc
lea edi, [esp + 0xb8]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x58]
dec eax
mov ecx, 0xc
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], 1
cmp eax, 1
jle 0x1014b263
fstp st(0)
lea esi, [edx + 4]
mov eax, dword [esi]
mov edx, dword [esp + 0x20]
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [esp + 0x10]
push ebx
lea edi, [esp + 0xbc]
cmp edx, dword [esp + 0x38]
jl 0x1014b244
lea edi, [esp + 0x8c]
call fcn.10118460
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
inc ecx
dec eax
add esp, 4
add esi, 4
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x1014b21f
fldz
mov eax, dword [esp + 0x60]
fld st(0)
mov ecx, eax
mov dl, byte [ebx + 0x16]
test dl, dl
jne 0x1014b282
fld dword [esp + ecx*4 + 0xc4]
fld dword [esp + ecx*4 + 0xc0]
jmp 0x1014b290
fild dword [esp + ecx*4 + 0xc4]
fild dword [esp + ecx*4 + 0xc0]
sub ecx, 2
fsubp st(1)
faddp st(1)
jns 0x1014b26b
fadd qword [esp + 0x48]
test dl, dl
jne 0x1014b2b1
fld dword [esp + eax*4 + 0x94]
fld dword [esp + eax*4 + 0x90]
jmp 0x1014b2bf
fild dword [esp + eax*4 + 0x94]
fild dword [esp + eax*4 + 0x90]
sub eax, 2
fsubp st(1)
faddp st(2)
jns 0x1014b29d
faddp st(1)
lea esi, [esp + 0x88]
lea edx, [esp + 0xb8]
mov eax, ebx
fstp qword [esp + 0x48]
call fcn.10118310
mov ecx, esi
fstp qword [esp + 0x20]
mov eax, ebx
call fcn.10118560
fstp qword [esp + 0x80]
lea ecx, [esp + 0xb8]
mov eax, ebx
call fcn.10118560
fadd qword [esp + 0x80]
mov ecx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x44]
je 0x1014b401
fld qword [esp + 0x68]
fld qword [esp + 0x20]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x1014b416
fld st(0)
fucomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x1014b34d
fld qword [esp + 0x70]
fcomp st(2)
fnstsw ax
test ah, 0x41
je 0x1014b418
fstp st(1)
fstp st(0)
fldz
inc ecx
mov dword [esp + 0x34], ecx
cmp ecx, dword [esp + 0x40]
jle 0x1014b1e0
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x1014b385
fld qword [esp + 0x78]
fcomp qword [esp + 0x48]
fnstsw ax
test ah, 0x41
jne 0x1014b399
fld qword [esp + 0x48]
mov eax, dword [esp + 0x14]
fstp qword [esp + 0x78]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
movzx eax, byte [ebx + 0x14]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jl 0x1014b17f
fstp st(0)
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + ecx*4]
mov eax, dword [eax]
mov edi, dword [esp + 0x3c]
lea esi, [eax + eax*2]
shl esi, 4
add esi, dword [esp + 0x10]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x38]
mov ecx, edx
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + edx*4]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + edx*4]
lea esi, [eax + eax*2]
shl esi, 4
add esi, dword [esp + 0x10]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [esp + 0x1c], esi
jle 0x1014b487
jmp 0x1014b434
fld qword [esp + 0x20]
mov dword [esp + 0x14], ecx
fstp qword [esp + 0x68]
fstp qword [esp + 0x70]
jmp 0x1014b351
fstp st(1)
fstp qword [esp + 0x68]
mov dword [esp + 0x14], ecx
fstp qword [esp + 0x70]
jmp 0x1014b351
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
cmp esi, edx
jl 0x1014b4dd
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0xc]
mov edx, dword [edx + eax*4]
mov eax, dword [edx + esi*4]
lea edi, [eax + eax*2]
shl edi, 4
add edi, dword [esp + 0x10]
push ecx
mov eax, edi
mov ecx, ebx
call fcn.10130620
add esp, 4
mov eax, edi
mov edi, dword [esp + 0x14]
push ebx
call fcn.10118460
inc esi
add esp, 4
cmp esi, dword [esp + 0x1c]
jl 0x1014b430
cmp dword [0x10292428], 0
je 0x1014b4ea
mov eax, dword [0x10299778]
test eax, eax
je 0x1014b4a3
push eax
call dword [0x10292478]
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call dword [0x10292454]
mov ecx, dword [esp + 0x10]
sub dword [0x10299710], eax
dec dword [0x10299734]
add esp, 4
push ecx
call dword [0x1029244c]
mov eax, dword [0x10299778]
add esp, 4
test eax, eax
je 0x1014b4f8
push eax
call dword [0x10292480]
jmp 0x1014b4f5
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x14], edx
jmp 0x1014b44c
mov edx, dword [esp + 0xc]
push edx
call dword [0x1029244c]
add esp, 4
mov ecx, dword [esp + 0xec]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.100fd740
mov esp, ebp
pop ebp
ret