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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x2c], esi
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
jne 0x101ddcdb
push esi
push 0x280
call fcn.10145440
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
cmp edi, esi
jne 0x101ddce7
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea eax, [edi + 0x238]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x24], eax
push ecx
add eax, 0x10
push edx
mov dword [esp + 0x24], eax
call fcn.101c0360
mov ebx, eax
add esp, 8
cmp ebx, esi
jne 0x101de25b
cmp dword [esp + 0x20], esi
jle 0x101de23b
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x100]
shl eax, 0xa
cdq
mov dword [esp + 0x40], eax
push esi
lea eax, [esp + 0x14]
push eax
push 0x1c
mov eax, ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x24], esi
call fcn.10180040
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, 2
jge 0x101ddd5d
mov eax, 2
mov esi, dword [esp + 0x10]
cdq
mov ebx, eax
mov eax, 1
mov edi, edx
call fcn.10144e00
test eax, eax
jne 0x101dddaf
mov eax, dword [esi + 0x64]
mov ecx, 0x2400
test word [eax + 8], cx
je 0x101ddd8e
push edi
push ebx
call fcn.10143150
add esp, 8
jmp 0x101ddd9c
mov edx, 4
mov dword [eax], ebx
mov dword [eax + 4], edi
mov word [eax + 8], dx
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101dddaf
push eax
call dword [0x10292480]
add esp, 4
push esi
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x101dde59
test esi, esi
je 0x101dddf9
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x101dddd8
push eax
call dword [0x10292478]
add esp, 4
mov edx, dword [esi + 0x78]
test edx, edx
je 0x101dddea
xor eax, eax
cmp ax, word [esi + 0x90]
jb 0x101dddfe
mov ebx, dword [esi]
mov eax, 0x19
mov dword [ebx + 0x40], eax
call fcn.10143850
mov edx, 0x1026de90
call fcn.1013bb70
mov edi, eax
mov ebx, edx
test esi, esi
je 0x101dde40
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
mov ecx, dword [esi + 0x28]
jne 0x101dde25
cmp ecx, 0xc0a
je 0x101dde25
mov eax, dword [eax + 0x44]
and eax, ecx
jmp 0x101dde2a
call fcn.10144890
mov ecx, dword [esi]
mov dword [esi + 0x28], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x101dde40
push eax
call dword [0x10292480]
add esp, 4
push 1
push esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebx
call sym.SQLite.Interop.dll_sqlite3_column_int
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x101dde61
mov dword [esp + 0x10], 0xffffffff
push esi
call sym.SQLite.Interop.dll_sqlite3_reset
mov ebx, eax
xor esi, esi
add esp, 4
cmp ebx, esi
jne 0x101ddf3c
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x101ddf3c
mov dword [esp + 0x34], eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x38], esi
call fcn.10131c80
mov edi, dword [esp + 0x54]
add esp, 8
mov ebx, eax
cmp dword [esp + 0x10], esi
jl 0x101ddefe
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
push ecx
push edx
push edi
push eax
call fcn.101042f0
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x3c]
mov esi, edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
push edx
push eax
push ecx
call fcn.101042f0
cmp edx, esi
jg 0x101ddefe
jl 0x101ddef4
cmp eax, dword [esp + 0x50]
jae 0x101ddefe
mov edx, dword [esp + 0x34]
mov dword [esp + 0x60], edx
jmp 0x101ddf3c
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edi
mov eax, ecx
cmp ecx, edx
jg 0x101ddf19
mov eax, edx
mov esi, dword [esp + 0x30]
cmp eax, esi
jge 0x101ddf2b
cmp ecx, edx
jle 0x101ddf2f
mov dword [esp + 0x10], ecx
jmp 0x101ddf2f
mov dword [esp + 0x10], esi
mov eax, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x10], 0
jle 0x101de239
mov ecx, dword [esp + 0x14]
push 0x280
push 0
push ecx
call fcn.100ffab0
mov esi, dword [esp + 0x30]
add esp, 0xc
mov dword [esi + 0xc], 1
test ebx, ebx
jne 0x101de21b
mov edi, dword [ebp + 8]
push ebx
lea edx, [esp + 0x34]
push edx
push 8
mov eax, edi
mov dword [esp + 0x3c], ebx
call fcn.10180040
add esp, 0xc
test eax, eax
jne 0x101ddfc7
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
add eax, 1
adc ecx, ebx
push ecx
push eax
push 1
push esi
call sym.SQLite.Interop.dll_sqlite3_bind_int64
push esi
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 0x14
push ebx
push esi
call sym.SQLite.Interop.dll_sqlite3_column_int
push esi
mov dword [esp + 0x24], eax
call sym.SQLite.Interop.dll_sqlite3_reset
mov esi, dword [esp + 0x30]
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x101ddfdd
cmp dword [esp + 0x28], 0
je 0x101de010
cmp eax, 1
jne 0x101de010
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add eax, 1
lea edx, [esp + 0x30]
push edx
adc ecx, 0
push ecx
push eax
push edi
mov dword [esp + 0x40], 0
call fcn.101c1120
add esp, 0x10
cmp dword [esp + 0x30], 0
mov ebx, eax
je 0x101de010
or dword [esi + 0xc], 2
test ebx, ebx
jne 0x101de21b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x1c]
push edx
push eax
push ecx
push edi
mov ebx, esi
call fcn.101c0840
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x101de21f
mov edx, dword [esp + 0x10]
cmp dword [esi + 4], edx
jne 0x101de21f
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push edi
mov eax, esi
call fcn.101d6b10
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x101de21f
push esi
push edi
mov dword [esp + 0x38], eax
call fcn.101d63d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x101de08e
mov dword [esp + 0x30], 1
jmp 0x101de097
cmp ebx, 0x64
jne 0x101de232
cmp dword [esp + 0x28], 0
mov edx, dword [esp + 0x18]
je 0x101de0ca
test edx, edx
jle 0x101de0ca
mov ecx, dword [esi + 0x2c]
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x28]
push ebx
push ecx
mov ecx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x48]
dec edx
push edx
push eax
push ecx
push edi
call fcn.101d2cc0
add esp, 0x1c
jmp 0x101de0ec
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
push esi
push edx
mov edx, dword [esp + 0x44]
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.101c6220
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
jne 0x101de1b8
cmp dword [ebx], eax
je 0x101de1b8
cmp dword [esp + 0x30], eax
jne 0x101de15f
push edi
mov eax, esi
mov edi, ebx
call fcn.101cd220
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x101de130
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.101d63d0
add esp, 8
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
cmp dword [edx + 4], ecx
jge 0x101de14d
cmp eax, 0x64
jne 0x101de152
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x1c]
mov ebx, edx
jmp 0x101de106
cmp eax, 0x64
je 0x101de156
test eax, eax
jne 0x101de1b3
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x1c]
mov ebx, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push ecx
push esi
mov esi, dword [esp + 0x40]
push edx
or eax, 0xffffffff
sub eax, dword [ebx + 4]
push esi
add dword [esp + 0x30], eax
push edi
call fcn.101d6110
add esp, 0x14
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x101de1d2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
push esi
lea esi, [esp + 0x6c]
mov dword [esp + 0x3c], 1
call fcn.10156e10
add esp, 0x10
jmp 0x101de1b8
mov edi, dword [ebp + 8]
mov ebx, edx
cmp dword [esp + 0x10], 0
je 0x101de1d2
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
neg eax
adc ecx, 0
neg ecx
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
lea edx, [esp + 0x18]
push edx
push edi
mov edi, ebx
call fcn.101c6430
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x101de217
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x30], 0
jne 0x101de217
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x28]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [ebp + 8]
add eax, 1
adc ecx, 0
push ecx
push eax
push edx
call fcn.101c0cb0
add esp, 0x14
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, esi
call fcn.101afc10
xor esi, esi
test ebx, ebx
je 0x101ddd13
jmp 0x101de23b
mov edi, esi
call fcn.101afc10
xor esi, esi
cmp dword [esp + 0x2c], esi
je 0x101de257
cmp ebx, esi
jne 0x101de257
mov eax, dword [ebp + 8]
push eax
lea eax, [esp + 0x60]
call fcn.101c0420
add esp, 4
mov ebx, eax
mov edi, dword [esp + 0x14]
push edi
call sym.SQLite.Interop.dll_sqlite3_free
mov ecx, dword [esp + 0x60]
add esp, 4
push ecx
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret