Function at 0x100b0310
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, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
test edi, edi
jns 0x100b038f
cmp dword [ecx + 0x104], eax
je 0x100b038f
cmp dword [ecx + 0x118], ebx
jne 0x100b038f
mov dword [esp + 0x28], eax
cmp dword [ebp + 0x18], eax
jne 0x100b0354
cmp dword [ebp + 0x1c], eax
je 0x100b0359
mov eax, 1
lea edx, [esp + 0x28]
push edx
push eax
push dword [ebp + 0x14]
mov edx, esi
push dword [ebp + 0x10]
call fcn.100bdc60
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100b038b
mov edx, dword [esp + 0x28]
test edx, edx
je 0x100b038b
mov ecx, dword [ebp + 0x20]
call fcn.100b0290
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x100b0c9d
test eax, eax
jne 0x100b0c9d
mov dword [esp + 0x14], eax
push eax
lea eax, [esp + 0x18]
push eax
test edi, edi
jns 0x100b042d
mov edx, 0xd
call fcn.100bbe20
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100b0483
mov eax, esi
mov ecx, 0x400
imul ecx
mov ecx, dword [esp + 0x10]
mov esi, eax
mov edi, edx
mov eax, ebx
mov ebx, dword [esp + 0x14]
imul dword [ecx + 0x100]
shld edx, eax, 0xa
shl eax, 0xa
add eax, esi
adc edx, edi
push edx
push eax
push 1
push ebx
call sym.sqlite3.dll_sqlite3_bind_int64
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
imul dword [ecx + 0x100]
shld edx, eax, 0xa
shl eax, 0xa
add eax, esi
adc edx, edi
add eax, 0x3ff
adc edx, 0
push edx
push eax
push 2
push ebx
call sym.sqlite3.dll_sqlite3_bind_int64
mov esi, dword [esp + 0x2c]
add esp, 0x20
jmp 0x100b048b
mov edx, 0xc
call fcn.100bbe20
mov esi, eax
add esp, 8
test esi, esi
jne 0x100b0487
mov ecx, dword [esp + 0x10]
mov eax, ebx
mov ebx, dword [esp + 0x14]
imul dword [ecx + 0x100]
mov esi, eax
mov ecx, edx
mov eax, dword [ebp + 8]
mov edx, 0x400
imul edx
shld ecx, esi, 0xa
shl esi, 0xa
add esi, eax
mov eax, edi
adc ecx, edx
cdq
add esi, eax
adc ecx, edx
push ecx
push esi
push 1
push ebx
call sym.sqlite3.dll_sqlite3_bind_int64
add esp, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x100b0497
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x2c], ebx
test esi, esi
jne 0x100b0bd9
push ebx
mov esi, 1
call sym.sqlite3.dll_sqlite3_step
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, 0x64
jne 0x100b0bd5
mov dword [esp + 0x28], 0
test ebx, ebx
je 0x100b04fc
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100b04d1
push eax
call dword [0x1011d148]
add esp, 4
mov ecx, dword [ebx + 0x80]
test ecx, ecx
je 0x100b04e9
cmp si, word [ebx + 0x98]
jae 0x100b04e9
add ecx, 0x28
jmp 0x100b0501
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10008a20
mov ecx, 0x10114728
movzx eax, word [ecx + 8]
test al, 0x24
je 0x100b0510
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
jmp 0x100b0549
test al, 8
je 0x100b0523
movsd xmm0, qword [ecx]
call fcn.10027da0
mov esi, eax
mov edi, edx
jmp 0x100b0549
test al, 0x12
je 0x100b0538
cmp dword [ecx + 0x10], 0
je 0x100b0538
call fcn.10027dd0
mov esi, eax
mov edi, edx
jmp 0x100b0549
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
test ebx, ebx
je 0x100b0587
mov eax, dword [ebx]
mov edx, dword [ebx + 0x28]
cmp byte [eax + 0x53], 0
jne 0x100b0568
test edx, edx
jne 0x100b0568
xor ecx, ecx
jmp 0x100b0573
mov ecx, eax
call fcn.10005460
mov ecx, eax
mov eax, dword [ebx]
mov dword [ebx + 0x28], ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100b0587
push eax
call dword [0x1011d150]
add esp, 4
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
test ebx, ebx
je 0x100b05d6
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100b05a6
push eax
call dword [0x1011d148]
add esp, 4
mov ecx, dword [ebx + 0x80]
test ecx, ecx
je 0x100b05c3
mov eax, 2
cmp ax, word [ebx + 0x98]
jae 0x100b05c3
add ecx, 0x50
jmp 0x100b05db
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10008a20
mov ecx, 0x10114728
movzx eax, word [ecx + 8]
test al, 0x24
je 0x100b05ea
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
jmp 0x100b0623
test al, 8
je 0x100b05fd
movsd xmm0, qword [ecx]
call fcn.10027da0
mov esi, eax
mov edi, edx
jmp 0x100b0623
test al, 0x12
je 0x100b0612
cmp dword [ecx + 0x10], 0
je 0x100b0612
call fcn.10027dd0
mov esi, eax
mov edi, edx
jmp 0x100b0623
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
test ebx, ebx
je 0x100b0659
mov eax, dword [ebx]
mov edx, dword [ebx + 0x28]
cmp byte [eax + 0x53], 0
jne 0x100b063a
test edx, edx
jne 0x100b063a
xor ecx, ecx
jmp 0x100b0645
mov ecx, eax
call fcn.10005460
mov ecx, eax
mov eax, dword [ebx]
mov dword [ebx + 0x28], ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100b0659
push eax
call dword [0x1011d150]
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
test ebx, ebx
je 0x100b06a8
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100b0678
push eax
call dword [0x1011d148]
add esp, 4
mov ecx, dword [ebx + 0x80]
test ecx, ecx
je 0x100b0695
mov eax, 3
cmp ax, word [ebx + 0x98]
jae 0x100b0695
add ecx, 0x78
jmp 0x100b06ad
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10008a20
mov ecx, 0x10114728
movzx eax, word [ecx + 8]
test al, 0x24
je 0x100b06c0
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], ecx
jmp 0x100b06fd
test al, 8
je 0x100b06d3
movsd xmm0, qword [ecx]
call fcn.10027da0
mov dword [esp + 0x1c], edx
jmp 0x100b06fd
test al, 0x12
je 0x100b06e8
cmp dword [ecx + 0x10], 0
je 0x100b06e8
call fcn.10027dd0
mov dword [esp + 0x1c], edx
jmp 0x100b06fd
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x100b077d
mov eax, dword [ebx]
mov edx, dword [ebx + 0x28]
cmp byte [eax + 0x53], 0
jne 0x100b0718
test edx, edx
jne 0x100b0718
xor ecx, ecx
jmp 0x100b0723
mov ecx, eax
call fcn.10005460
mov ecx, eax
mov eax, dword [ebx]
mov dword [ebx + 0x28], ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100b0737
push eax
call dword [0x1011d150]
add esp, 4
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100b074a
push eax
call dword [0x1011d148]
add esp, 4
mov ecx, dword [ebx + 0x80]
test ecx, ecx
je 0x100b076a
mov eax, 4
cmp ax, word [ebx + 0x98]
jae 0x100b076a
add ecx, 0xa0
jmp 0x100b0782
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10008a20
mov ecx, 0x10114728
movzx eax, word [ecx + 8]
test al, 2
je 0x100b0795
cmp byte [ecx + 0xa], 1
jne 0x100b0795
mov eax, dword [ecx + 0xc]
jmp 0x100b07c4
test al, 0x10
je 0x100b07af
mov edx, dword [ecx + 0xc]
test eax, 0x4000
je 0x100b07a9
mov eax, dword [ecx]
add eax, edx
jmp 0x100b07c4
mov dword [esp + 0xc], edx
jmp 0x100b07c8
test al, 1
je 0x100b07bd
mov dword [esp + 0xc], 0
jmp 0x100b07c8
mov dl, 1
call fcn.10028f90
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x100b0840
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x28]
cmp byte [ecx + 0x53], 0
jne 0x100b07df
test edx, edx
jne 0x100b07df
xor eax, eax
jmp 0x100b07e6
call fcn.10005460
mov ecx, dword [ebx]
mov dword [ebx + 0x28], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x100b07fa
push eax
call dword [0x1011d150]
add esp, 4
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100b080d
push eax
call dword [0x1011d148]
add esp, 4
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x100b082d
mov eax, 4
cmp ax, word [ebx + 0x98]
jae 0x100b082d
add esi, 0xa0
jmp 0x100b0845
mov ecx, dword [ebx]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10008a20
mov esi, 0x10114728
movzx ecx, word [esi + 8]
mov eax, ecx
test cl, 0x12
je 0x100b08bb
mov edi, dword [esi + 0xc]
test ecx, 0x4000
je 0x100b08ab
mov edx, dword [esi]
add edx, edi
test edx, edx
jg 0x100b086d
test cl, 0x10
je 0x100b08ab
mov edx, 1
push 1
mov ecx, esi
call fcn.10027740
add esp, 4
test eax, eax
je 0x100b0881
xor esi, esi
jmp 0x100b08e8
push dword [esi]
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi]
mov ecx, 0xbdff
add dword [esi + 0xc], eax
add esp, 0xc
mov ax, word [esi + 8]
mov edi, dword [esi + 0xc]
and ax, cx
movzx eax, ax
or eax, 0x10
mov word [esi + 8], ax
test edi, edi
je 0x100b08d9
mov esi, dword [esi + 0x10]
jmp 0x100b08e8
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x100b08d4
cmp byte [esi + 0xa], 1
jne 0x100b08d4
mov esi, dword [esi + 0x10]
jmp 0x100b08e8
test cl, 1
je 0x100b08dd
xor esi, esi
jmp 0x100b08e8
mov dl, 1
mov ecx, esi
call fcn.100289d0
mov esi, eax
test ebx, ebx
je 0x100b091e
mov eax, dword [ebx]
mov edx, dword [ebx + 0x28]
cmp byte [eax + 0x53], 0
jne 0x100b08ff
test edx, edx
jne 0x100b08ff
xor ecx, ecx
jmp 0x100b090a
mov ecx, eax
call fcn.10005460
mov ecx, eax
mov eax, dword [ebx]
mov dword [ebx + 0x28], ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100b091e
push eax
call dword [0x1011d150]
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, ecx
or eax, dword [esp + 0x14]
je 0x100b0a2f
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100b0a2f
test esi, esi
je 0x100b0a2f
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x38]
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
cmove eax, ecx
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x34]
push eax
push edi
push esi
push dword [ebp + 0x14]
call fcn.100ae750
add esp, 0x14
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100b0bd5
cmp dword [ebp + 0x18], eax
jne 0x100b0999
cmp dword [ebp + 0x1c], eax
jne 0x100b0999
mov eax, dword [esp + 0x34]
mov edx, 1
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
jmp 0x100b09a7
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
xor edx, edx
lea eax, [esp + 0x28]
push eax
push edi
mov edi, dword [ebp + 0x20]
push esi
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [esp + 0x30]
push ecx
mov ecx, dword [edi + 4]
inc ecx
call fcn.100bdab0
add esp, 0x24
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100b0bd5
mov esi, dword [edi + 4]
mov eax, esi
and eax, 0x8000000f
jns 0x100b09f1
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x100b0a1e
mov edi, dword [edi]
call sym.sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x100b0a51
lea eax, [esi*4 + 0x40]
mov ecx, edi
push 0
push eax
call fcn.10004d90
add esp, 8
test eax, eax
je 0x100b0a51
mov edi, dword [ebp + 0x20]
mov esi, dword [edi + 4]
mov dword [edi], eax
mov ecx, dword [edi]
mov eax, dword [esp + 0x28]
mov dword [ecx + esi*4], eax
inc dword [edi + 4]
jmp 0x100b0497
cmp dword [ebp + 0x18], 0
mov edi, dword [esp + 0xc]
jne 0x100b09a5
cmp dword [ebp + 0x1c], 0
jne 0x100b09a5
mov edx, 1
jmp 0x100b09a7
mov esi, dword [esp + 0x28]
test esi, esi
je 0x100b0bce
mov edi, dword [esi + 0x40]
test edi, edi
je 0x100b0abc
cmp dword [0x1011d0f8], 0
je 0x100b0ab2
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100b0a80
push eax
call dword [0x1011d148]
add esp, 4
push edi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push edi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100b0ac1
push eax
call dword [0x1011d150]
jmp 0x100b0ab9
push edi
call dword [0x1011d11c]
add esp, 4
mov eax, dword [0x1011f3e8]
cmp byte [esi + 5], 0
jne 0x100b0b26
mov edi, dword [esi + 0x28]
test edi, edi
je 0x100b0b26
cmp dword [0x1011d0f8], 0
je 0x100b0b17
test eax, eax
je 0x100b0ae5
push eax
call dword [0x1011d148]
add esp, 4
push edi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push edi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100b0b26
push eax
call dword [0x1011d150]
jmp 0x100b0b1e
push edi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
mov edi, dword [esi + 0x34]
test edi, edi
je 0x100b0b73
mov ebx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100b0b48
push eax
call dword [0x1011d148]
add esp, 4
mov edx, edi
mov ecx, ebx
call fcn.10004cc0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100b0b62
push eax
call dword [0x1011d150]
add esp, 4
push dword [esp + 0x28]
call sym.sqlite3.dll_sqlite3_finalize
mov eax, dword [0x1011f3e8]
add esp, 4
cmp dword [0x1011d0f8], 0
je 0x100b0bc4
test eax, eax
je 0x100b0b8a
push eax
call dword [0x1011d148]
add esp, 4
push esi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push esi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100b0bce
push eax
call dword [0x1011d150]
add esp, 4
mov esi, 7
jmp 0x100b0bd9
push esi
call dword [0x1011d11c]
add esp, 4
mov esi, 7
jmp 0x100b0bd9
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x100b0ca1
mov ebx, dword [edi]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100b0bf8
push eax
call dword [0x1011d148]
add esp, 4
cmp dword [edi + 0x94], 0
jl 0x100b0c15
jg 0x100b0c0c
cmp dword [edi + 0x90], 0
jbe 0x100b0c15
mov edx, edi
mov ecx, ebx
call fcn.1002f010
mov ecx, edi
call fcn.1002ccc0
mov dword [edi + 0x14], 0x2df20da3
mov dword [edi + 0x24], 0xffffffff
mov dword [edi + 0x28], 0
mov word [edi + 0x9a], 0xff02
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x20], 1
mov dword [edi + 0x38], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
cmp byte [ebx + 0x53], 0
jne 0x100b0c72
test eax, eax
jne 0x100b0c72
xor edi, edi
jmp 0x100b0c7d
mov edx, eax
mov ecx, ebx
call fcn.10005460
mov edi, eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100b0ca3
push eax
call dword [0x1011d150]
add esp, 4
cmp esi, 0x65
cmovne edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0xc]
xor edi, edi
cmp esi, 0x65
cmovne edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret