Function at 0x4617c0
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d805f
push eax
mov al, byte [0x67fc90]
mov dword fs:[0], esp
sub esp, 0x1b4
test al, al
push ebx
push ebp
push esi
push edi
jne 0x461ed9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREClientsMail
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [0x67fc90], 1
mov byte [esp + 0x27], 0
mov byte [esp + 0x25], 0
call ebx
test eax, eax
jne 0x461d2e
mov cl, byte [esp + 0x11]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x70], esp
push eax
mov byte [esi], cl
mov ecx, esi
call fcn.00407800
mov edi, 0x67f98c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x67f98c
mov ecx, esi
call fcn.00465a60
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xb0]
push edx
push eax
call fcn.00465280
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x6c]
push ecx
push edx
mov dword [esp + 0x1ec], 0
call fcn.004650b0
add esp, 0x20
mov eax, dword [esp + 0x14]
mov byte [esp + 0x1cc], 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x58]
mov ebp, dword [eax]
cmp ebp, eax
je 0x461b17
mov cl, byte [ebp + 8]
lea esi, [ebp + 8]
mov byte [esp + 0x20], cl
push 0
lea ecx, [esp + 0x24]
call fcn.00407800
mov edx, dword [0x5f35a0]
lea ecx, [esp + 0x20]
push edx
push 0
push esi
call fcn.0043c7f0
mov edi, str.Microsoft_Outlook
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x1cc], 2
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
not ecx
dec ecx
push ecx
push str.Microsoft_Outlook
push eax
push 0
lea ecx, [esp + 0x30]
call fcn.00466320
mov cl, byte [esp + 0x13]
lea edx, [esp + 0xb0]
test eax, eax
sete bl
or cl, bl
mov byte [esp + 0x13], cl
lea ecx, [esp + 0x20]
push ecx
push str.SOFTWAREClientsMail_
push edx
call fcn.00465c00
mov eax, dword [eax + 4]
add esp, 0xc
test eax, eax
jne 0x461930
mov eax, 0x5ee8a0
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 1
lea ecx, [esp + 0xb4]
mov esi, eax
call fcn.00407800
test esi, esi
jne 0x461aef
mov dl, byte [esp + 0x11]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x70], esp
push 0
mov ecx, esi
mov byte [esi], dl
call fcn.00407800
mov edi, str.DLLPathEx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DLLPathEx
mov ecx, esi
call fcn.00465a60
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x98]
push eax
push ecx
call fcn.00465280
add esp, 0x18
mov edi, 0x67f98c
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x90]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x1cc], 3
push ecx
push 0x67f98c
push edx
push eax
lea ecx, [esp + 0x98]
call fcn.00466320
test eax, eax
je 0x461ace
test bl, bl
je 0x4619ec
mov byte [esp + 0x11], 1
mov al, byte [esp + 0x11]
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call fcn.00407800
lea ecx, [esp + 0x12]
mov byte [esp + 0x1cc], 4
push ecx
lea ecx, [esp + 0x44]
call fcn.00465510
mov edx, dword [0x5f35a0]
lea eax, [esp + 0x20]
push edx
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1d8], 5
call fcn.0043c7f0
mov ecx, dword [0x5f35a0]
lea edx, [esp + 0x88]
push ecx
push 0
push edx
lea ecx, [esp + 0x4c]
call fcn.0043c7f0
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x50], 1
test eax, eax
jne 0x461a63
mov eax, 0x5ee8a0
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
push 0
lea ecx, [esp + 0x30]
call fcn.00466320
test eax, eax
mov eax, dword [0x67fc6c]
jne 0x461a93
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push ecx
push eax
lea edx, [esp + 0x20]
jmp 0x461a9d
lea ecx, [esp + 0x30]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov ecx, 0x67fc68
call fcn.00465740
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x1d0], 6
call fcn.00407800
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d0], 3
call fcn.00407800
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1d0], 2
call fcn.00407800
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x1d0], 1
call fcn.00407800
mov ebp, dword [ebp]
mov eax, dword [esp + 0x58]
cmp ebp, eax
jne 0x4618a6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0x1d8], 0
call fcn.004659a0
mov edx, dword [esp + 0x58]
push edx
call fcn.0059def7
add esp, 4
xor ebp, ebp
lea ecx, [esp + 0xa0]
mov dword [esp + 0x58], ebp
push 1
mov dword [esp + 0x60], ebp
mov dword [esp + 0x1d0], 0xffffffff
call fcn.00407800
mov al, byte [esp + 0x13]
test al, al
je 0x461ed9
mov al, byte [esp + 0x11]
test al, al
jne 0x461ed9
lea eax, [esp + 0x14]
push eax
push 2
push ebp
push str.SOFTWAREMicrosoftWindows_Messaging_SubsystemMSMapiApps
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x461ed9
lea ecx, [esp + 0xc0]
push 0x104
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0xc0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xbf]
cmp eax, edx
jbe 0x461be9
mov cl, byte [eax]
cmp cl, 0x2f
je 0x461be9
cmp cl, 0x5c
je 0x461be9
cmp cl, 0x3a
je 0x461be9
dec eax
lea ecx, [esp + 0xc0]
cmp eax, ecx
ja 0x461bcc
mov cl, byte [eax]
cmp cl, 0x2f
je 0x461bfa
cmp cl, 0x5c
je 0x461bfa
cmp cl, 0x3a
jne 0x461bfb
inc eax
mov edx, dword [esp + 0x14]
push 0x12
push str.Microsoft_Outlook
push 1
push ebp
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
jne 0x461ed9
mov cl, byte [esp + 0x12]
push ebp
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
call fcn.00407800
mov dl, byte [esp + 0x12]
push ebp
lea ecx, [esp + 0x44]
mov dword [esp + 0x1d0], 7
mov byte [esp + 0x44], dl
call fcn.00407800
mov edi, str.Microsoft_Outlook
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1d0], 8
mov ebx, ecx
lea ecx, [esp + 0x34]
push ebx
call fcn.0043cb30
test al, al
je 0x461ca4
mov edi, dword [esp + 0x34]
mov ecx, ebx
mov eax, ecx
mov esi, str.Microsoft_Outlook
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
call fcn.0043cb10
mov edi, str.mapi32.dll
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x44]
push ebx
call fcn.0043cb30
test al, al
je 0x461ce8
mov edi, dword [esp + 0x44]
mov ecx, ebx
mov edx, ecx
mov esi, str.mapi32.dll
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
call fcn.0043cb10
mov eax, dword [0x67fc6c]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push eax
push edx
mov ecx, 0x67fc68
call fcn.00465740
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x1d0], 9
call fcn.00407800
mov dword [esp + 0x1cc], 0xffffffff
push 1
lea ecx, [esp + 0x34]
jmp 0x461ed4
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_Messaging_Subsystem
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x461ed9
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xa0]
push edx
push eax
push 0
mov edi, 0xa
push str.MAPIX
push ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x461ed9
mov esi, 0x65bb4c
lea eax, [esp + 0x20]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x461dc1
test cl, cl
je 0x461dbd
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x461dc1
add eax, 2
add esi, 2
test cl, cl
jne 0x461d99
xor eax, eax
jmp 0x461dc6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x461ed9
mov al, byte [esp + 0x12]
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], al
call fcn.00407800
mov cl, byte [esp + 0x12]
push 0
mov byte [esp + 0x78], cl
lea ecx, [esp + 0x78]
mov dword [esp + 0x1d0], edi
call fcn.00407800
mov edi, str.Default
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1d0], 0xb
mov ebx, ecx
lea ecx, [esp + 0x68]
push ebx
call fcn.0043cb30
test al, al
je 0x461e4a
mov edi, dword [esp + 0x68]
mov ecx, ebx
mov edx, ecx
mov esi, str.Default
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x68]
call fcn.0043cb10
mov edi, str.mapi32.dll
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x78]
push ebx
call fcn.0043cb30
test al, al
je 0x461e90
mov edi, dword [esp + 0x78]
mov ecx, ebx
mov eax, ecx
mov esi, str.mapi32.dll
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x7c], ebx
mov byte [ecx + ebx], 0
mov eax, dword [0x67fc6c]
lea edx, [esp + 0x64]
push edx
push eax
lea eax, [esp + 0xa0]
mov ecx, 0x67fc68
push eax
call fcn.00465740
push 1
lea ecx, [esp + 0x78]
mov dword [esp + 0x1d0], 0xc
call fcn.00407800
mov dword [esp + 0x1cc], 0xffffffff
push 1
lea ecx, [esp + 0x68]
call fcn.00407800
mov ecx, dword [esp + 0x1c4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c0
ret