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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
inc eax
mov dword [esp + 0xc], edx
mov dword [ebp + 0x10], eax
inc eax
mov edx, eax
mov byte [esp + 3], 1
push ebx
mov dword [esp + 0x34], edx
push esi
lea ebx, [edx + 1]
mov dword [esp + 0x50], eax
add edx, 2
mov dword [esp + 0x30], ebx
mov esi, ecx
mov dword [esp + 0x3c], edx
inc edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x4c], edx
inc edx
mov dword [esp + 0x48], edx
inc edx
cmp dword [esi + 0x2c], edx
mov ecx, edx
push edi
cmovg ecx, dword [esi + 0x2c]
mov edi, dword [esi]
mov dword [esi + 0x2c], ecx
mov esi, dword [esi + 8]
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], edx
test esi, esi
jne 0x1006dd4b
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x78], esi
jne 0x1006dd3a
test byte [edi + 0x44], 8
jne 0x1006dd3a
mov byte [eax + 0x17], 1
mov ecx, eax
call fcn.1004f440
mov esi, eax
test esi, esi
je 0x1006e470
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1006e470
cmp dword [eax + 0x1c], 0
je 0x1006e470
mov edx, dword [eax]
mov ecx, str.sqlite__
push 0x5c
push 0x1012be6c
call fcn.10079df0
add esp, 8
test eax, eax
je 0x1006e470
mov edx, dword [esp + 0x18]
mov ecx, edi
mov edx, dword [edx + 0x48]
call fcn.10087990
mov ecx, dword [edi + 0x10]
mov edx, eax
mov edi, dword [esp + 0x1c]
add edx, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
push dword [ecx + edx*8]
mov edx, 0x1c
mov ecx, edi
push 0
push dword [eax]
call fcn.1006fcf0
add esp, 0xc
test eax, eax
jne 0x1006e470
mov eax, dword [esp + 0x18]
mov ecx, edi
mov edx, dword [esp + 0x38]
push dword [eax]
push 0
push dword [eax + 0x1c]
call fcn.1006fd80
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov edx, ecx
inc ecx
mov dword [esp + 0x14], ecx
inc ecx
cmp dword [edi + 0x28], ecx
push 0x6a
cmovg ecx, dword [edi + 0x28]
push dword [esp + 0x1c]
mov dword [edi + 0x28], ecx
mov ecx, edi
push dword [esp + 0x40]
mov dword [esp + 0x68], edx
call fcn.1007e980
mov edi, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x40]
mov ecx, esi
push dword [edi]
call fcn.1004f9d0
mov edx, dword [edi + 8]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], edx
test edx, edx
je 0x1006e3b9
nop word [eax + eax]
test eax, eax
je 0x1006de3c
cmp eax, edx
jne 0x1006e3a6
movzx eax, byte [esp + 0xf]
xor ecx, ecx
cmp dword [edx + 0x24], ecx
cmovne ecx, eax
test byte [edi + 0x24], 0x20
mov byte [esp + 0xf], cl
je 0x1006e0ab
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
jne 0x1006e0ab
movzx ebx, word [edx + 0x32]
mov eax, dword [edi]
lea edi, [ebx - 1]
mov edx, dword [esp + 0x50]
mov ecx, esi
push eax
mov dword [esp + 0x2c], edi
call fcn.1004f9d0
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add ecx, edi
cmp dword [edx + 0x2c], ecx
push dword [esp + 0x38]
cmovg ecx, dword [edx + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, 0x6a
push dword [eax + 0x2c]
mov ecx, esi
push dword [esp + 0x1c]
call fcn.1004f7a0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
call fcn.100507b0
push dword [esp + 0x54]
mov edx, 0x43
mov ecx, esi
push ebx
call fcn.1004f8f0
mov ebx, dword [ebp + 0x10]
mov edx, 0x43
mov ecx, esi
lea eax, [ebx + 2]
push eax
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + 0x32]
push eax
call fcn.1004f8f0
push 0xfffffffffffffff8
push 0x1012d850
push ebx
lea eax, [ebx + 1]
mov edx, 0xa4
push eax
push 0
mov ecx, esi
call fcn.1004fc00
mov eax, dword [esi + 0x88]
add esp, 0x24
test eax, eax
jle 0x1006df23
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov ebx, dword [esp + 0x14]
mov edx, 0x25
push ebx
mov ecx, esi
call fcn.1004f880
add esp, 4
mov dword [esp + 0x58], eax
mov edx, 0x43
mov ecx, esi
push dword [esp + 0x3c]
push 0
call fcn.1004f8f0
mov eax, dword [esi + 0x88]
add esp, 8
mov dword [esp + 0x30], eax
test edi, edi
jle 0x1006e1e2
mov ecx, esi
call fcn.1004ff20
lea ecx, [edi*4]
mov ebx, eax
push 0
push ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x4c], ebx
call fcn.1002fbc0
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1006e39b
mov edx, 0xd
mov ecx, esi
call fcn.1004f810
mov eax, dword [esi + 0x88]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
cmp edi, 1
jne 0x1006dfd2
cmp word [eax + 0x32], di
jne 0x1006dfd2
cmp byte [eax + 0x36], 0
je 0x1006dfd2
push ebx
push dword [esp + 0x24]
lea edx, [edi + 0x32]
mov ecx, esi
call fcn.1004f8f0
mov eax, dword [esp + 0x18]
add esp, 8
xor ebx, ebx
test edi, edi
jle 0x1006e06b
nop dword [eax]
mov edx, dword [eax + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + ebx*4]
call fcn.10071eb0
push dword [esp + 0x3c]
mov edx, 0x43
mov ecx, esi
push ebx
mov edi, eax
call fcn.1004f8f0
push dword [esp + 0x3c]
mov edx, 0x62
mov ecx, esi
push ebx
push dword [esp + 0x24]
call fcn.1004f7a0
mov eax, dword [esp + 0x34]
add esp, 0x14
add eax, ebx
mov edx, 0x34
mov ecx, esi
push 0xfffffffffffffffe
push edi
push eax
push 0
push dword [esp + 0x44]
call fcn.1004fc00
mov ecx, dword [esp + 0x40]
add esp, 0x14
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x1006e05a
lea ecx, [eax + eax*4]
mov edx, 0x80
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x28]
inc ebx
mov eax, dword [esp + 0x10]
cmp ebx, edi
jl 0x1006dfe0
push dword [esp + 0x3c]
mov edx, 0x43
mov ecx, esi
push edi
call fcn.1004f8f0
mov edx, dword [esp + 0x4c]
add esp, 8
mov ecx, esi
call fcn.1004f960
mov ecx, dword [esp + 0x30]
sub ecx, 1
mov edx, dword [esi + 0x88]
jns 0x1006e09c
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x1006e0c5
mov eax, 0x10142c24
jmp 0x1006e0ce
test byte [edx + 0x38], 8
movzx ebx, word [edx + 0x34]
mov eax, dword [edx]
je 0x1006de6a
movzx edi, word [edx + 0x32]
dec edi
jmp 0x1006de6d
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ebx, dword [esp + 0x28]
xor edi, edi
mov dword [eax + 8], edx
test ebx, ebx
jle 0x1006e178
nop
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x88]
mov ecx, dword [eax + edi*4]
test ecx, ecx
jns 0x1006e0f4
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x1006e103
mov eax, 0x10142c24
jmp 0x1006e10c
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x1006e13a
mov eax, dword [esp + 0x20]
mov edx, 0x62
add eax, edi
mov ecx, esi
push eax
push edi
push dword [esp + 0x1c]
call fcn.1004f760
add esp, 0xc
jmp 0x1006e16f
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x62
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x20]
add eax, edi
mov dword [ecx + 0xc], eax
inc edi
cmp edi, ebx
jl 0x1006e0e0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x1006e197
mov eax, dword [esp + 0x44]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov edi, dword [esp + 0x48]
cmp dword [edi + 0x1d8], 0
je 0x1006e1b1
mov edx, dword [esp + 0x2c]
mov ecx, edi
call fcn.1002f870
jmp 0x1006e1de
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [edi + 0x128]
jb 0x1006e1d5
cmp ecx, dword [edi + 0x12c]
jae 0x1006e1d5
mov eax, dword [edi + 0x124]
mov dword [ecx], eax
mov dword [edi + 0x124], ecx
jmp 0x1006e1de
push ecx
call fcn.1002f800
add esp, 4
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
mov edx, 0xa4
push 0xfffffffffffffff8
push 0x1012f760
push edi
push dword [ebp + 0x10]
mov ecx, esi
push 1
call fcn.1004fc00
mov eax, dword [esi + 0x88]
add esp, 0x14
test eax, eax
jle 0x1006e21c
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x1006e242
push 0
push dword [esp + 0x34]
mov edx, 7
mov ecx, esi
push ebx
call fcn.1004f760
add esp, 0xc
jmp 0x1006e274
mov edx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 7
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x4c]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.1006dc20
push 0
push 0x10134804
push edi
push 3
push dword [esp + 0x58]
mov edx, 0x65
mov ecx, esi
call fcn.1004fc00
mov eax, dword [esi + 0xc]
add esp, 0x1c
mov ecx, dword [esi + 0x88]
mov ebx, dword [esp + 0x24]
cmp dword [eax + 0x30], ecx
jg 0x1006e2cc
push 0
push ebx
push dword [ebp + 0xc]
mov edx, 0x75
mov ecx, esi
call fcn.1004f760
mov edx, dword [ebp + 0xc]
add esp, 0xc
jmp 0x1006e2fd
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x75
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x1006e31f
push ebx
push edi
push edx
mov edx, 0x76
mov ecx, esi
call fcn.1004f760
add esp, 0xc
jmp 0x1006e34d
mov ebx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x76
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x1006e367
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esp + 0x58]
mov edx, dword [esi + 0x88]
test ecx, ecx
jns 0x1006e378
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x1006e387
mov eax, 0x10142c24
jmp 0x1006e390
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov al, byte [esp + 0xf]
mov byte [esp + 0xf], al
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x14]
mov dword [esp + 0x10], edx
test edx, edx
jne 0x1006de30
mov ebx, dword [esp + 0x34]
test eax, eax
jne 0x1006e470
mov al, byte [esp + 0xf]
test al, al
je 0x1006e470
mov edi, dword [esp + 0x4c]
mov edx, 0x66
push edi
push dword [esp + 0x60]
mov ecx, esi
call fcn.1004f8f0
push edi
mov edx, 0x16
mov ecx, esi
call fcn.1004f880
add esp, 0xc
mov edx, 0x46
mov ecx, esi
mov edi, eax
push dword [esp + 0x50]
push 0
call fcn.1004f8f0
push 0
push 0x10134804
push ebx
push 3
push dword [esp + 0x58]
mov edx, 0x65
mov ecx, esi
call fcn.1004fc00
add esp, 0x1c
mov edx, 0x75
mov ecx, esi
push dword [esp + 0x24]
push dword [ebp + 0xc]
call fcn.1004f8f0
push dword [esp + 0x2c]
mov edx, 0x76
mov ecx, esi
push ebx
push dword [ebp + 0xc]
call fcn.1004f7a0
mov eax, dword [esi + 0x88]
add esp, 0x14
test eax, eax
jle 0x1006e467
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov edx, edi
mov ecx, esi
call fcn.100502c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret