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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, ecx
mov dword [esp + 0xc], 0
push esi
push edi
mov edi, edx
mov dword [esp + 0x24], ebx
dec dword [ebx + 0x38]
mov edx, 0x21
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0x38]
mov ecx, dword [edi + 0x1c]
and ecx, 0x80
mov dword [esp + 0x20], edi
cmp byte [ebp + 0x24], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
jne 0x1006934d
test ecx, ecx
mov eax, 0x1e
lea ecx, [esi + 0x70]
cmove eax, edx
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x28], eax
cmp dword [esi + 0x78], edx
jg 0x100692e4
push dword [ebp + 0x14]
mov edx, eax
mov ecx, esi
push dword [esp + 0x1c]
push dword [ebp + 0xc]
call fcn.10033da0
add esp, 0xc
mov edx, eax
jmp 0x1006932c
mov ebx, dword [esp + 0x28]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4], bl
xor ebx, ebx
mov word [eax + ecx*4 + 2], bx
mov ebx, dword [ebp + 0xc]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea eax, [esi + 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x1006934d
mov eax, dword [esp + 0x1c]
lea ecx, [edx + edx*4]
mov eax, dword [eax]
mov byte [eax + ecx*4 + 1], 0xfd
lea ecx, [eax + ecx*4]
mov ax, word [ebp + 0x18]
cwde
mov dword [ecx + 0x10], eax
push 0
push 0
mov edx, edi
mov ecx, ebx
call fcn.10070650
mov esi, dword [ebp + 8]
add esp, 8
test eax, eax
jne 0x10069374
test esi, esi
jne 0x10069374
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x1c], eax
jmp 0x100695e5
mov dword [esp + 0x1c], 0
mov edi, esi
test esi, esi
je 0x100693cf
mov esi, dword [esp + 0x20]
cmp byte [edi + 8], 0x80
jne 0x100693c5
test byte [edi + 9], 3
je 0x100693c5
cmp byte [edi + 0xa], 0
je 0x100693a2
mov dword [esp + 0x1c], 0xffffffff
jmp 0x100693c5
movzx eax, byte [ebp + 0x20]
mov edx, edi
push eax
push esi
mov ecx, ebx
call fcn.10092390
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x100693c5
mov eax, dword [esp + 0x1c]
or eax, dword [ecx + 0x10]
mov dword [esp + 0x1c], eax
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x10069386
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, edi
call fcn.10070560
mov edx, dword [ebx + 0x2c]
or dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x10]
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
movsx eax, word [edi + 0x22]
inc eax
add eax, edx
mov dword [ebx + 0x2c], eax
mov edx, dword [ecx + 0x74]
cmp dword [ecx + 0x78], edx
jg 0x10069418
push 0
push dword [esp + 0x18]
mov edx, 0x4f
push dword [ebp + 0x14]
call fcn.10033da0
add esp, 0xc
jmp 0x1006944e
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [eax + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
xor eax, eax
cmp ax, word [edi + 0x22]
jge 0x100694ad
mov ebx, dword [esp + 0x10]
xor esi, esi
mov edx, dword [esp + 0x1c]
cmp edx, 0xffffffff
je 0x10069477
cmp esi, 0x1f
jg 0x1006949d
mov eax, 1
mov ecx, esi
shl eax, cl
test edx, eax
je 0x1006949d
mov edx, esi
mov ecx, edi
call fcn.1005ea20
mov ecx, dword [esp + 0x14]
mov edx, edi
inc ecx
cwde
add eax, ecx
mov ecx, ebx
push eax
push esi
push dword [ebp + 0xc]
call fcn.10050730
mov edx, dword [esp + 0x28]
add esp, 0xc
movsx eax, word [edi + 0x22]
inc esi
cmp esi, eax
jl 0x10069460
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov edi, esi
mov eax, dword [eax + 0x74]
mov dword [esp + 0x28], eax
test esi, esi
je 0x10069515
mov esi, dword [esp + 0x20]
cmp byte [edi + 8], 0x80
jne 0x10069507
cmp byte [edi + 9], 1
jne 0x10069507
cmp byte [edi + 0xa], 0
jne 0x100694f0
push dword [esp + 0x18]
movzx eax, byte [ebp + 0x20]
mov edx, edi
push eax
push dword [esp + 0x1c]
mov ecx, ebx
push esi
call fcn.100923e0
add esp, 0x10
jmp 0x10069507
cmp dword [ebx + 0x74], 0
jne 0x10069507
push dword [esp + 0x14]
mov edx, edi
mov ecx, ebx
push esi
call fcn.100917a0
add esp, 8
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x100694c2
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov edx, dword [edi + 0x74]
cmp eax, edx
jge 0x100695c0
cmp dword [esp + 0x2c], 0
mov eax, 0x1e
mov ecx, 0x21
cmove eax, ecx
mov dword [esp + 0x2c], eax
cmp dword [edi + 0x78], edx
jg 0x10069559
push dword [ebp + 0x14]
mov edx, eax
mov ecx, edi
push dword [esp + 0x1c]
push dword [ebp + 0xc]
call fcn.10033da0
add esp, 0xc
mov edx, eax
jmp 0x1006959d
mov ebx, dword [esp + 0x2c]
lea eax, [edx + 1]
mov dword [edi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x70]
xor esi, esi
mov word [eax + ecx*4 + 2], si
mov esi, dword [esp + 0x18]
mov byte [eax + ecx*4], bl
mov ebx, dword [ebp + 0xc]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [ebp + 8]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne 0x100695bb
mov eax, dword [edi + 0x70]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
lea ecx, [eax + ecx*4]
mov ax, word [ebp + 0x18]
cwde
mov dword [ecx + 0x10], eax
or edx, 0xffffffff
jmp 0x100695c3
mov edx, dword [ebp + 0x28]
mov edi, dword [esp + 0x20]
mov ecx, ebx
push 0
push 0
push 0
push dword [esp + 0x20]
mov dword [esp + 0x2c], edx
mov edx, edi
call fcn.1006ff20
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp byte [edi + 0x2b], 2
je 0x100697af
push eax
push 0
push dword [ebp + 0x10]
mov edx, edi
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.10069860
mov edx, dword [esp + 0x20]
xor eax, eax
add esp, 0x10
cmp byte [ebp + 0x1c], al
setne al
mov ecx, dword [edx + 0x74]
mov dword [esp + 0x2c], eax
cmp dword [edx + 0x78], ecx
jg 0x10069639
mov ecx, dword [esp + 0x10]
mov edx, 0x81
push 0
push eax
push dword [ebp + 0xc]
call fcn.10033da0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x1006966e
mov esi, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [ebp + 8]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [ebx + 0x12], 0
je 0x100696d6
mov eax, dword [edi]
mov dword [esp + 0x20], eax
test eax, eax
je 0x10069700
mov ebx, str.sqlite_stat1
sub ebx, eax
nop dword [eax]
movzx esi, byte [ebx + eax]
movzx ecx, byte [eax]
mov dword [esp + 0x2c], esi
cmp ecx, esi
jne 0x100696aa
test ecx, ecx
je 0x100696cd
inc eax
mov dword [esp + 0x20], eax
jmp 0x10069690
mov eax, dword [esp + 0x2c]
movzx ecx, byte [ecx + 0x1010f158]
movzx eax, byte [eax + 0x1010f158]
sub ecx, eax
jne 0x100696cb
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
jmp 0x10069690
test ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x24]
jne 0x10069700
mov ecx, dword [edx]
cmp byte [ecx + 0x57], 0
je 0x100696ee
push edi
mov edx, 0xfffffffa
call fcn.10034850
add esp, 4
jmp 0x10069700
mov eax, dword [edx + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xfa
mov dword [eax + ecx*4 - 4], edi
cmp byte [ebp + 0x24], 0
mov edx, dword [esp + 0x10]
je 0x10069724
mov eax, dword [edx + 0x74]
test eax, eax
jle 0x10069724
lea ecx, [eax + eax*4]
mov esi, 4
mov eax, dword [edx + 0x70]
mov word [eax + ecx*4 - 0x12], si
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
test eax, eax
js 0x10069784
cmp eax, dword [ebp + 0xc]
je 0x10069784
mov ecx, dword [edx + 0x74]
cmp dword [edx + 0x78], ecx
jg 0x10069751
mov ecx, dword [esp + 0x10]
mov edx, 0x81
push 0
push 0
push eax
call fcn.10033da0
add esp, 0xc
jmp 0x10069784
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x74]
test ecx, ecx
jle 0x100697af
mov eax, dword [eax + 0x70]
lea ecx, [ecx + ecx*4]
mov edx, 2
mov dword [esp + 0x2c], 0
cmp byte [ebp + 0x24], dl
cmovne edx, dword [esp + 0x2c]
mov word [eax + ecx*4 - 0x12], dx
push 0
push 0
push dword [esp + 0x1c]
mov edx, edi
mov ecx, ebx
push 0
call fcn.100719b0
add esp, 0x10
test esi, esi
je 0x1006981c
nop dword [eax]
cmp byte [esi + 8], 0x80
jne 0x10069815
cmp byte [esi + 9], 2
jne 0x10069815
cmp byte [esi + 0xa], 0
jne 0x100697fe
push dword [esp + 0x18]
movzx eax, byte [ebp + 0x20]
mov edx, esi
push eax
push dword [esp + 0x1c]
mov ecx, ebx
push edi
call fcn.100923e0
add esp, 0x10
jmp 0x10069815
cmp dword [ebx + 0x74], 0
jne 0x10069815
push dword [esp + 0x14]
mov edx, esi
mov ecx, ebx
push edi
call fcn.100917a0
add esp, 8
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x100697d0
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
not ebx
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x10069841
push ebx
call fcn.10034550
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [edx + 0x74]
pop edi
pop esi
mov dword [ecx + ebx*4], eax
pop ebx
mov esp, ebp
pop ebp
ret