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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
inc eax
mov dword [esp + 0x5c], eax
inc eax
mov ecx, eax
mov dword [esp + 0x3c], eax
push ebx
mov ebx, dword [esp + 0x50]
push ebp
lea ebp, [ecx + 1]
mov dword [esp + 0x2c], ecx
add ecx, 2
mov byte [esp + 0xb], 1
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x30], ecx
inc ecx
mov dword [esp + 0x40], ecx
inc ecx
push esi
mov dword [esp + 0x40], ecx
inc ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ecx
push edi
mov edi, dword [ebx]
mov dword [esp + 0x40], edi
cmp eax, ecx
jg 0x100136f4
mov eax, ecx
mov esi, dword [ebx + 8]
mov dword [ebx + 0x2c], eax
test esi, esi
jne 0x10013720
cmp dword [ebx + 0x74], esi
jne 0x1001370d
test byte [edi + 0x4c], 8
jne 0x1001370d
mov byte [ebx + 0x17], 1
push ebx
call fcn.1005cd00
mov esi, eax
add esp, 4
test esi, esi
je 0x10013d7a
mov eax, dword [esp + 0x60]
test eax, eax
je 0x10013d7a
cmp dword [eax + 0x1c], 0
je 0x10013d7a
push 0x5c
push 0x10086df4
push dword [eax]
push str.sqlite__
call fcn.1002de50
add esp, 0x10
test eax, eax
je 0x10013d7a
mov eax, dword [esp + 0x60]
push dword [eax + 0x48]
push edi
call fcn.10055670
mov ecx, dword [edi + 0x10]
mov edx, eax
mov edi, dword [esp + 0x68]
add edx, edx
mov dword [esp + 0x38], eax
push dword [ecx + edx*8]
push 0
push dword [edi]
push 0x1c
push ebx
call fcn.10036c80
add esp, 0x1c
test eax, eax
jne 0x10013d7a
push dword [edi]
push eax
push dword [edi + 0x1c]
push dword [esp + 0x3c]
push ebx
call fcn.100595c0
mov eax, dword [esp + 0x84]
add esp, 0x14
mov ecx, dword [ebx + 0x28]
mov edx, eax
inc eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x14], eax
inc eax
cmp ecx, eax
jg 0x100137b9
mov ecx, eax
push 0x6c
push edi
push dword [esp + 0x38]
mov dword [ebx + 0x28], ecx
push edx
push ebx
call fcn.1004d870
push dword [edi]
push dword [esp + 0x50]
push esi
call fcn.10065220
mov ebx, dword [edi + 8]
add esp, 0x20
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x10013cf5
lea esp, [esp]
test eax, eax
je 0x100137fc
cmp eax, ebx
jne 0x10013ce6
mov eax, dword [ebx + 0x24]
neg eax
sbb al, al
and byte [esp + 0x13], al
test byte [edi + 0x24], 0x20
je 0x10013822
mov eax, dword [ebx + 0x38]
and al, 3
cmp al, 2
jne 0x10013822
movzx edi, word [ebx + 0x32]
mov eax, dword [esp + 0x60]
mov ecx, edi
jmp 0x10013834
test byte [ebx + 0x38], 8
mov eax, ebx
movzx edi, word [ebx + 0x34]
mov ecx, edi
je 0x10013834
movzx ecx, word [ebx + 0x32]
mov eax, dword [eax]
lea ebp, [ecx - 1]
push 0
push eax
push 0
push dword [esp + 0x54]
push 0
push 0x6e
push esi
call fcn.1005c550
mov edx, dword [esp + 0x78]
add esp, 0x1c
mov ecx, dword [esp + 0x1c]
add ecx, ebp
mov eax, dword [edx + 0x2c]
cmp eax, ecx
jg 0x10013862
mov eax, ecx
push dword [esp + 0x30]
mov dword [edx + 0x2c], eax
push dword [ebx + 0x2c]
push dword [esp + 0x1c]
push 0x6c
push esi
call fcn.1005c4f0
push ebx
push dword [esp + 0x74]
call fcn.10067660
push dword [esp + 0x68]
push edi
push 0x46
push esi
call fcn.1005c490
mov edi, dword [esp + 0x98]
lea eax, [edi + 2]
push eax
movzx eax, word [ebx + 0x32]
push eax
push 0x46
push esi
call fcn.1005c490
push 0xfffffffffffffff8
push 0x10087ba8
push edi
lea eax, [edi + 1]
push eax
push 0
push 0x3f
push esi
call fcn.1005c550
mov eax, dword [esi + 0x6c]
add esp, 0x58
test eax, eax
jle 0x100138d7
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x14]
push edi
push 0x24
push esi
call fcn.1005c430
push dword [esp + 0x40]
mov dword [esp + 0x60], eax
push 0
push 0x46
push esi
call fcn.1005c490
mov eax, dword [esi + 0x6c]
add esp, 0x1c
mov dword [esp + 0x24], eax
test ebp, ebp
jle 0x10013b23
mov eax, dword [esp + 0x5c]
push 0
dec dword [eax + 0x38]
mov edi, dword [eax + 0x38]
lea eax, [ebp*4]
push eax
push dword [esp + 0x48]
mov dword [esp + 0x48], edi
call fcn.1003de20
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
je 0x10013cda
push 0xb
push esi
call fcn.1005c3e0
mov eax, dword [esi + 0x6c]
add esp, 8
mov dword [esp + 0x24], eax
cmp ebp, 1
jne 0x1001396b
cmp word [ebx + 0x32], bp
jne 0x1001396b
cmp byte [ebx + 0x36], 0
je 0x1001396b
push edi
push dword [esp + 0x20]
push 0x33
push esi
call fcn.1005c490
add esp, 0x10
xor ebx, ebx
test ebp, ebp
jle 0x100139e6
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
push dword [eax + ebx*4]
push dword [esp + 0x60]
call fcn.1004caf0
push dword [esp + 0x3c]
mov edi, eax
push ebx
push 0x46
push esi
call fcn.1005c490
push dword [esp + 0x40]
push ebx
push dword [esp + 0x34]
push 0x5a
push esi
call fcn.1005c4f0
mov eax, dword [esp + 0x48]
push 0xfffffffffffffffe
push edi
add eax, ebx
push eax
push 0
push dword [esp + 0x64]
push 0x34
push esi
call fcn.1005c550
mov ecx, dword [esp + 0x68]
add esp, 0x48
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x100139dd
lea ecx, [eax + eax*4]
mov edx, 0x80
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
inc ebx
cmp ebx, ebp
jl 0x10013971
mov edi, dword [esp + 0x3c]
push dword [esp + 0x34]
push ebp
push 0x46
push esi
call fcn.1005c490
push edi
push esi
call fcn.10064950
mov ecx, dword [esp + 0x3c]
add esp, 0x18
sub ecx, 1
mov edx, dword [esi + 0x6c]
jns 0x10013a0c
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x10013a1b
mov eax, 0x10095994
jmp 0x10013a24
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ebx, dword [esp + 0x20]
xor edi, edi
mov dword [eax + 8], edx
test ebp, ebp
jle 0x10013ab2
mov ecx, dword [ebx + edi*4]
mov edx, dword [esi + 0x6c]
test ecx, ecx
jns 0x10013a42
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x10013a51
mov eax, 0x10095994
jmp 0x10013a5a
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x6c]
add edx, edi
cmp dword [esi + 0x70], ecx
jg 0x10013a7e
push edx
push edi
push dword [esp + 0x1c]
push 0x5a
push esi
call fcn.10025690
add esp, 0x14
jmp 0x10013aad
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x5a
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
inc edi
cmp edi, ebp
jl 0x10013a35
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x3c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x10013ad0
push edx
push esi
push ecx
call fcn.10031450
add esp, 0xc
jmp 0x10013ad9
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x40]
cmp dword [ecx + 0x1e8], 0
je 0x10013af2
push ebx
push ecx
call fcn.100281e0
add esp, 8
jmp 0x10013b1b
cmp ebx, dword [ecx + 0x138]
jb 0x10013b12
cmp ebx, dword [ecx + 0x13c]
jae 0x10013b12
mov eax, dword [ecx + 0x134]
mov dword [ebx], eax
mov dword [ecx + 0x134], ebx
jmp 0x10013b1b
push ebx
call sym.sqlite3.dll_sqlite3_free
add esp, 4
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
push 0xfffffffffffffff8
push 0x10087bd0
push ebp
push dword [esp + 0x78]
push 1
push 0x3f
push esi
call fcn.1005c550
mov ecx, dword [esi + 0x6c]
add esp, 0x1c
test ecx, ecx
jle 0x10013b5a
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
mov edx, 2
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x10013b73
push 0
push dword [esp + 0x28]
push edi
push 5
push esi
call fcn.10025690
add esp, 0x14
jmp 0x10013ba2
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff8
push 0x10087bf8
push dword [esp + 0x4c]
push dword [esp + 0x78]
push 0
push 0x3f
push esi
call fcn.1005c550
mov eax, dword [esi + 0x6c]
add esp, 0x1c
test eax, eax
jle 0x10013bd5
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
push 0
push 0x1008f3b4
push ebp
push 3
push dword [esp + 0x48]
push 0x5c
push esi
call fcn.1005c550
mov ecx, dword [esi + 0x6c]
add esp, 0x1c
mov edi, dword [esp + 0x2c]
cmp dword [esi + 0x70], ecx
jg 0x10013c12
push 0
push edi
push dword [esp + 0x70]
push 0x79
push esi
call fcn.10025690
mov edx, dword [esp + 0x7c]
add esp, 0x14
jmp 0x10013c41
mov edx, dword [esp + 0x68]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x10013c59
push edi
push ebp
push edx
push 0x7a
push esi
call fcn.10025690
add esp, 0x14
jmp 0x10013c84
mov ebx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x7a
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x6c]
test edx, edx
jle 0x10013c9e
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov edx, 8
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esi + 0x6c]
mov ecx, dword [esp + 0x50]
test ecx, ecx
jns 0x10013ca9
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x10013cc3
mov eax, 0x10095994
mov dword [eax + 8], edx
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], al
jmp 0x10013cde
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], al
jmp 0x10013cde
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x100137f0
test eax, eax
jne 0x10013d7a
cmp byte [esp + 0x13], al
je 0x10013d7a
mov ebx, dword [esp + 0x44]
push ebx
push dword [esp + 0x58]
push 0x5d
push esi
call fcn.1005c490
push ebx
push 0x14
push esi
call fcn.1005c430
push dword [esp + 0x64]
mov edi, eax
push 0
push 0x49
push esi
call fcn.1005c490
push 0
push 0x1008f3b4
push ebp
push 3
push dword [esp + 0x74]
push 0x5c
push esi
call fcn.1005c550
mov ebx, dword [esp + 0xb0]
add esp, 0x48
push dword [esp + 0x2c]
push ebx
push 0x79
push esi
call fcn.1005c490
push dword [esp + 0x3c]
push ebp
push ebx
push 0x7a
push esi
call fcn.1005c4f0
push 8
push esi
call fcn.1005ca00
push edi
push esi
call fcn.10064d70
add esp, 0x34
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret