Function at 0x500340
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 0x5cc8db
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 0x5003cb
push dword [ebp - 0x664]
mov ecx, esi
call fcn.0047fa80
xor eax, eax
jmp 0x500b8e
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.00505170
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x50043e
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.00507b30
mov dword [ebp - 0x65c], eax
test eax, eax
jne 0x500481
push str.Unable_to_get_UserTableDataHandler_instance_in_opd_getUserKeys
push 0x613c34
call fcn.00502880
push eax
call fcn.005032f0
add esp, 0xc
mov edi, 0xc
jmp 0x500b27
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.00410b00
add esp, 4
push str.__OR_key_LIKE__
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x74]
call fcn.00419430
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8c]
call fcn.00466390
add esp, 4
push 0x5f8ec4
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xbc]
call fcn.00419430
add esp, 4
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x500518
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 0x500542
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 0x500569
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 0x500590
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 0x5005c4
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.004fdd70
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 0x500ad1
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 0x5007c2
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 0x5006ab
mov ecx, dword [esi]
jmp 0x5006ad
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 0x500703
cmp edi, 4
jb 0x500703
ja 0x500703
mov edx, dword [ebp - 0x64c]
add edx, 0x48
cmp dword [edx + 0x10], eax
sete al
test al, al
jne 0x500726
mov eax, dword [ebp - 0x65c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x5006fb
push str.Crypt_engine_not_initialized_for_encrypting
jmp 0x50072b
lea eax, [ebp - 0xa4]
jmp 0x500757
push str.UIDB
mov ecx, esi
call fcn.0040f6a0
test eax, eax
jne 0x50077f
mov edx, dword [ebp - 0x64c]
add edx, 0x48
cmp dword [edx + 0x10], eax
sete al
test al, al
je 0x500740
push str.User_Data_encrypt_called_with_invalid_string
push str.OPM_USER_DATA_HANDLER
call fcn.00502880
push eax
call fcn.00503170
add esp, 0xc
jmp 0x50077f
mov eax, dword [ebp - 0x65c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x500754
push str.Crypt_engine_not_initialized_for_encrypting
jmp 0x50072b
lea eax, [ebp - 0x2c]
push eax
push edx
call fcn.00504c40
test eax, eax
je 0x50077f
push eax
push str.Unable_to_encrypt_user_data__Error:__d
push str.OPM_USER_DATA_HANDLER
push ecx
call fcn.00502880
add esp, 4
push eax
call fcn.005032f0
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 0x500690
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 0x50080d
cmp dword [ebp - 0x94], eax
ja 0x50080d
push 0x5f1952
lea ecx, [ebp - 0x2c]
call fcn.0040f6a0
test eax, eax
jne 0x50080d
lea edi, [eax + 8]
jmp 0x500a88
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 0x50085b
xor ecx, ecx
jmp 0x500869
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x500860
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.004fc7f0
test al, al
je 0x5008dc
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.004fc7f0
mov byte [ebp - 0x641], 0
test al, al
jne 0x5008e3
mov byte [ebp - 0x641], 1
mov eax, dword [ebp - 0x64c]
test al, 2
je 0x500925
mov ecx, dword [ebp - 0x48]
and eax, 0xfffffffd
mov dword [ebp - 0x64c], eax
cmp ecx, 0x10
jb 0x500913
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 0x500945
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x500945
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00408df0
cmp byte [ebp - 0x641], 0
je 0x500970
push str.Unable_to_convert_request_code_string_to_NativeString_
push 0x613984
call fcn.00502880
push eax
call fcn.005036b0
add esp, 0xc
mov edi, 0xc
jmp 0x500a3e
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.00503ea0
test al, al
jne 0x5009c6
push str.Unable_to_generate_internal_key_1
push 0x613984
call fcn.00502880
push eax
call fcn.005036b0
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.00503ea0
test al, al
jne 0x500a17
push str.Unable_to_generate_internal_key_2
push 0x613984
call fcn.00502880
push eax
call fcn.005036b0
add esp, 0xc
mov eax, dword [esi]
cmp dword [eax + 0x10], 0
jne 0x500a2c
cmp dword [eax + 0x28], 0
jne 0x500a2c
mov edi, 0xc
jmp 0x500a3e
mov ecx, dword [ebp - 0x664]
push esi
call fcn.0047fa80
mov edi, dword [ebp - 0x66c]
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x500a53
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 0x500a82
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 0x500aa3
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 0x500aee
lea eax, [esi + 1]
push eax
push dword [ebp - 0xa4]
lea ecx, [ebp - 0xa4]
call fcn.00408df0
jmp 0x500aee
push str.OutKey_size_less_than_1_in_opd_getUserKeys
push 0x613c34
call fcn.00502880
push eax
call fcn.00502ff0
add esp, 0xc
mov edi, 8
mov eax, dword [ebp - 0xa8]
cmp eax, 0x10
jb 0x500b0c
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.004f31f0
lea ecx, [ebp - 0x2f8]
call fcn.004f3110
lea ecx, [ebp - 0x620]
call fcn.004f2fd0
mov eax, dword [ebp - 0x628]
cmp eax, 0x10
jb 0x500b66
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.004f4c00
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.005765b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4