Function at 0x413260
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64939c
mov eax, dword fs:[0]
push eax
mov eax, 0x2070
call fcn.005e0550
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
xor ebx, ebx
lea edi, [eax + 0x24]
lea esi, [eax + 0x5c]
push ebx
push edi
lea ecx, [esi + 8]
mov dword [ebp - 0x2068], eax
call fcn.004038b0
mov eax, dword [esi + 4]
add esi, 4
cmp eax, ebx
je 0x4132c4
push ebx
call fcn.004b56e0
add esp, 4
mov dword [esi], ebx
cmp dword [edi + 0x14], 0x10
jb 0x4132cc
mov edi, dword [edi]
push ebx
push 6
push esi
push edi
call fcn.004b76a0
mov edi, dword [ebp - 0x2068]
add esp, 0x10
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x40]
mov esi, 0xf
push eax
lea ecx, [ebp - 0x2048]
mov dword [ebp - 0x2034], esi
mov dword [ebp - 0x2038], ebx
mov byte [ebp - 0x2048], bl
call fcn.004038b0
push 0xfff
lea ecx, [ebp - 0x100f]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp - 0x1010], bl
call fcn.005de050
mov eax, dword [ebp - 0x2048]
add esp, 0xc
cmp dword [ebp - 0x2034], 0x10
jae 0x41333b
lea eax, [ebp - 0x2048]
push eax
push str.SELECT__FROM_sqlite_master_WHERE_typetable_and_name_s
lea edx, [ebp - 0x1010]
push 0x1000
push edx
call fcn.005de363
lea eax, [ebp - 0x1010]
add esp, 0x10
mov dword [ebp - 0x2018], esi
mov dword [ebp - 0x201c], ebx
mov byte [ebp - 0x202c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413370
sub eax, edx
push eax
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x202c]
call fcn.00403c90
mov dword [ebp - 0x207c], ebx
mov dword [ebp - 0x2078], ebx
mov dword [ebp - 0x2074], ebx
mov dword [ebp - 0x206c], ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2018], 0x10
mov edx, dword [ebp - 0x202c]
jae 0x4133bd
lea edx, [ebp - 0x202c]
mov eax, edx
mov dword [ebp - 0x2050], esi
mov dword [ebp - 0x2054], ebx
mov byte [ebp - 0x2064], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4133d4
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x2064]
call fcn.00403c90
lea eax, [edi + 0x5c]
push eax
lea eax, [ebp - 0x207c]
lea ecx, [ebp - 0x2064]
mov byte [ebp - 4], 3
call fcn.00415450
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2050], 0x10
mov esi, eax
jb 0x413421
mov ecx, dword [ebp - 0x2064]
push ecx
call fcn.004effaf
add esp, 4
cmp esi, ebx
jne 0x41352b
mov edx, dword [ebp - 0x2078]
mov eax, dword [ebp - 0x207c]
sub edx, eax
test edx, 0xfffffff0
jne 0x413531
push 0xfff
lea eax, [ebp - 0x200f]
push ebx
push eax
mov byte [ebp - 0x2010], bl
call fcn.005de050
mov eax, dword [ebp - 0x2048]
add esp, 0xc
cmp dword [ebp - 0x2034], 0x10
jae 0x413473
lea eax, [ebp - 0x2048]
push str.value
push 0x68f7b0
push eax
push str.CREATE_TABLE__s___s_varchar_primary_key___s_varchar_
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
call fcn.005de363
lea eax, [ebp - 0x2010]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4134a0
sub eax, edx
push eax
lea edx, [ebp - 0x2010]
push edx
lea ecx, [ebp - 0x202c]
call fcn.00403c90
lea eax, [ebp - 0x202c]
push eax
lea ecx, [edi + 0x5c]
call fcn.00415330
cmp eax, 0x65
je 0x41352b
lea esi, [ebp - 0x207c]
call fcn.004135e0
mov esi, 0x10
cmp dword [ebp - 0x2018], esi
jb 0x4134f7
mov ecx, dword [ebp - 0x202c]
push ecx
call fcn.004effaf
add esp, 4
mov dword [ebp - 0x2018], 0xf
mov dword [ebp - 0x201c], ebx
mov byte [ebp - 0x202c], bl
cmp dword [ebp - 0x2034], esi
jb 0x413524
mov edx, dword [ebp - 0x2048]
push edx
call fcn.004effaf
add esp, 4
xor al, al
jmp 0x4135b5
mov eax, dword [ebp - 0x207c]
mov byte [edi + 4], 1
cmp eax, ebx
je 0x41355b
mov ecx, dword [ebp - 0x2068]
mov edx, dword [ebp - 0x2078]
push ecx
push edx
call fcn.00413be0
mov eax, dword [ebp - 0x207c]
push eax
call fcn.004effaf
add esp, 0xc
cmp dword [ebp - 0x2018], 0x10
mov dword [ebp - 0x207c], ebx
mov dword [ebp - 0x2078], ebx
mov dword [ebp - 0x2074], ebx
jb 0x413585
mov ecx, dword [ebp - 0x202c]
push ecx
call fcn.004effaf
add esp, 4
cmp dword [ebp - 0x2034], 0x10
mov dword [ebp - 0x2018], 0xf
mov dword [ebp - 0x201c], ebx
mov byte [ebp - 0x202c], bl
jb 0x4135b3
mov edx, dword [ebp - 0x2048]
push edx
call fcn.004effaf
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 4