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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
movzx eax, byte [esi + 0x92]
test dword [edi + 0x1c], 0x4000
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], eax
je 0x10098e6a
mov ecx, dword [edx + 0x48]
mov ebx, 0xfff0bdc0
mov dword [esp + 0x1c], ebx
test ecx, ecx
je 0x100988ab
mov edx, dword [edi + 0x14]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
test edx, edx
jle 0x100988a7
mov eax, dword [edi + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x100988a3
inc ebx
add eax, 0x10
cmp ebx, edx
jl 0x10098897
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x10]
mov ecx, ebx
mov ebx, dword [edx + 0x10]
add ecx, ecx
mov dword [esp + 0x20], ebx
mov eax, dword [eax + ecx*8]
mov dword [esp + 0x30], eax
test ebx, ebx
je 0x10098c4e
jmp 0x100988d0
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
je 0x1009892c
mov ecx, dword [edx]
mov eax, dword [ebx + 8]
test ecx, ecx
jne 0x100988fd
neg eax
sbb eax, eax
jmp 0x10098908
test eax, eax
je 0x1009890c
mov edx, eax
call fcn.100e98d0
test eax, eax
je 0x10098928
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push dword [ebp + 0x10]
mov edx, ebx
call fcn.10098fc0
add esp, 8
test eax, eax
je 0x10098c37
mov eax, dword [esp + 0x30]
cmp byte [esi + 0x92], 0
push eax
je 0x10098945
mov edx, dword [ebx + 8]
mov ecx, edi
call fcn.100a68a0
add esp, 4
jmp 0x10098954
push dword [ebx + 8]
xor edx, edx
mov ecx, esi
call fcn.100a6780
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x10098b01
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x28]
push ecx
push ebx
mov edx, eax
mov ecx, esi
call fcn.1009a380
add esp, 0xc
test eax, eax
jne 0x10098afd
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1009898f
mov ecx, eax
mov dword [esp + 0x20], eax
jmp 0x1009899e
mov eax, dword [ebx + 0x24]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ecx
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x10098a0b
mov eax, dword [esp + 0x14]
movsx eax, word [eax + 0x28]
cmp dword [ecx + esi*4], eax
jne 0x100989b9
mov dword [ecx + esi*4], 0xffffffff
cmp dword [edi + 0x138], 0
je 0x10098a05
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
test eax, eax
je 0x100989d7
mov eax, dword [eax + 4]
movsx ecx, word [eax + esi*2]
jmp 0x100989db
movsx ecx, word [edx + 0x28]
mov eax, dword [edx + 4]
push dword [esp + 0x1c]
mov edx, dword [edx]
add ecx, ecx
push dword [eax + ecx*8]
mov ecx, dword [esp + 0x18]
call fcn.100a71e0
xor ecx, ecx
add esp, 8
cmp eax, 2
sete cl
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x100989a5
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push dword [eax]
mov edx, dword [esp + 0x20]
push 0
push dword [eax + 0x1c]
mov ecx, esi
call fcn.100a6f40
mov eax, dword [ebp + 8]
inc dword [esi + 0x28]
add esp, 0xc
test eax, eax
je 0x10098a54
push dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
push dword [esp + 0x2c]
mov ecx, esi
push ebx
push dword [esp + 0x38]
push dword [esp + 0x30]
call fcn.10099910
add esp, 0x1c
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10098aa9
mov eax, dword [esi + 0x78]
test eax, eax
mov ecx, esi
cmovne ecx, eax
mov eax, dword [ecx + 0x1cc]
test eax, eax
je 0x10098a87
mov eax, dword [eax]
cmp eax, dword [ebx + 0x1c]
jne 0x10098a7c
cmp byte [ebx + 0x19], 7
je 0x10098aa9
cmp eax, dword [ebx + 0x20]
jne 0x10098a87
cmp byte [ebx + 0x1a], 7
je 0x10098aa9
push dword [esp + 0x28]
mov ecx, esi
push 1
push edx
push dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
push ebx
push dword [esp + 0x38]
push dword [esp + 0x30]
call fcn.10099910
add esp, 0x1c
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x10098c37
cmp dword [edi + 0x1d8], 0
je 0x10098acc
mov edx, ecx
mov ecx, edi
call fcn.100ecc10
jmp 0x10098c37
cmp ecx, dword [edi + 0x130]
jb 0x10098aef
cmp ecx, dword [edi + 0x134]
jae 0x10098aef
mov eax, dword [edi + 0x12c]
mov dword [ecx], eax
mov dword [edi + 0x12c], ecx
jmp 0x10098c37
push ecx
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
jmp 0x10098c37
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x34], 0
je 0x10098e6a
cmp byte [edi + 0x49], 0
jne 0x10098e6a
test eax, eax
jne 0x10098c37
mov esi, dword [esi + 8]
test esi, esi
jne 0x10098b41
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x78], esi
jne 0x10098b3a
mov eax, dword [ecx]
test byte [eax + 0x44], 8
jne 0x10098b3a
mov byte [ecx + 0x17], 1
call fcn.100c9330
mov esi, eax
mov eax, dword [esi + 0x88]
mov edx, dword [ebx + 0x14]
inc eax
add eax, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0
test edx, edx
jle 0x10098bd9
lea edi, [ebx + 0x24]
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
mov eax, dword [esi + 0xc]
inc ecx
add edx, ecx
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x10098b8e
push 0
push dword [esp + 0x30]
mov ecx, esi
push edx
mov edx, 0x32
call fcn.100c9070
add esp, 0xc
jmp 0x10098bc4
mov ebx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x28]
inc ecx
add edi, 8
mov dword [esp + 0x28], ecx
cmp ecx, dword [ebx + 0x14]
jl 0x10098b60
mov edi, dword [esp + 0x3c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
movzx edx, byte [ebx + 0x18]
cmp dword [eax + 0x30], ecx
jg 0x10098c01
push 0
push 0xffffffffffffffff
push edx
mov edx, 0x91
mov ecx, esi
call fcn.100c9070
add esp, 0xc
jmp 0x10098c33
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4], 0x91
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0xffffffff
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0x10]
mov ebx, dword [ebx + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x100988d0
mov ecx, dword [edx + 0x48]
mov edx, dword [edx]
add ecx, 0x38
push 0
call fcn.100e7ea0
mov ebx, dword [eax + 8]
add esp, 4
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x10098e6a
nop
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
test eax, eax
je 0x10098ca1
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
mov edx, ebx
call fcn.10098ec0
add esp, 8
test eax, eax
je 0x10098e57
cmp byte [ebx + 0x18], 0
jne 0x10098cc0
test dword [edi + 0x1c], 0x80000
jne 0x10098cc0
cmp dword [esi + 0x78], 0
jne 0x10098cc0
cmp byte [esi + 0x14], 0
je 0x10098e57
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
mov ecx, esi
call fcn.1009a380
add esp, 0xc
test eax, eax
je 0x10098cf7
cmp dword [esp + 0x34], 0
je 0x10098e6a
cmp byte [edi + 0x49], 0
jne 0x10098e6a
jmp 0x10098e57
push 0
push 0x58
mov ecx, edi
call fcn.100ec7e0
mov ebx, dword [esp + 0x34]
mov esi, eax
add esp, 8
test esi, esi
je 0x10098e12
push 0x50
lea eax, [esi + 8]
push 0
push eax
mov dword [esi + 4], 1
mov dword [esi], 1
call fcn.10003750
add esp, 0xc
mov dword [esi + 0x38], 0xffffffff
cmp byte [edi + 0x49], 0
jne 0x10098e09
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
lea eax, [eax + eax*4]
add eax, eax
mov edx, dword [esp + 0x30]
mov dword [esi + eax*8 - 0x40], 0
mov dword [esi + eax*8 - 0x44], 0
mov eax, dword [ecx]
mov dword [esi + 0x18], eax
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
inc dword [eax + 0x20]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x28]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x10]
inc dword [eax + 0x28]
cmp dword [ebp + 0xc], 0
je 0x10098da9
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ecx
push edx
push dword [esp + 0x28]
mov edx, esi
mov ecx, eax
call fcn.10099290
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
add esp, 0x18
cmp dword [ebp + 8], 0
je 0x10098e02
xor eax, eax
cmp dword [ebp + 0x10], eax
push 1
push dword [ebp + 8]
setne al
push ebx
push ecx
push edx
push dword [esp + 0x28]
mov edx, esi
movzx eax, byte [eax + ecx + 0x19]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], eax
call fcn.10099290
mov eax, dword [esp + 0x30]
add esp, 0x18
cmp byte [eax + 0x18], 0
jne 0x10098e02
mov eax, dword [esp + 0x3c]
cmp eax, 9
je 0x10098e02
cmp eax, 7
je 0x10098e02
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov dword [esi + 0x10], 0
mov edx, esi
mov ecx, edi
call fcn.100a0ee0
test ebx, ebx
je 0x10098e53
cmp dword [edi + 0x1d8], 0
je 0x10098e2a
mov edx, ebx
mov ecx, edi
call fcn.100ecc10
jmp 0x10098e53
cmp ebx, dword [edi + 0x130]
jb 0x10098e4a
cmp ebx, dword [edi + 0x134]
jae 0x10098e4a
mov eax, dword [edi + 0x12c]
mov dword [ebx], eax
mov dword [edi + 0x12c], ebx
jmp 0x10098e53
push ebx
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov ebx, dword [esp + 0x18]
mov ebx, dword [ebx + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x10098c70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret