Function at 0x402e20
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x2f8
push ebx
mov ebx, dword [esp + 0x300]
push ebp
push esi
mov eax, dword [ebx + 0x250c]
mov ecx, dword [ebx + 0x2508]
push edi
push eax
push ecx
push 0x10000000
push 0xffffffffffffffff
lea esi, [ebx + 0x2589]
push 0x465318
push 0xffffffffffffffff
push esi
call sub.oranls9.dll_lxsCmpStr
add esp, 0x1c
test eax, eax
je 0x403140
mov edx, dword [ebx + 0x250c]
mov eax, dword [ebx + 0x2508]
push edx
push eax
push 0x10000000
push 0xffffffffffffffff
push 0x465320
push 0xffffffffffffffff
push esi
call sub.oranls9.dll_lxsCmpStr
add esp, 0x1c
test eax, eax
je 0x403140
mov ecx, dword [ebx + 0x4814]
test byte [ecx + 0x1c], 6
jne 0x403140
mov eax, dword [ebx + 0x4808]
mov ecx, 5
mov esi, str.set_role_all_except
lea edi, [esp + 0x114]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x10]
add eax, 8
push edx
push eax
push ebx
lea ebp, [esp + 0x134]
call fcn.00413510
mov ecx, dword [ebx + 0x245c]
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push eax
push ecx
call sub.oraclient9.dll_upiopn
add esp, 0x18
mov dword [ebx + 0x25d0], eax
test eax, eax
jne 0x4030ee
mov edx, dword [ebx + 0x2508]
test dword [edx + 0x1c], 0x4000000
je 0x402f11
push str.SELECT_CHAR_VALUE_FROM_SYSTEM.PRODUCT_PRIVS_WHERE____UPPER_SQLPlus__LIKE_UPPER_PRODUCT___AND_____UPPER_USER__LIKE_USERID__OR__USERID__PUBLIC___AND____UPPER_ATTRIBUTE___ROLES_
call sub.oranls9.dll_lxsulen
add esp, 4
jmp 0x402f22
mov edi, str.SELECT_CHAR_VALUE_FROM_SYSTEM.PRODUCT_PRIVS_WHERE____UPPER_SQLPlus__LIKE_UPPER_PRODUCT___AND_____UPPER_USER__LIKE_USERID__OR__USERID__PUBLIC___AND____UPPER_ATTRIBUTE___ROLES_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
mov ecx, dword [ebx + 0x245c]
push eax
mov eax, dword [esp + 0x14]
push str.SELECT_CHAR_VALUE_FROM_SYSTEM.PRODUCT_PRIVS_WHERE____UPPER_SQLPlus__LIKE_UPPER_PRODUCT___AND_____UPPER_USER__LIKE_USERID__OR__USERID__PUBLIC___AND____UPPER_ATTRIBUTE___ROLES_
push eax
push ecx
call sub.oraclient9.dll_upiosq
add esp, 0x10
mov dword [ebx + 0x25d0], eax
test eax, eax
jne 0x4030ee
push 0xffffffffffffffff
push eax
mov ecx, dword [ebx + 0x245c]
push eax
push 0xffffffffffffffff
push eax
push eax
mov eax, dword [esp + 0x28]
push 5
lea edx, [esp + 0x34]
push 0xfa
push edx
push 1
push eax
push ecx
call sub.oraclient9.dll_upidfn
add esp, 0x30
mov dword [ebx + 0x25d0], eax
test eax, eax
jne 0x4030ee
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x245c]
push edx
push eax
call sub.oraclient9.dll_upiexe
add esp, 8
mov dword [ebx + 0x25d0], eax
test eax, eax
jne 0x4030ee
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x245c]
push ecx
push edx
mov dword [esp + 0x1c], eax
call sub.oraclient9.dll_upifch
add esp, 8
mov dword [ebx + 0x25d0], eax
test eax, eax
jne 0x403040
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x402fd3
mov byte [ebp], 0x2c
inc ebp
mov eax, dword [ebx + 0x2508]
test dword [eax + 0x1c], 0x4000000
je 0x402ff1
lea ecx, [esp + 0x18]
push ecx
call sub.oranls9.dll_lxsulen
add esp, 4
jmp 0x403001
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
mov ecx, eax
lea esi, [esp + 0x18]
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, eax
mov eax, dword [esp + 0x14]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x245c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push eax
push ecx
call sub.oraclient9.dll_upifch
add esp, 8
mov dword [ebx + 0x25d0], eax
test eax, eax
je 0x402fc6
mov byte [ebp], 0
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x245c]
push edx
push eax
call sub.oraclient9.dll_upicls
mov dword [ebx + 0x25d0], eax
mov eax, dword [ebx + 0x4808]
mov ecx, dword [eax + 0x10]
add eax, 8
push ecx
push eax
push ebx
call fcn.00413460
mov eax, dword [esp + 0x28]
add esp, 0x14
test eax, eax
je 0x403140
mov edx, dword [ebx + 0x2508]
test dword [edx + 0x1c], 0x4000000
je 0x40309f
lea eax, [esp + 0x114]
push eax
call sub.oranls9.dll_lxsulen
add esp, 4
jmp 0x4030b2
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
push 0
push 0
push 4
lea ecx, [esp + 0x120]
push eax
push ecx
push ebx
call fcn.00415170
add esp, 0x18
test eax, eax
jne 0x403140
push eax
push 0x22d
push 1
push 2
push ebx
call fcn.00409560
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2f8
ret
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x245c]
push edx
push eax
call sub.oraclient9.dll_upicls
mov dword [ebx + 0x25d0], eax
mov eax, dword [ebx + 0x4808]
mov ecx, dword [eax + 0x10]
add eax, 8
push ecx
push eax
push ebx
call fcn.00413460
push ebx
call fcn.004109e0
push 0
push 0x22d
push 1
push 2
push ebx
call fcn.00409560
add esp, 0x2c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2f8
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2f8
ret