Function at 0x4f4000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x658
mov eax, dword [0x64a070]
xor eax, esp
mov dword [esp + 0x654], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [esp + 0x20], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
push str.Performing_get_value_for_Key_...in_opm_getValueForKey
push 0x613c34
mov dword [esp + 0x2c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], esi
call fcn.00502880
push eax
call fcn.00502cf0
add esp, 0xc
test edi, edi
je 0x4f476e
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4f476e
cmp dword [esp + 0x20], 0
je 0x4f476e
cmp dword [esp + 0x10], 0
je 0x4f476e
test esi, esi
je 0x4f476e
mov ecx, 0x5f1952
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4f40b0
test dl, dl
je 0x4f40ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4f40b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4f4090
xor eax, eax
jmp 0x4f40b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4f40c3
push str.Invalid_domain_to_getValForKey
jmp 0x4f4773
mov esi, dword [esp + 0x20]
mov ecx, 0x5f1952
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4f40f0
test dl, dl
je 0x4f40ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4f40f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4f40d0
xor eax, eax
jmp 0x4f40f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4f4103
push str.Invalid_sub_domain_to_getValForKey
jmp 0x4f4773
mov eax, dword [esp + 0x10]
mov ecx, 0x5f1952
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4f4130
test dl, dl
je 0x4f412c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4f4130
add eax, 2
add ecx, 2
test dl, dl
jne 0x4f4110
xor eax, eax
jmp 0x4f4135
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4f4143
push str.Invalid_key_to_getValForKey
jmp 0x4f4773
push edi
push str.opm_getValueForkey_called_with_inRef_p
push 0x613c34
push ecx
call fcn.00502880
add esp, 4
push eax
call fcn.00502cf0
add esp, 0x10
cmp dword [edi], 0
jne 0x4f419f
mov ecx, edi
call fcn.005020b0
test eax, eax
je 0x4f419f
push str.OPM_db_is_not_initialized__can_not_proceed_for_getValForKey
push 0x613984
call fcn.00502880
push eax
call fcn.00503620
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x654]
xor ecx, esp
call fcn.005765b2
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x90]
push edx
call fcn.004088b0
push esi
lea ecx, [esp + 0x7c]
call fcn.004088b0
push dword [esp + 0x10]
lea ecx, [esp + 0x64]
call fcn.004088b0
push 0x5f1952
lea ecx, [esp + 0x4c]
call fcn.004088b0
push 0x5f1952
lea ecx, [esp + 0xac]
call fcn.004088b0
push str.value
lea ecx, [esp + 0xc4]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.004088b0
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x30]
call fcn.0041c310
lea ecx, [esp + 0xc0]
call fcn.00408870
push 1
lea eax, [esp + 0x18]
mov ecx, edi
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00500bb0
mov edx, eax
mov ecx, edi
call fcn.004f1e80
cmp al, 1
jne 0x4f42ed
push str.Initial_call_to_opd_getRecordsWithFields_was_a_failure__retrying_after_recovery
push 0x613c34
call fcn.00502880
push eax
call fcn.00502ff0
add esp, 0xc
lea eax, [esp + 0x14]
mov ecx, edi
push 1
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00500bb0
test eax, eax
je 0x4f42ed
push str.Retried_call_to_opd_getRecordsWithFields_was_a_failure
push 0x613c34
call fcn.00502880
push eax
call fcn.00502ff0
add esp, 0xc
push 0
lea eax, [esp + 0x40]
mov ecx, edi
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00500bb0
mov esi, eax
test esi, esi
je 0x4f4333
push str.call_to_opd_getRecordsWithFields_in_opm_getValueForKey_for_opm_data_failed
push 0x613c34
call fcn.00502880
push eax
call fcn.00502ff0
add esp, 0xc
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
lea edx, [esp + 0x18]
call fcn.004f3500
add esp, 4
test eax, eax
je 0x4f4362
push str.failed_in_compareAndCorrectDBEntries_in_opm_getValueForKey_for_opm_data
push 0x613c34
call fcn.00502880
push eax
call fcn.00503170
add esp, 0xc
test esi, esi
je 0x4f438b
push esi
push str.Failed_in_getting_records_for_fields_in_opm_getValueForKey_with_error_as:__d
push 0x613c34
push ecx
call fcn.00502880
add esp, 4
push eax
call fcn.00503170
add esp, 0x10
or esi, 0xffffffff
jmp 0x4f470a
mov ecx, dword [esp + 0x18]
mov eax, 0x84210843
mov esi, dword [esp + 0x14]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4f43cc
push str.No_Record_found_for_the_input_fields_in_opm_getValueForKey
push 0x613c34
call fcn.00502880
push eax
call fcn.00502ff0
add esp, 0xc
mov esi, 0xfffffff8
jmp 0x4f470a
lea eax, [esi + 0x48]
lea ecx, [esp + 0x48]
cmp ecx, eax
je 0x4f43e5
push 0xffffffffffffffff
push 0
push eax
call fcn.00408cb0
mov esi, dword [esp + 0x14]
add esi, 0x60
lea eax, [esp + 0xa8]
cmp eax, esi
je 0x4f43ff
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00408cb0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4f4513
push 0x5f1952
lea ecx, [esp + 0xc4]
call fcn.004088b0
lea eax, [esp + 0xc0]
push eax
push ecx
lea ecx, [esp + 0xf8]
call fcn.00505170
lea ecx, [esp + 0xc0]
call fcn.00408870
push 0x5f1952
lea ecx, [esp + 0xdc]
mov byte [esp + 0x13], 0
call fcn.004088b0
cmp dword [esp + 0xb8], 0
jne 0x4f44e2
cmp dword [0x658dd0], 0
je 0x4f454a
push 0x658dc0
push ecx
lea ecx, [esp + 0xf8]
call fcn.005050d0
test al, al
jne 0x4f448e
push str.Failed_to_initialize_crypt_Engine_in_opm_getValueForKey_for_key2
jmp 0x4f45ba
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xf8]
call fcn.00504c40
test eax, eax
je 0x4f44ca
push str.Failed_to_decrypt_in_opm_getValueForKey_using_Key2
push 0x613c34
call fcn.00502880
push eax
call fcn.005032f0
add esp, 0xc
mov al, 1
jmp 0x4f454e
push str.decrypted_using_a2_in_opm_getValueForKey
push 0x613c34
call fcn.00502880
push eax
call fcn.00502cf0
add esp, 0xc
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x54]
call fcn.00408cb0
lea ecx, [esp + 0xd8]
call fcn.00408870
lea ecx, [esp + 0xf0]
call fcn.004f2f70
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
test edx, edx
jne 0x4f466d
inc eax
push eax
push str.returning_size_of_value_as:_d_in_opm_getValueForKey
push 0x613984
push ecx
mov dword [esi], eax
call fcn.00502880
add esp, 4
push eax
call fcn.00503590
add esp, 0x10
xor esi, esi
jmp 0x4f470a
mov al, byte [esp + 0xf]
cmp dword [0x658d78], 0
je 0x4f45ac
push 0x658d68
push ecx
lea ecx, [esp + 0xf8]
call fcn.005050d0
test al, al
je 0x4f4484
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xf8]
call fcn.00504c40
test eax, eax
je 0x4f44ca
push str.Failed_to_decrypt_in_opm_getValueForKey_using_Key2
push 0x613c34
call fcn.00502880
push eax
call fcn.005032f0
add esp, 0xc
mov al, 1
cmp dword [0x658dd0], 0
jne 0x4f45d5
push str.key2_is_empty
push 0x613c34
call fcn.00502880
push eax
call fcn.005032f0
add esp, 0xc
or esi, 0xffffffff
jmp 0x4f4650
test al, al
je 0x4f44e2
cmp dword [esp + 0x74], 0x10
lea edx, [esp + 0x60]
lea ecx, [esp + 0x78]
cmovae edx, dword [esp + 0x60]
lea eax, [esp + 0x90]
cmp dword [esp + 0x8c], 0x10
push edx
cmovae ecx, dword [esp + 0x7c]
cmp dword [esp + 0xa8], 0x10
push ecx
cmovae eax, dword [esp + 0x98]
push eax
push str.Deleting_record_with_fields_domain:_s_subDomain:_s_key:_s
push 0x613c34
push ecx
call fcn.00502880
add esp, 4
push eax
call fcn.00502ff0
add esp, 0x18
lea eax, [esp + 0x60]
mov ecx, edi
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00500ce0
mov esi, 0xfffffff6
lea ecx, [esp + 0xd8]
call fcn.00408870
lea ecx, [esp + 0xf0]
call fcn.004f2f70
jmp 0x4f470a
mov ecx, dword [esi]
cmp ecx, eax
jbe 0x4f46e6
cmp dword [esp + 0x5c], 0x10
lea eax, [esp + 0x48]
push ecx
cmovae eax, dword [esp + 0x4c]
push eax
push dword [edx]
call fcn.005a86c0
add esp, 0xc
lea edx, [esp + 0x60]
cmp dword [esp + 0x74], 0x10
lea ecx, [esp + 0x78]
lea eax, [esp + 0x90]
cmovae edx, dword [esp + 0x60]
cmp dword [esp + 0x8c], 0x10
push edx
cmovae ecx, dword [esp + 0x7c]
cmp dword [esp + 0xa8], 0x10
push ecx
cmovae eax, dword [esp + 0x98]
push eax
push str.Successfully_retreived_value_from_opm_domain:_s_subdomain:_s_key:_s_in_opm_getValueForKey
push 0x613c34
push ecx
call fcn.00502880
add esp, 4
push eax
call fcn.00502ff0
add esp, 0x18
xor esi, esi
jmp 0x4f470a
push str.Insufficient_buffer_size...in_opm_getValueForKey
push 0x613984
call fcn.00502880
push eax
call fcn.005036b0
mov eax, dword [esp + 0x64]
add esp, 0xc
inc eax
mov dword [esi], eax
mov esi, 0xfffffffc
lea ecx, [esp + 0x3c]
call fcn.004f4c00
lea ecx, [esp + 0x14]
call fcn.004f4c00
lea ecx, [esp + 0x2c]
call fcn.0040d220
lea ecx, [esp + 0xa8]
call fcn.00408870
lea ecx, [esp + 0x48]
call fcn.00408870
lea ecx, [esp + 0x60]
call fcn.00408870
lea ecx, [esp + 0x78]
call fcn.00408870
lea ecx, [esp + 0x90]
call fcn.00408870
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x654]
xor ecx, esp
call fcn.005765b2
mov esp, ebp
pop ebp
ret
push str.Invalid_arguments_in_get_value_for_key...in_opm_getValueForKey
push 0x613c34
call fcn.00502880
push eax
call fcn.00503170
mov ecx, dword [esp + 0x668]
add esp, 0xc
mov eax, 0xfffffffd
pop edi
pop esi
xor ecx, esp
call fcn.005765b2
mov esp, ebp
pop ebp
ret