Function at 0x5000c0
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc2eb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x660
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebx + 8]
lea eax, [edi + 4]
mov dword [ebp - 0x648], 0
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov dword [ebp - 0x664], eax
mov eax, 0x2aaaaaab
imul ecx
mov dword [ebp - 0x668], esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x50014b
push dword [ebp - 0x664]
mov ecx, esi
call fcn.0047f7f0
xor eax, eax
jmp 0x50090e
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0
push 0x5f1952
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00408bb0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push ecx
lea ecx, [ebp - 0x640]
call fcn.00504ef0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x5001be
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00408df0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.005078b0
mov dword [ebp - 0x65c], eax
test eax, eax
jne 0x500201
push str.Unable_to_get_UserTableDataHandler_instance_in_opd_getUserKeys
push 0x613bb4
call fcn.00502600
push eax
call fcn.00503070
add esp, 0xc
mov edi, 0xc
jmp 0x5008a7
push str.UIDB
lea ecx, [ebp - 0xd4]
call fcn.004088b0
mov esi, eax
push str.UIDA
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004088b0
push eax
mov edx, str.SELECT__FROM_opm_user_WHERE_key_LIKE__
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00410960
add esp, 4
push str.__OR_key_LIKE__
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x74]
call fcn.00419290
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8c]
call fcn.00466100
add esp, 4
push 0x5f8ec4
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xbc]
call fcn.00419290
add esp, 4
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x500298
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00408df0
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x5002c2
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00408df0
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x5002e9
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00408df0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x500310
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00408df0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0xc0]
cmp eax, 0x10
jb 0x500344
inc eax
lea ecx, [ebp - 0xd4]
push eax
push dword [ebp - 0xd4]
call fcn.00408df0
cmp dword [ebp - 0xa8], 0x10
lea eax, [ebp - 0x658]
mov ecx, dword [edi]
lea edx, [ebp - 0xbc]
cmovae edx, dword [ebp - 0xbc]
push eax
mov dword [ebp - 0xc0], 0xf
mov dword [ebp - 0xc4], 0
mov byte [ebp - 0xd4], 0
call fcn.004fdae0
mov ecx, dword [ebp - 0x654]
add esp, 4
sub ecx, dword [ebp - 0x658]
mov dword [ebp - 0x66c], eax
mov eax, 0x84210843
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x500851
push 0x5f1952
lea ecx, [ebp - 0xa4]
call fcn.004088b0
push 0x5f1952
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.004088b0
mov byte [ebp - 4], 0x10
mov eax, 0x84210843
mov ecx, dword [ebp - 0x654]
sub ecx, dword [ebp - 0x658]
imul ecx
mov dword [ebp - 0x660], 0
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x500542
xor esi, esi
mov dword [ebp - 0x648], esi
nop dword [eax + eax]
mov eax, dword [ebp - 0x658]
add eax, esi
cmp dword [eax + 0x44], 0x10
mov dword [ebp - 0x64c], eax
lea esi, [eax + 0x30]
jb 0x50042b
mov ecx, dword [esi]
jmp 0x50042d
mov ecx, esi
mov edi, dword [esi + 0x10]
mov eax, 4
cmp edi, eax
cmovb eax, edi
push eax
push str.UIDA
push ecx
call fcn.00409750
add esp, 0xc
test eax, eax
jne 0x500483
cmp edi, 4
jb 0x500483
ja 0x500483
mov edx, dword [ebp - 0x64c]
add edx, 0x48
cmp dword [edx + 0x10], eax
sete al
test al, al
jne 0x5004a6
mov eax, dword [ebp - 0x65c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x50047b
push str.Crypt_engine_not_initialized_for_encrypting
jmp 0x5004ab
lea eax, [ebp - 0xa4]
jmp 0x5004d7
push str.UIDB
mov ecx, esi
call fcn.0040f500
test eax, eax
jne 0x5004ff
mov edx, dword [ebp - 0x64c]
add edx, 0x48
cmp dword [edx + 0x10], eax
sete al
test al, al
je 0x5004c0
push str.User_Data_encrypt_called_with_invalid_string
push str.OPM_USER_DATA_HANDLER
call fcn.00502600
push eax
call fcn.00502ef0
add esp, 0xc
jmp 0x5004ff
mov eax, dword [ebp - 0x65c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x5004d4
push str.Crypt_engine_not_initialized_for_encrypting
jmp 0x5004ab
lea eax, [ebp - 0x2c]
push eax
push edx
call fcn.005049c0
test eax, eax
je 0x5004ff
push eax
push str.Unable_to_encrypt_user_data__Error:__d
push str.OPM_USER_DATA_HANDLER
push ecx
call fcn.00502600
add esp, 4
push eax
call fcn.00503070
add esp, 0x10
mov ecx, dword [ebp - 0x654]
mov eax, 0x84210843
sub ecx, dword [ebp - 0x658]
mov edi, dword [ebp - 0x660]
mov esi, dword [ebp - 0x648]
inc edi
imul ecx
add esi, 0x7c
mov dword [ebp - 0x660], edi
add edx, ecx
mov dword [ebp - 0x648], esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x500410
mov esi, dword [ebp - 0x90]
lea eax, [ebp - 0xa4]
cmp esi, 0x10
push 0
cmovae eax, dword [ebp - 0xa4]
push 0x5f1952
push eax
call fcn.00409750
add esp, 0xc
test eax, eax
jne 0x50058d
cmp dword [ebp - 0x94], eax
ja 0x50058d
push 0x5f1952
lea ecx, [ebp - 0x2c]
call fcn.0040f500
test eax, eax
jne 0x50058d
lea edi, [eax + 8]
jmp 0x500808
xor eax, eax
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 0x12
lea edx, [ebp - 0xa4]
cmp esi, 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], eax
cmovae edx, dword [ebp - 0xa4]
mov byte [ebp - 0x74], al
cmp byte [edx], al
jne 0x5005db
xor ecx, ecx
jmp 0x5005e9
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5005e0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.00408bb0
mov eax, 1
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x8c]
mov dword [ebp - 0x64c], eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x648], eax
call fcn.004fc560
test al, al
je 0x50065c
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.004088b0
mov eax, 3
mov dword [ebp - 4], 0x14
lea edx, [ebp - 0x44]
mov dword [ebp - 0x64c], eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x648], eax
call fcn.004fc560
mov byte [ebp - 0x641], 0
test al, al
jne 0x500663
mov byte [ebp - 0x641], 1
mov eax, dword [ebp - 0x64c]
test al, 2
je 0x5006a5
mov ecx, dword [ebp - 0x48]
and eax, 0xfffffffd
mov dword [ebp - 0x64c], eax
cmp ecx, 0x10
jb 0x500693
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
call fcn.00408df0
mov eax, dword [ebp - 0x64c]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
mov dword [ebp - 4], 0x12
test al, 1
je 0x5006c5
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x5006c5
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00408df0
cmp byte [ebp - 0x641], 0
je 0x5006f0
push str.Unable_to_convert_request_code_string_to_NativeString_
push 0x613904
call fcn.00502600
push eax
call fcn.00503430
add esp, 0xc
mov edi, 0xc
jmp 0x5007be
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x8c]
push eax
call fcn.00408f10
mov esi, dword [ebp - 0x668]
lea ecx, [ebp - 0x640]
push dword [esi]
call fcn.00503c20
test al, al
jne 0x500746
push str.Unable_to_generate_internal_key_1
push 0x613904
call fcn.00502600
push eax
call fcn.00503430
add esp, 0xc
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x44]
push eax
call fcn.00408f10
mov eax, dword [esi]
lea ecx, [ebp - 0x640]
add eax, 0x18
push eax
call fcn.00503c20
test al, al
jne 0x500797
push str.Unable_to_generate_internal_key_2
push 0x613904
call fcn.00502600
push eax
call fcn.00503430
add esp, 0xc
mov eax, dword [esi]
cmp dword [eax + 0x10], 0
jne 0x5007ac
cmp dword [eax + 0x28], 0
jne 0x5007ac
mov edi, 0xc
jmp 0x5007be
mov ecx, dword [ebp - 0x664]
push esi
call fcn.0047f7f0
mov edi, dword [ebp - 0x66c]
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x5007d3
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x500802
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00409510
mov esi, dword [ebp - 0x90]
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x500823
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00408df0
mov esi, dword [ebp - 0x90]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp esi, 0x10
jb 0x50086e
lea eax, [esi + 1]
push eax
push dword [ebp - 0xa4]
lea ecx, [ebp - 0xa4]
call fcn.00408df0
jmp 0x50086e
push str.OutKey_size_less_than_1_in_opd_getUserKeys
push 0x613bb4
call fcn.00502600
push eax
call fcn.00502d70
add esp, 0xc
mov edi, 8
mov eax, dword [ebp - 0xa8]
cmp eax, 0x10
jb 0x50088c
inc eax
lea ecx, [ebp - 0xbc]
push eax
push dword [ebp - 0xbc]
call fcn.00408df0
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
lea ecx, [ebp - 0x1e8]
call fcn.004f2f70
lea ecx, [ebp - 0x2f8]
call fcn.004f2e90
lea ecx, [ebp - 0x620]
call fcn.004f2d50
mov eax, dword [ebp - 0x628]
cmp eax, 0x10
jb 0x5008e6
inc eax
lea ecx, [ebp - 0x63c]
push eax
push dword [ebp - 0x63c]
call fcn.00408df0
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x628], 0xf
mov dword [ebp - 0x62c], 0
mov byte [ebp - 0x63c], 0
call fcn.004f4970
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4