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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0xc]
push edi
test eax, eax
je 0x100801b3
push eax
call dword [0x100cb414]
add esp, 4
mov edi, dword [esi + 0x18]
cmp byte [edi + 9], 0
je 0x100801ca
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100801ca
call fcn.10021630
mov eax, dword [esi]
test eax, eax
je 0x100801e1
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100801e1
push eax
call dword [0x100cb414]
add esp, 4
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x100801f6
cmp ebx, 5
je 0x100801f6
cmp ebx, 6
jne 0x10080b6a
cmp dword [esi], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [esi + 4]
mov dword [esp + 0x34], edx
mov edx, dword [ecx + 4]
mov edx, dword [edx]
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], 0
je 0x1008022e
mov eax, dword [eax + 4]
cmp byte [eax + 0x14], 2
jne 0x1008022e
mov ebx, 5
jmp 0x100803ea
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jne 0x10080262
push 2
push ecx
call fcn.100700b0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100803ea
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
push ecx
push 1
mov dword [esi + 0xc], 1
call fcn.100252a0
add esp, 8
mov edi, dword [esi + 0x18]
cmp byte [edi + 8], 0
jne 0x100803ea
mov ebx, dword [edi + 4]
xor esi, esi
cmp byte [edi + 9], 0
mov dword [esp + 0x10], esi
je 0x1008028c
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1008028c
call fcn.10021630
mov al, byte [edi + 8]
cmp al, 2
je 0x100803c8
cmp al, 1
je 0x100803c8
movzx ecx, word [ebx + 0x16]
test cl, 0x40
je 0x100802bc
mov edx, dword [ebx + 0x4c]
cmp dword [edx], esi
je 0x100802bc
mov dword [esp + 0x10], 0x106
jmp 0x100803c8
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
je 0x10080305
cmp dword [eax + 0x4c], edi
je 0x100802dd
test byte [eax + 0x16], 0x20
je 0x100802dd
mov dword [esp + 0x10], 0x106
jmp 0x100803c8
mov eax, dword [eax + 0x48]
cmp eax, esi
je 0x10080305
mov edx, 1
lea esp, [esp]
cmp dword [eax], edi
je 0x100802fe
cmp dword [eax + 4], edx
jne 0x100802fe
cmp byte [eax + 8], dl
jne 0x100802af
mov eax, dword [eax + 0xc]
cmp eax, esi
jne 0x100802f0
mov eax, ecx
and eax, 0xfff7
mov dword [esp + 0x10], esi
mov word [ebx + 0x16], ax
cmp dword [ebx + 0x2c], esi
jne 0x10080320
or eax, 8
mov word [ebx + 0x16], ax
cmp dword [ebx + 0xc], 0
jne 0x10080335
call fcn.1006e270
mov dword [esp + 0x10], eax
test eax, eax
je 0x10080320
jmp 0x1008033c
cmp dword [esp + 0x10], 0
je 0x10080355
cmp byte [ebx + 0x14], 0
jne 0x10080355
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10080355
mov dword [ebx + 0xc], 0
call fcn.10025600
cmp byte [esp + 0x10], 5
jne 0x10080394
cmp byte [ebx + 0x14], 0
jne 0x10080394
mov esi, dword [ebx + 4]
add esi, 0x1bc
je 0x10080394
mov ecx, dword [esi]
test ecx, ecx
je 0x10080394
mov eax, dword [esi + 8]
test eax, eax
jl 0x10080394
push eax
mov eax, dword [esi + 4]
push eax
call ecx
add esp, 8
test eax, eax
je 0x1008038d
inc dword [esi + 8]
jmp 0x10080320
mov dword [esi + 8], 0xffffffff
cmp dword [esp + 0x10], 0
jne 0x100803c8
cmp byte [edi + 8], 0
jne 0x100803ba
inc dword [ebx + 0x28]
cmp byte [edi + 9], 0
je 0x100803ba
mov byte [edi + 0x28], 1
mov ecx, dword [ebx + 0x48]
lea edx, [edi + 0x20]
mov dword [edi + 0x2c], ecx
mov dword [ebx + 0x48], edx
mov byte [edi + 8], 1
cmp byte [ebx + 0x14], 1
jae 0x100803c8
mov byte [ebx + 0x14], 1
cmp byte [edi + 9], 0
je 0x100803db
add dword [edi + 0xc], 0xffffffff
jne 0x100803db
mov esi, edi
call fcn.1001c5c0
mov ebx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esp + 0x38], 1
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x20]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x3c], eax
test ebx, ebx
jne 0x1008041e
cmp eax, 5
jne 0x1008041e
cmp edx, edi
je 0x1008041e
lea ebx, [eax + 3]
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], 0
mov eax, dword [ebp + 0xc]
test eax, eax
jl 0x1008043a
cmp dword [esp + 0x2c], eax
jge 0x100804a7
mov edi, dword [esi + 0x10]
cmp edi, dword [esp + 0x10]
ja 0x100804a7
test ebx, ebx
jne 0x100804e9
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [0x100cb4d0]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x10080499
mov eax, dword [esp + 0x34]
push 2
lea edx, [esp + 0x34]
push edx
push edi
push eax
call fcn.1006b8c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10080499
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
push ebx
push eax
push edi
push esi
call fcn.10049030
mov ebx, eax
mov eax, dword [esp + 0x40]
add esp, 0x10
call fcn.10025a20
mov eax, 1
add dword [esi + 0x10], eax
add dword [esp + 0x2c], eax
jmp 0x1008042d
test ebx, ebx
jne 0x100804e9
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
mov edx, ecx
sub edx, eax
inc edx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x20], edx
cmp eax, ecx
ja 0x100804f2
cmp dword [esi + 0x28], ebx
jne 0x10080996
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
add eax, 0x58
mov dword [esi + 0x2c], edx
mov dword [eax], esi
mov dword [esi + 0x28], 1
jmp 0x10080996
cmp ebx, 0x65
jne 0x10080996
cmp dword [esp + 0x10], 0
jne 0x1008054f
mov edi, dword [esi + 4]
cmp byte [edi + 9], 0
je 0x10080510
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x10080510
call fcn.10021630
mov eax, dword [edi + 4]
mov dword [eax + 0x2c], 0
mov ecx, dword [edi + 4]
push ecx
call fcn.10068630
add esp, 4
cmp byte [edi + 9], 0
mov ebx, eax
je 0x1008053e
add dword [edi + 0xc], 0xffffffff
jne 0x1008053e
mov esi, edi
call fcn.1001c5c0
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 1
test ebx, ebx
je 0x1008054f
cmp ebx, 0x65
jne 0x10080568
mov ebx, dword [esi + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
inc ebx
push 1
call fcn.10049300
mov esi, dword [ebp + 8]
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x10080996
mov eax, dword [esi]
test eax, eax
je 0x1008057b
call fcn.10043520
cmp dword [esp + 0x3c], 5
jne 0x10080599
mov eax, dword [esi + 4]
push 2
call fcn.10070e50
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10080996
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
jge 0x100805d3
mov eax, dword [esp + 0x20]
cdq
idiv dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, eax
lea eax, [ecx + edx - 1]
cdq
idiv ecx
xor edx, edx
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [0x100cb4d0]
div dword [ecx + 0x20]
inc eax
cmp edi, eax
jne 0x100805e3
dec edi
jmp 0x100805e3
mov eax, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x20]
mov edi, eax
imul edi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x1c], edx
jge 0x100808ab
mov eax, dword [esp + 0x1c]
cdq
mov ecx, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
push ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x4c]
cdq
push ecx
push edx
push eax
call fcn.100083f0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], eax
lea esp, [esp]
cmp edi, dword [esp + 0x3c]
ja 0x100806a4
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [0x100cb4d0]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x1008069d
mov eax, dword [esp + 0x28]
push 0
lea edx, [esp + 0x14]
push edx
push edi
push eax
call fcn.1006b8c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1008069d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
jbe 0x10080685
mov eax, ecx
push eax
call fcn.1003f910
jmp 0x1008068f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1003a3a0
mov ebx, eax
mov eax, dword [esp + 0x14]
add esp, 4
call fcn.10025a20
inc edi
test ebx, ebx
je 0x10080630
jmp 0x100806b9
test ebx, ebx
jne 0x100806b9
mov eax, dword [esp + 0x28]
push 1
push ebx
call fcn.1006e640
add esp, 8
mov ebx, eax
mov edx, dword [esp + 0x20]
mov esi, dword [0x100cb4d0]
mov ecx, dword [esp + 0x44]
lea eax, [esi + edx]
cdq
cmp edx, ecx
jg 0x100806dd
jl 0x100806d7
cmp eax, dword [esp + 0x40]
jae 0x100806dd
mov dword [esp + 0x14], edx
jmp 0x100806e5
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esi + ecx]
cdq
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
test ebx, ebx
jne 0x10080996
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x24], edx
jg 0x10080814
jl 0x1008071f
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], eax
jae 0x10080814
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
push edi
mov dword [esp + 0x48], 0
call fcn.10004b80
mov edx, dword [esp + 0x3c]
inc eax
push eax
push edx
call fcn.1006b8c0
mov esi, dword [esp + 0x40]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10080780
mov ebx, dword [esp + 0x24]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
push ebx
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
add esp, 0x14
mov ebx, eax
test esi, esi
je 0x100807f7
test byte [esi + 0x18], 0x40
mov edi, dword [esi + 0x10]
je 0x100807d5
dec dword [edi + 0x78]
mov ecx, dword [edi + 0x88]
mov dword [esi + 0xc], ecx
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x88], esi
mov eax, dword [eax]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x14]
push edx
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x98]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.100083f0
push edx
push eax
mov eax, dword [edi + 0x3c]
push eax
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 0x48]
call edx
add esp, 0x10
jmp 0x100807dc
mov eax, esi
call fcn.1001d7d0
cmp dword [edi + 0x78], 0
jne 0x100807f7
mov eax, dword [edi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x100807f7
push edi
call fcn.10069eb0
add esp, 4
mov ecx, dword [esp + 0x48]
add dword [esp + 0x20], ecx
mov edx, dword [esp + 0x4c]
adc dword [esp + 0x24], edx
test ebx, ebx
je 0x10080701
jmp 0x10080996
test ebx, ebx
jne 0x10080996
mov esi, dword [esp + 0x2c]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x48]
push ecx
push esi
call edx
add esp, 8
test eax, eax
jne 0x1008085d
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
cmp edx, ecx
jl 0x1008085d
jg 0x1008084c
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x40]
jbe 0x1008085d
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [esp + 0x44]
push ecx
push esi
call edx
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x10080996
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 0x3c]
cmp dword [ecx], eax
je 0x1008088d
mov eax, dword [ecx]
push ebx
push 0x15
push ecx
mov ecx, dword [eax + 0x28]
call ecx
add esp, 0xc
cmp eax, 0xc
jne 0x10080889
xor eax, eax
jmp 0x1008088d
test eax, eax
jne 0x100808a6
cmp byte [esi + 7], 0
jne 0x100808a6
movzx ecx, byte [esi + 0xb]
mov eax, dword [esi + 0x3c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
add esp, 8
mov esi, dword [ebp + 8]
jmp 0x100808be
mov eax, dword [esp + 0x28]
push 0
push 0
mov dword [eax + 0x18], edi
call fcn.1006e640
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x10080996
mov esi, dword [esi + 4]
cmp byte [esi + 8], al
je 0x10080991
cmp byte [esi + 9], al
je 0x100808e8
inc dword [esi + 0xc]
cmp byte [esi + 0xa], al
jne 0x100808e8
mov edi, esi
call fcn.10021630
cmp byte [esi + 8], 2
jne 0x10080979
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x10080a8d
cmp byte [ebx + 0x10], 2
jne 0x10080a60
cmp byte [ebx + 4], al
je 0x10080a60
cmp byte [ebx + 5], 1
jne 0x10080a60
mov byte [ebx + 0x10], 1
dec dword [esi + 0x14]
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 0x3c]
mov byte [eax + 0x14], 1
test edi, edi
je 0x10080972
cmp dword [edi + 8], 0
je 0x10080965
lea ebx, [edi + 0xc]
mov dword [esp + 0x34], 0x7d
lea ebx, [ebx]
mov edx, dword [ebx]
push edx
call fcn.100227f0
add esp, 4
add ebx, 4
sub dword [esp + 0x34], 1
jne 0x10080950
push edi
call sym.SQLite.Interop.dll_sqlite3_free
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [eax + 0x3c], 0
mov eax, esi
call fcn.1002c510
cmp byte [esi + 9], 0
je 0x10080991
add dword [esi + 0xc], 0xffffffff
jne 0x10080991
call fcn.1001c5c0
mov ebx, 0x65
cmp dword [esp + 0x38], 0
je 0x10080b55
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x18]
cmp byte [edi + 8], 2
jne 0x10080a02
cmp byte [edi + 9], 0
mov esi, dword [edi + 4]
je 0x100809c4
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100809c4
call fcn.10021630
cmp byte [esi + 0x11], 0
je 0x100809d3
call fcn.1007ad40
test eax, eax
jne 0x100809ef
cmp byte [esi + 0x13], 0
je 0x100809e1
mov ecx, dword [esi]
mov edx, dword [esi + 0x2c]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
push 0
push 0
call fcn.1006e640
add esp, 8
cmp byte [edi + 9], 0
je 0x10080a02
add dword [edi + 0xc], 0xffffffff
jne 0x10080a02
mov esi, edi
call fcn.1001c5c0
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x18]
cmp byte [esi + 8], 0
je 0x10080b55
cmp byte [esi + 9], 0
je 0x10080a28
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x10080a28
mov edi, esi
call fcn.10021630
cmp byte [esi + 8], 2
jne 0x10080b3d
mov ecx, dword [esi + 4]
mov edi, dword [ecx]
mov eax, dword [edi + 0x28]
mov dword [esp + 0x34], ecx
test eax, eax
jne 0x10080b44
cmp byte [edi + 0x10], 2
jne 0x10080ab5
cmp byte [edi + 4], al
je 0x10080ab5
cmp byte [edi + 5], 1
jne 0x10080ab5
mov byte [edi + 0x10], 1
jmp 0x10080aea
movzx ecx, byte [ebx + 0x13]
inc dword [ebx + 0x64]
push 1
push ecx
mov eax, ebx
call fcn.10027e40
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x10080a86
cmp ecx, 0xa
jne 0x10080a8d
mov dword [ebx + 0x28], eax
mov byte [ebx + 0x10], 6
mov ebx, eax
test ebx, ebx
je 0x10080927
cmp byte [esi + 9], 0
je 0x10080996
add dword [esi + 0xc], 0xffffffff
jne 0x10080996
call fcn.1001c5c0
jmp 0x10080996
movzx ecx, byte [edi + 0x13]
inc dword [edi + 0x64]
push 1
push ecx
mov eax, edi
call fcn.10027e40
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x10080adb
cmp ecx, 0xa
jne 0x10080ae2
mov dword [edi + 0x28], eax
mov byte [edi + 0x10], 6
mov ecx, dword [esp + 0x34]
test eax, eax
jne 0x10080b44
dec dword [esi + 0x14]
mov edi, dword [ecx + 0x3c]
mov byte [ecx + 0x14], 1
mov dword [esp + 0x3c], edi
test edi, edi
je 0x10080b36
cmp dword [edi + 8], 0
je 0x10080b29
add edi, 0xc
mov dword [esp + 0x38], 0x7d
lea ecx, [ecx]
mov edx, dword [edi]
push edx
call fcn.100227f0
add esp, 4
add edi, 4
sub dword [esp + 0x38], 1
jne 0x10080b10
mov edi, dword [esp + 0x3c]
push edi
call sym.SQLite.Interop.dll_sqlite3_free
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword [ecx + 0x3c], 0
mov eax, esi
call fcn.1002c510
cmp byte [esi + 9], 0
je 0x10080b55
add dword [esi + 0xc], 0xffffffff
jne 0x10080b55
call fcn.1001c5c0
cmp ebx, 0xc0a
jne 0x10080b62
mov ebx, 7
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], ebx
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x10080b81
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10080b81
push eax
call dword [0x100cb41c]
add esp, 4
mov eax, dword [esi + 0x18]
cmp byte [eax + 9], 0
je 0x10080b9a
add dword [eax + 0xc], 0xffffffff
jne 0x10080b9a
mov esi, eax
call fcn.1001c5c0
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10080bae
push eax
call dword [0x100cb41c]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret