Function at 0x5404e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
sub esp, 0xc48
lea edx, [esp + 0x630]
push edx
mov word [eax], 0
push str.Outlook
mov word [ecx], 0
push str.DefaultProfile
mov ecx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfiles
mov edx, SysReAllocStringLen
call fcn.004af7e0
test al, al
jne 0x540526
add esp, 0xc48
ret 8
push ebx
push esi
push edi
lea eax, [esp + 0x63c]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfiles_s
mov esi, 0x104
lea edi, [esp + 0x43c]
call fcn.004af0d0
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push 8
push 0
mov edx, edi
push edx
push SysReAllocStringLen
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x540575
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xc48
ret 8
mov edx, dword [esp + 0x10]
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
push edx
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x540764
push ebp
mov edi, edi
lea eax, [esp + 0x28]
push eax
add edi, 1
push str.9375CFF0413111d3B88A00104B2A6676
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 0x104
call fcn.006b227b
add esp, 8
test eax, eax
jne 0x540732
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x540732
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push eax
push eax
push eax
push str.ED475418_B0D6_11D2_8C3B_00104B2A6676
push edx
mov dword [esp + 0x28], eax
call esi
test eax, eax
jne 0x540732
mov eax, dword [esp + 0x10]
cmp eax, 4
jb 0x540732
push eax
call fcn.0069c0de
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ebp
push 0
push 0
push str.ED475418_B0D6_11D2_8C3B_00104B2A6676
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x540729
mov eax, 3
cmp dword [esp + 0x10], eax
jbe 0x540729
mov dword [esp + 0x1c], eax
jmp 0x540670
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + ebp - 3]
mov ecx, dword [esp + 0xc60]
mov edx, dword [esp + 0xc5c]
push eax
mov word [ecx], 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x440]
push ecx
push str._s_s_08x
mov esi, 0x104
lea edi, [esp + 0x240]
mov word [edx], 0
call fcn.004af0d0
add esp, 0x10
push str.Email
lea esi, [esp + 0x84c]
mov ecx, edi
call fcn.00540130
mov bl, al
test bl, bl
je 0x5406f7
mov edx, esi
mov esi, dword [esp + 0xc60]
call fcn.00497910
push str.SMTP_Server
lea esi, [esp + 0xa54]
mov ecx, edi
call fcn.00540130
mov bl, al
test bl, bl
jne 0x54070e
mov eax, dword [esp + 0x1c]
add eax, 4
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jb 0x540670
jmp 0x540721
mov esi, dword [esp + 0xc5c]
lea edx, [esp + 0xa50]
call fcn.00497910
test bl, bl
jne 0x54075a
mov edi, dword [esp + 0x24]
push ebp
call fcn.0069c8fa
add esp, 4
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x5405a0
jmp 0x540763
push ebp
call fcn.0069c8fa
add esp, 4
pop ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc48
ret 8