Function at 0x4ff5e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x77d9ad
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x88bba0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xb4], 0
call fcn.004fa100
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc0]
push 0x4fedb0
push edi
mov dword [ebp - 4], 0
push eax
mov byte [ebp - 0xa5], 0
mov byte [ebp - 4], 1
call fcn.004f3880
add esp, 8
push dword [esi + 4]
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 2
call fcn.005acee0
push str.SELECT_COUNT___FROM_sqlite_master_WHERE_typetable_AND_name_s
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.004f2e50
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xc0]
sub esp, 8
mov ecx, esp
mov byte [ebp - 4], 7
mov ebx, 1
mov dword [ecx], edx
mov eax, dword [ebp - 0xbc]
mov dword [ecx + 4], eax
mov eax, ebx
lock xadd dword [edx], eax
mov ecx, dword [ebp - 0xb0]
call fcn.005ac4a0
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 6
call fcn.004f4980
mov ecx, dword [ebp - 0xb0]
push 0x87fc00
call fcn.004f37a0
mov ecx, eax
call fcn.005abef0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 5
call fcn.005abe40
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], bl
call fcn.005ad0e0
cmp dword [edi], 0
je 0x4ffa3e
mov edi, dword [ebp - 0xb8]
lea eax, [ebp - 0xc0]
push 0x4fedb0
push edi
push eax
call fcn.004f3ae0
add esp, 8
push dword [esi + 4]
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 8
call fcn.005acee0
push str.SELECT__FROM__s
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.004f2e50
push 0x87fc00
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004f37a0
mov esi, eax
mov edx, dword [ebp - 0xc0]
sub esp, 8
mov ecx, esp
mov byte [ebp - 4], 0xd
mov dword [ecx], edx
mov eax, dword [ebp - 0xbc]
mov dword [ecx + 4], eax
lock xadd dword [edx], ebx
inc ebx
mov ecx, esi
call fcn.005ac4a0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xc
mov esi, eax
call fcn.004f4980
mov ecx, esi
call fcn.005abef0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xb
call fcn.005abe40
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 1
call fcn.005ad0e0
mov ecx, dword [0x89e3e0]
mov eax, dword [ecx]
lea ebx, [ebx]
cmp eax, ecx
je 0x4ffa38
mov ecx, dword [edi]
mov edx, dword [edi + 4]
lea ecx, [ecx]
cmp ecx, edx
je 0x4ff94d
cmp dword [eax + 0x24], 0x10
lea esi, [eax + 0x10]
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0xb0], ebx
jb 0x4ff7fc
mov esi, dword [esi]
cmp dword [ecx + 0x14], 0x10
jb 0x4ff80c
mov edi, dword [ecx]
mov dword [ebp - 0xac], edi
jmp 0x4ff812
mov dword [ebp - 0xac], ecx
mov ebx, dword [ebp - 0xb0]
mov edi, ebx
cmp dword [ecx + 0x10], edi
mov edi, dword [ebp - 0xac]
cmovb ebx, dword [ecx + 0x10]
test ebx, ebx
je 0x4ff8c0
sub ebx, 4
mov dword [ebp - 0xb4], ebx
jb 0x4ff863
lea ebx, [ebx]
mov edi, dword [edi]
cmp edi, dword [esi]
jne 0x4ff868
mov edi, dword [ebp - 0xac]
add esi, 4
add edi, 4
sub ebx, 4
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xb4], ebx
jae 0x4ff840
cmp ebx, 0xfffffffc
je 0x4ff8ba
mov edi, dword [ebp - 0xac]
mov bl, byte [edi]
cmp bl, byte [esi]
jne 0x4ff8b3
mov edi, dword [ebp - 0xb4]
cmp edi, 0xfffffffd
je 0x4ff8ba
mov ebx, dword [ebp - 0xac]
mov bl, byte [ebx + 1]
cmp bl, byte [esi + 1]
jne 0x4ff8b3
cmp edi, 0xfffffffe
je 0x4ff8ba
mov ebx, dword [ebp - 0xac]
mov bl, byte [ebx + 2]
cmp bl, byte [esi + 2]
jne 0x4ff8b3
cmp edi, 0xffffffff
je 0x4ff8ba
mov ebx, dword [ebp - 0xac]
mov bl, byte [ebx + 3]
cmp bl, byte [esi + 3]
je 0x4ff8ba
sbb ebx, ebx
or ebx, 1
jmp 0x4ff8bc
xor ebx, ebx
test ebx, ebx
jne 0x4ff8e0
mov esi, dword [ecx + 0x10]
mov edi, dword [ebp - 0xb0]
cmp esi, edi
jb 0x4ff8e0
xor ebx, ebx
cmp esi, edi
setne bl
test ebx, ebx
jne 0x4ff8e0
mov esi, dword [ecx + 0x18]
cmp esi, dword [eax + 0x28]
je 0x4ff8e8
add ecx, 0x1c
jmp 0x4ff7e0
cmp byte [eax + 0xd], 0
mov edi, dword [ebp - 0xb8]
mov ecx, dword [0x89e3e0]
jne 0x4ff7d0
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x4ff926
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
jne 0x4ff91b
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
je 0x4ff911
mov ecx, dword [0x89e3e0]
jmp 0x4ff7d0
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x4ff940
nop
cmp eax, dword [ecx + 8]
jne 0x4ff940
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x4ff930
mov eax, ecx
mov ecx, dword [0x89e3e0]
jmp 0x4ff7d0
mov bl, 1
jmp 0x4ffa3e
mov bl, byte [ebp - 0xa5]
cmp dword [ebp - 0x30], 0x10
jb 0x4ffa4f
push dword [ebp - 0x44]
call fcn.00489b60
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00722035
mov esp, ebp
pop ebp
ret 8