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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
push edi
mov dword [esp + 0x1c], edx
mov edi, ecx
mov dword [esp + 0x3c], edi
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
inc eax
mov dword [ebp + 0x10], eax
inc eax
mov dword [esp + 0x4c], eax
mov ecx, eax
mov dword [esp + 0x40], ecx
inc ecx
mov dword [esp + 0x20], ecx
inc ecx
mov eax, dword [edi + 0x4c]
mov esi, dword [edi + 8]
mov ebx, dword [edi]
mov dword [esp + 0x34], ecx
inc ecx
mov dword [esp + 0x54], ecx
inc ecx
mov dword [esp + 0x48], ecx
inc ecx
cmp eax, ecx
mov dword [esp + 0x50], ebx
cmovle eax, ecx
mov byte [esp + 0x13], 1
mov dword [esp + 0x24], ecx
mov dword [edi + 0x4c], eax
test esi, esi
jne 0x1006d3bf
mov ecx, edi
call fcn.10051860
mov esi, eax
mov dword [edi + 8], esi
test esi, esi
je 0x1006d39e
mov edx, 0x9e
mov ecx, esi
call fcn.10051ae0
cmp dword [edi + 0x1a0], 0
jne 0x1006d3b3
mov eax, dword [edi]
test byte [eax + 0x40], 8
jne 0x1006d3b3
mov byte [edi + 0x17], 1
test esi, esi
je 0x1006dbd4
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x1006dbd4
cmp dword [edx + 0x1c], 0
je 0x1006dbd4
mov edx, dword [edx]
mov ecx, str.sqlite__
push 0
push 0x100e9a10
call fcn.10079190
add esp, 8
test eax, eax
jne 0x1006dbd4
mov edx, dword [esp + 0x1c]
mov ecx, ebx
mov edx, dword [edx + 0x40]
call fcn.10085bd0
mov ecx, dword [ebx + 0x10]
mov edx, eax
mov ebx, dword [esp + 0x1c]
add edx, edx
mov dword [esp + 0x38], eax
push dword [ecx + edx*8]
mov edx, 0x1c
mov ecx, edi
push 0
push dword [ebx]
call fcn.1006f0f0
add esp, 0xc
test eax, eax
jne 0x1006dbd4
push dword [ebx]
mov edx, dword [esp + 0x3c]
mov ecx, edi
push eax
push dword [ebx + 0x1c]
call fcn.1006f190
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov edx, eax
inc eax
mov dword [ebp + 0x14], eax
mov dword [esp + 0x5c], edx
push 0x36
lea ecx, [eax + 1]
mov eax, dword [edi + 0x48]
cmp eax, ecx
push ebx
push dword [esp + 0x40]
cmovle eax, ecx
mov ecx, edi
mov dword [edi + 0x48], eax
call fcn.1007df10
mov edx, dword [esp + 0x40]
add esp, 0xc
mov ecx, esi
push dword [ebx]
call fcn.10051ca0
mov edi, dword [ebx + 8]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], edi
test edi, edi
je 0x1006db21
nop dword [eax]
test eax, eax
je 0x1006d49c
cmp eax, edi
jne 0x1006db12
movzx eax, byte [esp + 0x13]
xor ecx, ecx
cmp dword [edi + 0x24], ecx
cmovne ecx, eax
test byte [ebx + 0x2a], 0x20
mov byte [esp + 0x13], cl
je 0x1006d4c6
mov eax, dword [edi + 0x38]
and al, 3
cmp al, 2
jne 0x1006d4c6
movzx edi, word [edi + 0x32]
mov eax, ebx
mov ecx, edi
jmp 0x1006d4dc
mov edx, dword [esp + 0x14]
mov eax, edx
movzx edi, word [edi + 0x34]
mov ecx, edi
test byte [edx + 0x38], 8
je 0x1006d4dc
movzx ecx, word [edx + 0x32]
mov eax, dword [eax]
lea ebx, [ecx - 1]
mov edx, dword [esp + 0x54]
mov ecx, esi
push eax
mov dword [esp + 0x2c], ebx
call fcn.10051ca0
mov edx, dword [esp + 0x40]
add esp, 4
mov ecx, dword [esp + 0x24]
add ecx, ebx
mov eax, dword [edx + 0x4c]
cmp eax, ecx
push dword [esp + 0x38]
cmovle eax, ecx
mov ecx, esi
mov dword [edx + 0x4c], eax
mov edx, 0x36
mov eax, dword [esp + 0x18]
push dword [eax + 0x2c]
push dword [ebp + 0x14]
call fcn.10051a70
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x3c]
call fcn.10052800
push dword [esp + 0x4c]
mov edx, 0x16
mov ecx, esi
push edi
call fcn.10051bc0
mov eax, dword [ebp + 0x10]
mov edx, 0x16
mov edi, dword [esp + 0x1c]
add eax, 2
push eax
mov ecx, esi
movzx eax, word [edi + 0x32]
push eax
call fcn.10051bc0
push 0xfffffffffffffffb
push 0x100eabe4
push dword [ebp + 0x10]
mov edx, 0x23
mov ecx, esi
push dword [esp + 0x68]
push 0
call fcn.10051e60
mov eax, dword [esi]
add esp, 0x24
cmp byte [eax + 0x45], 0
jne 0x1006d595
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 2
push dword [ebp + 0x14]
mov edx, 0x6c
mov ecx, esi
call fcn.10051b50
add esp, 4
mov dword [esp + 0x58], eax
mov edx, 0x16
mov ecx, esi
push dword [esp + 0x40]
push 0
call fcn.10051bc0
mov eax, dword [esi + 0x20]
add esp, 8
mov dword [esp + 0x30], eax
test ebx, ebx
jle 0x1006d831
mov ecx, esi
call fcn.100520f0
lea ecx, [ebx*4]
mov dword [esp + 0x44], eax
push 0
push ecx
mov ecx, dword [esp + 0x58]
call fcn.10033be0
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1006db0b
mov edx, 0xd
mov ecx, esi
call fcn.10051ae0
mov eax, dword [esi + 0x20]
mov dword [esp + 0x30], eax
cmp ebx, 1
jne 0x1006d635
cmp word [edi + 0x32], bx
jne 0x1006d635
cmp byte [edi + 0x36], 0
je 0x1006d635
push dword [esp + 0x44]
lea edx, [ebx + 0x4c]
mov ecx, esi
push dword [esp + 0x28]
call fcn.10051bc0
add esp, 8
xor ebx, ebx
cmp dword [esp + 0x28], ebx
jle 0x1006d6c1
mov edx, dword [edi + 0x20]
mov ecx, dword [esp + 0x3c]
mov edx, dword [edx + ebx*4]
call fcn.100714b0
push dword [esp + 0x40]
mov edx, 0x16
mov ecx, esi
push ebx
mov edi, eax
call fcn.10051bc0
push dword [esp + 0x28]
mov edx, 0x2f
mov ecx, esi
push ebx
push dword [ebp + 0x14]
call fcn.10051a70
mov eax, dword [esp + 0x38]
add esp, 0x14
add eax, ebx
mov edx, 0x4e
mov ecx, esi
push 0xfffffffffffffffc
push edi
push eax
push 0
push dword [esp + 0x30]
call fcn.10051e60
mov ecx, dword [esp + 0x40]
add esp, 0x14
mov dword [ecx + ebx*4], eax
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x1006d6b6
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 0x80
mov edi, dword [esp + 0x14]
inc ebx
cmp ebx, dword [esp + 0x28]
jl 0x1006d641
push dword [esp + 0x40]
mov ebx, dword [esp + 0x2c]
mov edx, 0x16
push ebx
mov ecx, esi
call fcn.10051bc0
mov edx, dword [esp + 0x4c]
add esp, 8
mov ecx, esi
call fcn.10051c30
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edi, dword [esp + 0x30]
dec ecx
mov dword [eax + 0x60], ecx
mov eax, dword [esi]
mov edx, dword [esi + 0x20]
lea ecx, [edi - 1]
cmp byte [eax + 0x45], 0
je 0x1006d707
mov eax, 0x100fe49c
jmp 0x1006d71a
test ecx, ecx
mov eax, edx
cmovns eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + ecx*4]
add eax, 0xfffffff4
xor edi, edi
mov dword [eax], edx
test ebx, ebx
jle 0x1006d7bd
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x20]
dec ecx
mov edx, dword [eax + edi*4]
mov eax, dword [esi + 0x18]
mov dword [eax + 0x60], ecx
mov eax, dword [esi]
mov ebx, dword [esi + 0x20]
cmp byte [eax + 0x45], 0
je 0x1006d749
mov eax, 0x100fe494
jmp 0x1006d75a
test edx, edx
lea eax, [ebx - 1]
cmovns eax, edx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + ecx*4]
mov edx, dword [esp + 0x24]
mov dword [eax + 8], ebx
add edx, edi
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x1006d784
push edx
push edi
push dword [ebp + 0x14]
mov edx, 0x2f
mov ecx, esi
call fcn.10051a30
add esp, 0xc
jmp 0x1006d7b2
mov ebx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x2f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
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, dword [esp + 0x28]
jl 0x1006d726
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x1006d7d9
mov eax, dword [esp + 0x44]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
mov ebx, dword [esp + 0x50]
dec eax
mov dword [edx + 0x60], eax
cmp dword [ebx + 0x1c8], 0
je 0x1006d7fa
mov edx, dword [esp + 0x2c]
mov ecx, ebx
call fcn.100338a0
jmp 0x1006d82d
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [ebx + 0x120]
jb 0x1006d824
cmp ecx, dword [ebx + 0x124]
jae 0x1006d824
mov eax, dword [ebx + 0x11c]
mov dword [ecx], eax
dec dword [ebx + 0x108]
mov dword [ebx + 0x11c], ecx
jmp 0x1006d82d
push ecx
call fcn.10033830
add esp, 4
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
cmp dword [eax + 0x58], edx
jg 0x1006d859
mov ebx, dword [esp + 0x20]
mov edx, 0x23
push ebx
push dword [ebp + 0x10]
mov ecx, esi
push 1
call fcn.10051a30
add esp, 0xc
mov edx, eax
jmp 0x1006d88f
mov ebx, dword [ebp + 0x10]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x20]
mov word [eax + ecx*4], 0x23
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffffb
push 0x100ec710
mov ecx, esi
call fcn.10052770
mov eax, dword [esi]
add esp, 8
cmp byte [eax + 0x45], 0
jne 0x1006d8b6
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 2
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x1006d8dc
mov edx, dword [esp + 0x30]
mov ecx, esi
push 0
push edx
push dword [ebp + 0x14]
mov edx, 7
call fcn.10051a30
add esp, 0xc
jmp 0x1006d912
mov edx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
cmp dword [eax + 0x58], edx
jg 0x1006d939
push dword [esp + 0x48]
mov edx, 0x23
mov ecx, esi
push dword [ebp + 0x10]
push 0
call fcn.10051a30
add esp, 0xc
mov edx, eax
jmp 0x1006d973
mov edi, dword [ebp + 0x10]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x48]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x14]
mov word [eax + ecx*4], 0x23
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffffb
push 0x100eabbc
mov ecx, esi
call fcn.10052770
mov eax, dword [esi]
add esp, 8
cmp byte [eax + 0x45], 0
jne 0x1006d99a
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 1
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
cmp dword [eax + 0x58], edx
jg 0x1006d9bf
push ebx
push 3
push dword [esp + 0x3c]
mov edx, 0x31
mov ecx, esi
call fcn.10051a30
add esp, 0xc
mov edx, eax
jmp 0x1006d9f6
mov edi, dword [esp + 0x34]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x14]
mov word [eax + ecx*4], 0x31
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 3
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
push 0
push 0x100f1198
mov ecx, esi
call fcn.10052770
mov eax, dword [esi + 0x18]
add esp, 8
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x1006da2f
push 0
push dword [esp + 0x1c]
mov edx, 0x4a
mov ecx, esi
push dword [ebp + 0xc]
call fcn.10051a30
mov edx, dword [ebp + 0xc]
add esp, 0xc
jmp 0x1006da69
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov edx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x14]
mov word [eax + ecx*4], 0x4a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x1006da8b
push dword [esp + 0x18]
mov ecx, esi
push ebx
push edx
mov edx, 0x4b
call fcn.10051a30
add esp, 0xc
jmp 0x1006daba
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov word [eax + ecx*4], 0x4b
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x1006dad0
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 8
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x58]
mov edx, dword [esi + 0x20]
test ecx, ecx
jns 0x1006dae8
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x1006daf7
mov eax, 0x100fe494
jmp 0x1006db00
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], al
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x1c]
mov edi, dword [edi + 0x14]
mov dword [esp + 0x14], edi
test edi, edi
jne 0x1006d490
test eax, eax
jne 0x1006dbd4
cmp byte [esp + 0x13], al
je 0x1006dbd4
mov ebx, dword [esp + 0x48]
lea edx, [eax + 0x32]
push ebx
push dword [esp + 0x60]
mov ecx, esi
call fcn.10051bc0
push ebx
mov edx, 0x2e
mov ecx, esi
call fcn.10051b50
add esp, 0xc
mov edx, 0x19
mov ecx, esi
mov edi, eax
push dword [esp + 0x54]
push 0
call fcn.10051bc0
mov ebx, dword [esp + 0x28]
mov edx, 0x31
push 0
push 0x100f1198
push ebx
push 3
push dword [esp + 0x4c]
mov ecx, esi
call fcn.10051e60
add esp, 0x1c
mov edx, 0x4a
mov ecx, esi
push dword [esp + 0x18]
push dword [ebp + 0xc]
call fcn.10051bc0
push dword [esp + 0x20]
mov edx, 0x4b
mov ecx, esi
push ebx
push dword [ebp + 0xc]
call fcn.10051a70
mov eax, dword [esi]
add esp, 0x14
cmp byte [eax + 0x45], 0
jne 0x1006dbcb
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 8
mov edx, edi
mov ecx, esi
call fcn.10052440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret