Function at 0x51c810
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
push edi
xor edi, edi
cmp dword [esi + 0x28], edi
jne 0x51ca38
cmp dword [esi + 0x14], edi
jne 0x51c849
push dword [esi + 8]
push dword [esi + 4]
push str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
push esi
call fcn.0051c6e0
add esp, 0x10
mov dword [esi + 0x14], eax
cmp dword [esi + 0x28], edi
jne 0x51ca38
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push 1
push dword [esi + 0x14]
call fcn.00467fa0
push dword [esi + 0x14]
call fcn.004669b0
add esp, 0x14
cmp eax, 0x64
jne 0x51ca07
mov edi, dword [esi + 0x14]
test edi, edi
je 0x51c8b6
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x51c891
push eax
call dword [0x5dac80]
add esp, 4
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x51c8a3
xor eax, eax
cmp ax, word [edi + 0x90]
jb 0x51c8bb
mov ecx, dword [edi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0043ee60
mov ecx, 0x5b3788
movzx eax, word [ecx + 0x10]
test al, 2
je 0x51c8ce
cmp byte [ecx + 0x12], 1
jne 0x51c8ce
mov ebx, dword [ecx + 0xc]
jmp 0x51c8f7
test al, 0x10
je 0x51c8e6
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x51c8e2
mov ebx, dword [ecx]
add ebx, edx
jmp 0x51c8f7
mov ebx, edx
jmp 0x51c8f7
test al, 1
je 0x51c8ee
xor ebx, ebx
jmp 0x51c8f7
mov dl, 1
call fcn.004606b0
mov ebx, eax
test edi, edi
je 0x51c929
mov ecx, dword [edi]
mov edx, dword [edi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x51c90e
test edx, edx
jne 0x51c90e
xor eax, eax
jmp 0x51c913
call fcn.0043bb70
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x51c929
push eax
call dword [0x5dac88]
add esp, 4
mov edi, dword [esi + 0x14]
test edi, edi
jne 0x51c940
push 0x5b3788
call fcn.00465a70
mov dword [esp + 0x14], eax
jmp 0x51c9bd
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x51c953
push eax
call dword [0x5dac80]
add esp, 4
mov eax, dword [edi + 0x78]
test eax, eax
je 0x51c965
xor ecx, ecx
cmp cx, word [edi + 0x90]
jb 0x51c97d
mov ecx, dword [edi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0043ee60
mov eax, 0x5b3788
push eax
call fcn.00465a70
mov ecx, dword [edi]
add esp, 4
mov edx, dword [edi + 0x24]
mov dword [esp + 0x10], eax
cmp byte [ecx + 0x57], 0
jne 0x51c99d
test edx, edx
jne 0x51c99d
xor eax, eax
jmp 0x51c9a2
call fcn.0043bb70
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x51c9c0
push eax
call dword [0x5dac88]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x14], edi
add esp, 4
call fcn.004e4f50
test eax, eax
je 0x51c9d4
xor edi, edi
mov dword [esi + 0x28], 7
jmp 0x51ca04
mov eax, ebx
cdq
push edx
push eax
call fcn.0043b050
mov edi, eax
add esp, 8
test edi, edi
jne 0x51c9f0
mov dword [esi + 0x28], 7
jmp 0x51ca04
push ebx
push dword [esp + 0x14]
push edi
call fcn.00570750
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [eax], ebx
mov ebx, dword [ebp + 0xc]
push dword [esi + 0x14]
call fcn.00465900
mov ecx, dword [esi + 0x28]
add esp, 4
test ecx, ecx
jne 0x51ca38
mov ecx, eax
mov dword [esi + 0x28], eax
test ecx, ecx
jne 0x51ca38
test edi, edi
jne 0x51ca38
push ebx
push dword [ebp + 8]
push str.Node__lld_missing_from_database
push esi
call fcn.0051c7b0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret