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

Disassembly:
sub esp, 0x848
push ebx
mov ebx, dword [esp + 0x850]
push ebp
mov ebp, dword [esp + 0x858]
push esi
lea eax, [esp + 0x14]
push eax
push 8
xor esi, esi
push esi
push str.SoftwareMicrosoftOffice
mov word [ebx], si
push SysReAllocStringLen
mov word [ebp], si
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x54020a
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x848
ret 8
mov eax, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x254]
push edx
push esi
push eax
mov dword [esp + 0x3c], 0x104
mov dword [esp + 0x4c], esi
call edi
test eax, eax
jne 0x5404b0
mov edi, edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x244]
push str._d.0
add esi, 1
push edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x2c], 0
call fcn.0069d13f
add esp, 0xc
cmp eax, 1
jne 0x54048b
mov eax, dword [esp + 0x20]
cmp eax, 0xf
jl 0x54048b
cmp eax, dword [esp + 0x2c]
jle 0x54048b
lea eax, [esp + 0x240]
push eax
push str._sOutlookProfilesOutlook
lea edx, [esp + 0x658]
call fcn.00401000
mov eax, dword [esp + 0x20]
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push 8
push 0
lea edx, [esp + 0x65c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x54048b
mov eax, dword [esp + 0x10]
xor esi, esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
push esi
push eax
mov dword [esp + 0x48], 0x104
call edi
test eax, eax
jne 0x540476
lea esp, [esp]
lea ecx, [esp + 0x38]
push ecx
add esi, 1
push str.9375CFF0413111d3B88A00104B2A6676
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], 0x104
call fcn.006b227b
add esp, 8
test eax, eax
jne 0x540439
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push 1
push eax
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x540439
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x14]
push edx
push eax
push eax
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
push str.ED475418_B0D6_11D2_8C3B_00104B2A6676
push eax
call edi
test eax, eax
jne 0x540439
mov eax, dword [esp + 0x14]
cmp eax, 4
jb 0x540439
push eax
call fcn.0069c0de
mov edx, dword [esp + 0x28]
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
push esi
push 0
push 0
push str.ED475418_B0D6_11D2_8C3B_00104B2A6676
push edx
call edi
mov edi, eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x540430
mov edi, 3
cmp dword [esp + 0x14], edi
jbe 0x540430
lea ecx, [ecx]
mov eax, dword [esi + edi - 3]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov word [ebp], 0
push str._s_08x
lea edx, [esp + 0x454]
mov word [ebx], 0
call fcn.00401000
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push 0x6bc0cc
push str.SMTP_Server
lea ecx, [esp + 0x454]
call fcn.004af7e0
test al, al
je 0x540427
mov edx, dword [esp + 0x10]
push ebp
push 0x6bc0cc
push str.Email
lea ecx, [esp + 0x454]
call fcn.004af7e0
test al, al
jne 0x540465
add edi, 4
cmp edi, dword [esp + 0x14]
jb 0x5403c0
push esi
call fcn.0069c8fa
add esp, 4
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x4c]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x540300
jmp 0x540476
mov edx, dword [esp + 0x20]
push esi
mov dword [esp + 0x30], edx
call fcn.0069c8fa
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x34]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x254]
push edx
push esi
push eax
call edi
test eax, eax
je 0x540240
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
cmp dword [esp + 0x28], eax
pop esi
pop ebp
setg al
pop ebx
add esp, 0x848
ret 8