Function at 0x409160
Capabilities:
Create process on windows
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4d0b77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov esi, 0x104
push str.mailto_shell_
push SysReAllocString
mov dword [esp + 0x28], esi
call ebp
test eax, eax
je 0x4091b6
push 0
push 0
push 0x50da88
call fcn.004affba
jmp 0x409430
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push 0
push 0x515d3c
push eax
mov dword [esp + 0x34], esi
mov byte [esp + 0x40], 0
call ebx
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4091f7
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x409222
mov edi, str.open
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x104
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.mailto_shell_
lea ecx, [esp + 0x18]
call fcn.004a91d7
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x23c], 0
call fcn.004a9545
push str.command
lea ecx, [esp + 0x18]
call fcn.004a9545
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
push SysReAllocString
call ebp
test eax, eax
jne 0x409411
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 0x515d3c
push ecx
mov dword [esp + 0x34], esi
call ebx
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4092bb
push 0xffffffffffffffff
push eax
push 0xef1d
call fcn.004afff2
jmp 0x40941c
lea edx, [esp + 0x12c]
push esi
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
lea ecx, [esp + 0x12c]
push 0x22
push ecx
lea edi, [esp + 0x134]
call fcn.00437f40
add esp, 8
test eax, eax
je 0x409300
lea edi, [eax + 1]
push 0x22
push edi
call fcn.00437f40
add esp, 8
test eax, eax
je 0x40931a
jmp 0x409316
lea edx, [esp + 0x12c]
push 0x20
push edx
call fcn.00437f40
add esp, 8
test eax, eax
je 0x40931a
mov byte [eax], 0
inc eax
push eax
lea ecx, [esp + 0x14]
call fcn.004a91d7
mov eax, dword [0x510634]
mov dword [esp + 0x20], eax
mov ebx, 2
push 0x50d564
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.004a1449
mov ecx, dword [esp + 0x10]
mov esi, eax
lea edx, [esp + 0x24]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
sub eax, ebx
push eax
push edx
call fcn.004a1308
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x23c], 3
call fcn.004a92a2
lea ecx, [esp + 0x24]
mov byte [esp + 0x238], bl
call fcn.004a9169
lea eax, [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.004a1384
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 4
call fcn.004a92a2
lea ecx, [esp + 0x24]
mov byte [esp + 0x238], bl
call fcn.004a9169
mov ecx, dword [esp + 0x240]
push ecx
lea ecx, [esp + 0x14]
call fcn.004a9545
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call fcn.004a9581
mov eax, dword [esp + 0x10]
push 5
push 0x50da78
push eax
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x20]
mov byte [esp + 0x238], 1
call fcn.004a9169
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], 0
call fcn.004a9169
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov dword [esp + 0x238], 0xffffffff
call fcn.004a9169
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret