Function at 0x4887f0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x68
push ebx
push esi
mov esi, dword [str.public]
xor ebx, ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [esi + 0x120]
lea ecx, [esi + 0x80]
push ecx
mov dword [esp + 0x1c], eax
call fcn.00485c00
add esp, 4
cmp eax, 2
jge 0x48884b
push str.external_resources
push str.create
push esi
push 0x7dd
push 0x1f69
call fcn.00406f10
add esp, 0x14
pop esi
mov eax, 0x1f69
pop ebx
add esp, 0x68
ret
push ebp
lea eax, [esp + 0x14]
push eax
push 1
lea edx, [edi + 0x18394]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
lea edx, [esp + 0x18]
push edx
push fcn.00472210
push ebx
push str.SELECT_rkey_FROM____sysexternal__WHERE_rname_
call fcn.0050dfb0
mov esi, eax
add esp, 0x1c
cmp esi, ebx
jne 0x488a71
cmp dword [esp + 0x10], ebx
jne 0x488a99
mov eax, dword [esp + 0xc]
push eax
call fcn.0050dec0
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x488a71
push ebx
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push fcn.00472210
push ebx
push str.SELECT_MAX_rkey_1_FROM____sysexternal_
call fcn.0050dfb0
mov esi, eax
add esp, 0x1c
cmp esi, ebx
jne 0x488a71
mov eax, dword [esp + 0x10]
movzx ecx, word [eax]
cmp cx, word [eax + 2]
je 0x4888e4
movsx ecx, cx
add eax, ecx
cmp eax, ebx
jne 0x4888ea
mov dword [esp + 0x18], ebx
jmp 0x4888f0
mov edx, dword [eax]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0xc]
push eax
call fcn.0050dec0
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x488a71
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ecx
mov byte [edi + 0x11], 1
cmp byte [esi + 0x200], bl
lea ebp, [edi + 0x184f8]
lea edx, [esp + 0x1c]
lea eax, [edi + 0x184fb]
lea ecx, [edi + 0x184f9]
mov dword [esp + 0xc], ebx
mov ebx, dword [sym.imp.MSVCR90.dll_strncpy]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
push 0xb
je 0x488981
push str.CURRENTDATE
push 0x6278cd
call ebx
lea edx, [esp + 0x50]
push edx
add esi, 0x201
push esi
call fcn.0056a9c0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x488a6f
mov esi, dword [esp + 0x78]
jmp 0x488990
push 0x5ad6f8
push 0x6278cd
call ebx
add esp, 0xc
cmp byte [esi + 0x200], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x184ef]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
je 0x488a2f
mov edx, dword [esp + 0x5c]
push 0
push edx
add esi, 0x201
push esi
push str.RBLOB00
call fcn.00424830
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x488a6f
cmp byte [ebp], al
push 0x11
jle 0x4889ec
push str.BLOB_RBLOB00_NULL
push 0x6278db
call ebx
add esp, 0xc
jmp 0x488a03
push str.NULL_BLOB_RBLOB00
push 0x6278db
call ebx
mov al, byte [ebp]
add esp, 0xc
neg al
mov byte [ebp], al
lea ecx, [esp + 0x20]
push ecx
push 7
push 0
push fcn.00472210
push 0
push str.INSERT_INTO____sysexternal__VALUES___________CURRENTDATE___NULL_BLOB_RBLOB00___NULL_NULL_
call fcn.0050df80
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x488a6f
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret
push 0x11
push str.NULL_NULL
push 0x6278db
call ebx
mov al, byte [ebp]
add esp, 0xc
test al, al
jge 0x488a4c
neg al
mov byte [ebp], al
lea edx, [esp + 0x20]
push edx
push 7
push 0
push fcn.00472210
push 0
push str.INSERT_INTO____sysexternal__VALUES___________CURRENTDATE___NULL_BLOB_RBLOB00___NULL_NULL_
call fcn.0050df80
mov esi, eax
add esp, 0x18
test esi, esi
je 0x488a26
xor ebx, ebx
push 0x7dd
push ebx
call fcn.00406f10
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, ebx
je 0x488a90
push eax
call fcn.0050dec0
add esp, 4
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x68
ret
mov eax, dword [esp + 0x14]
push eax
push 0x7dd
push 0x4146
call fcn.00406f10
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, ebx
je 0x488ac1
push eax
call fcn.0050dec0
add esp, 4
pop ebp
pop esi
mov eax, 0x4146
pop ebx
add esp, 0x68
ret