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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x658
mov eax, dword [0x60a070]
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 0x5d515c
mov dword [esp + 0x2c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], esi
call fcn.004ebad0
push eax
call fcn.004ebf40
add esp, 0xc
test edi, edi
je 0x47915e
mov eax, dword [esp + 0x24]
test eax, eax
je 0x47915e
cmp dword [esp + 0x20], 0
je 0x47915e
cmp dword [esp + 0x10], 0
je 0x47915e
test esi, esi
je 0x47915e
mov ecx, 0x5b9add
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x478aa0
test dl, dl
je 0x478a9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x478aa0
add eax, 2
add ecx, 2
test dl, dl
jne 0x478a80
xor eax, eax
jmp 0x478aa5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x478ab3
push str.Invalid_domain_to_getValForKey
jmp 0x479163
mov esi, dword [esp + 0x20]
mov ecx, 0x5b9add
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x478ae0
test dl, dl
je 0x478adc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x478ae0
add eax, 2
add ecx, 2
test dl, dl
jne 0x478ac0
xor eax, eax
jmp 0x478ae5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x478af3
push str.Invalid_sub_domain_to_getValForKey
jmp 0x479163
mov eax, dword [esp + 0x10]
mov ecx, 0x5b9add
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x478b20
test dl, dl
je 0x478b1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x478b20
add eax, 2
add ecx, 2
test dl, dl
jne 0x478b00
xor eax, eax
jmp 0x478b25
sbb eax, eax
or eax, 1
test eax, eax
jne 0x478b33
push str.Invalid_key_to_getValForKey
jmp 0x479163
push edi
push str.opm_getValueForkey_called_with_inRef_p
push 0x5d515c
push ecx
call fcn.004ebad0
add esp, 4
push eax
call fcn.004ebf40
add esp, 0x10
cmp dword [edi], 0
jne 0x478b8f
mov ecx, edi
call fcn.004ea730
test eax, eax
je 0x478b8f
push str.OPM_db_is_not_initialized__can_not_proceed_for_getValForKey
push 0x5d4eac
call fcn.004ebad0
push eax
call fcn.004ec870
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x654]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x90]
push edx
call fcn.00405500
push esi
lea ecx, [esp + 0x7c]
call fcn.00405500
push dword [esp + 0x10]
lea ecx, [esp + 0x64]
call fcn.00405500
push 0x5b9add
lea ecx, [esp + 0x4c]
call fcn.00405500
push 0x5b9add
lea ecx, [esp + 0xac]
call fcn.00405500
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.00405500
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x30]
call fcn.0040ec60
lea ecx, [esp + 0xc0]
call fcn.00405410
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.004e9230
mov edx, eax
mov ecx, edi
call fcn.00476890
cmp al, 1
jne 0x478cdd
push str.Initial_call_to_opd_getRecordsWithFields_was_a_failure__retrying_after_recovery
push 0x5d515c
call fcn.004ebad0
push eax
call fcn.004ec240
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.004e9230
test eax, eax
je 0x478cdd
push str.Retried_call_to_opd_getRecordsWithFields_was_a_failure
push 0x5d515c
call fcn.004ebad0
push eax
call fcn.004ec240
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.004e9230
mov esi, eax
test esi, esi
je 0x478d23
push str.call_to_opd_getRecordsWithFields_in_opm_getValueForKey_for_opm_data_failed
push 0x5d515c
call fcn.004ebad0
push eax
call fcn.004ec240
add esp, 0xc
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
lea edx, [esp + 0x18]
call fcn.00477f00
add esp, 4
test eax, eax
je 0x478d52
push str.failed_in_compareAndCorrectDBEntries_in_opm_getValueForKey_for_opm_data
push 0x5d515c
call fcn.004ebad0
push eax
call fcn.004ec3c0
add esp, 0xc
test esi, esi
je 0x478d7b
push esi
push str.Failed_in_getting_records_for_fields_in_opm_getValueForKey_with_error_as:__d
push 0x5d515c
push ecx
call fcn.004ebad0
add esp, 4
push eax
call fcn.004ec3c0
add esp, 0x10
or esi, 0xffffffff
jmp 0x4790fa
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 0x478dbc
push str.No_Record_found_for_the_input_fields_in_opm_getValueForKey
push 0x5d515c
call fcn.004ebad0
push eax
call fcn.004ec240
add esp, 0xc
mov esi, 0xfffffff8
jmp 0x4790fa
lea eax, [esi + 0x48]
lea ecx, [esp + 0x48]
cmp ecx, eax
je 0x478dd5
push 0xffffffffffffffff
push 0
push eax
call fcn.00407c90
mov esi, dword [esp + 0x14]
add esi, 0x60
lea eax, [esp + 0xa8]
cmp eax, esi
je 0x478def
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00407c90
mov eax, dword [esp + 0x58]
test eax, eax
je 0x478f03
push 0x5b9add
lea ecx, [esp + 0xc4]
call fcn.00405500
lea eax, [esp + 0xc0]
push eax
push ecx
lea ecx, [esp + 0xf8]
call fcn.004ef270
lea ecx, [esp + 0xc0]
call fcn.00405410
push 0x5b9add
lea ecx, [esp + 0xdc]
mov byte [esp + 0x13], 0
call fcn.00405500
cmp dword [esp + 0xb8], 0
jne 0x478ed2
cmp dword [0x615504], 0
je 0x478f3a
push 0x6154f4
push ecx
lea ecx, [esp + 0xf8]
call fcn.004ef1d0
test al, al
jne 0x478e7e
push str.Failed_to_initialize_crypt_Engine_in_opm_getValueForKey_for_key2
jmp 0x478faa
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xf8]
call fcn.004eed40
test eax, eax
je 0x478eba
push str.Failed_to_decrypt_in_opm_getValueForKey_using_Key2
push 0x5d515c
call fcn.004ebad0
push eax
call fcn.004ec540
add esp, 0xc
mov al, 1
jmp 0x478f3e
push str.decrypted_using_a2_in_opm_getValueForKey
push 0x5d515c
call fcn.004ebad0
push eax
call fcn.004ebf40
add esp, 0xc
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x54]
call fcn.00407c90
lea ecx, [esp + 0xd8]
call fcn.00405410
lea ecx, [esp + 0xf0]
call fcn.00477970
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
test edx, edx
jne 0x47905d
inc eax
push eax
push str.returning_size_of_value_as:_d_in_opm_getValueForKey
push 0x5d4eac
push ecx
mov dword [esi], eax
call fcn.004ebad0
add esp, 4
push eax
call fcn.004ec7e0
add esp, 0x10
xor esi, esi
jmp 0x4790fa
mov al, byte [esp + 0xf]
cmp dword [0x6154ac], 0
je 0x478f9c
push 0x61549c
push ecx
lea ecx, [esp + 0xf8]
call fcn.004ef1d0
test al, al
je 0x478e74
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xf8]
call fcn.004eed40
test eax, eax
je 0x478eba
push str.Failed_to_decrypt_in_opm_getValueForKey_using_Key2
push 0x5d515c
call fcn.004ebad0
push eax
call fcn.004ec540
add esp, 0xc
mov al, 1
cmp dword [0x615504], 0
jne 0x478fc5
push str.key2_is_empty
push 0x5d515c
call fcn.004ebad0
push eax
call fcn.004ec540
add esp, 0xc
or esi, 0xffffffff
jmp 0x479040
test al, al
je 0x478ed2
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 0x5d515c
push ecx
call fcn.004ebad0
add esp, 4
push eax
call fcn.004ec240
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.004e9360
mov esi, 0xfffffff6
lea ecx, [esp + 0xd8]
call fcn.00405410
lea ecx, [esp + 0xf0]
call fcn.00477970
jmp 0x4790fa
mov ecx, dword [esi]
cmp ecx, eax
jbe 0x4790d6
cmp dword [esp + 0x5c], 0x10
lea eax, [esp + 0x48]
push ecx
cmovae eax, dword [esp + 0x4c]
push eax
push dword [edx]
call fcn.0057b920
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 0x5d515c
push ecx
call fcn.004ebad0
add esp, 4
push eax
call fcn.004ec240
add esp, 0x18
xor esi, esi
jmp 0x4790fa
push str.Insufficient_buffer_size...in_opm_getValueForKey
push 0x5d4eac
call fcn.004ebad0
push eax
call fcn.004ec900
mov eax, dword [esp + 0x64]
add esp, 0xc
inc eax
mov dword [esi], eax
mov esi, 0xfffffffc
lea ecx, [esp + 0x3c]
call fcn.00479660
lea ecx, [esp + 0x14]
call fcn.00479660
lea ecx, [esp + 0x2c]
call fcn.004052f0
lea ecx, [esp + 0xa8]
call fcn.00405410
lea ecx, [esp + 0x48]
call fcn.00405410
lea ecx, [esp + 0x60]
call fcn.00405410
lea ecx, [esp + 0x78]
call fcn.00405410
lea ecx, [esp + 0x90]
call fcn.00405410
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x654]
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
push str.Invalid_arguments_in_get_value_for_key...in_opm_getValueForKey
push 0x5d515c
call fcn.004ebad0
push eax
call fcn.004ec3c0
mov ecx, dword [esp + 0x668]
add esp, 0xc
mov eax, 0xfffffffd
pop edi
pop esi
xor ecx, esp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret