Function at 0x48a500
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x24
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
push fcn.00472210
lea edi, [ebp + 0x18394]
push 0
push str.SELECT_rkey_owner_FROM____sysexternal__WHERE_rname_
mov dword [esp + 0x28], 0
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], edi
call fcn.0050dfb0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x48a563
mov dword [esp + 0xc], 0
jmp 0x48a6b4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48a707
movzx ecx, word [eax]
cmp cx, word [eax + 2]
jne 0x48a57c
xor ecx, ecx
jmp 0x48a581
movsx ecx, cx
add ecx, eax
mov ecx, dword [ecx]
mov dword [esp + 0x14], ecx
movzx ecx, word [eax + 2]
cmp cx, word [eax + 4]
jne 0x48a595
xor ecx, ecx
jmp 0x48a59a
movsx ecx, cx
add ecx, eax
mov edx, dword [esp + 0xc]
mov edi, dword [ecx]
push edx
call fcn.0050dec0
mov esi, eax
add esp, 4
test esi, esi
jne 0x48a6b4
mov esi, dword [str.public]
mov dword [esp + 0xc], eax
cmp dword [esi + 0x120], edi
je 0x48a62d
mov ecx, 0x5acad0
lea eax, [esi + 0x80]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48a5f0
test dl, dl
je 0x48a5ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48a5f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x48a5d0
xor eax, eax
jmp 0x48a5f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48a62d
mov eax, dword [esp + 0x24]
push eax
push str.drop_external_resource
push esi
push 0x7dd
push 0x1f69
call fcn.00406f10
add esp, 0x14
pop edi
pop esi
mov eax, 0x1f69
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00586584
add esp, 0x24
ret
lea edx, [esp + 0x10]
push edx
push 1
push 0
push fcn.00472210
lea ecx, [esp + 0x24]
push 0
push str.DELETE_FROM____sysexternalmethod__WHERE_rkey_
mov byte [ebp + 0x11], 1
mov dword [esp + 0x28], ecx
call fcn.0050df80
add esp, 0x18
test eax, eax
jne 0x48a6af
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004629d0
add esp, 8
test eax, eax
jne 0x48a6af
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push fcn.00472210
push eax
push str.DELETE_FROM____sysexternalpriv__WHERE_rkey_
call fcn.0050df80
add esp, 0x18
test eax, eax
jne 0x48a6af
lea edx, [esp + 0x10]
push edx
push 1
lea eax, [esp + 0x24]
push eax
push fcn.00472210
push 0
push str.DELETE_FROM____sysexternal__WHERE_rkey_
call fcn.0050df80
add esp, 0x18
test eax, eax
je 0x48a6e8
mov esi, 1
push 0x7dd
push 0
call fcn.00406f10
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x48a6d4
push eax
call fcn.0050dec0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00586584
add esp, 0x24
ret
cmp dword [esp + 0x1c], 0
je 0x48a703
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00586584
add esp, 0x24
ret
mov edi, dword [esp + 0x24]
movzx edx, byte [ebp + 0x184f8]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00461570
push eax
push edi
push 0x7dd
push 0x40db
call fcn.00406f10
mov eax, dword [esp + 0x24]
add esp, 0x18
test eax, eax
je 0x48a73e
push eax
call fcn.0050dec0
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0x40db
call fcn.00586584
add esp, 0x24
ret