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

Disassembly:
push 0xffffffffffffffff
push 0x4e40e7
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 0x45f689
push 0
push 0
push str.mail_client_not_found_n
call fcn.00419540
add esp, 0xc
jmp 0x45f906
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 0x5269d8
push eax
mov byte [esp + 0x40], 0
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
je 0x45f6ca
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x45f6f5
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.004c57f5
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x23c], 0
call fcn.004c5b63
push str.command
lea ecx, [esp + 0x18]
call fcn.004c5b63
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
push SysReAllocString
call ebp
test eax, eax
jne 0x45f8e7
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 0x5269d8
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 0x45f791
push 0xffffffffffffffff
push eax
push 0x87
call fcn.004194a0
add esp, 0xc
jmp 0x45f8f2
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.004ae0f0
add esp, 8
test eax, eax
je 0x45f7d6
lea edi, [eax + 1]
push 0x22
push edi
call fcn.004ae0f0
add esp, 8
test eax, eax
je 0x45f7f0
jmp 0x45f7ec
lea edx, [esp + 0x12c]
push 0x20
push edx
call fcn.004ae0f0
add esp, 8
test eax, eax
je 0x45f7f0
mov byte [eax], 0
inc eax
push eax
lea ecx, [esp + 0x14]
call fcn.004c57f5
mov eax, dword [0x52251c]
mov dword [esp + 0x20], eax
mov ebx, 2
push 0x51e234
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.004bd7a3
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.004bd68d
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x23c], 3
call fcn.004c58c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x238], bl
call fcn.004c5787
lea eax, [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.004bd709
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 4
call fcn.004c58c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x238], bl
call fcn.004c5787
mov ecx, dword [esp + 0x240]
push ecx
lea ecx, [esp + 0x14]
call fcn.004c5b63
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call fcn.004c5b9f
mov eax, dword [esp + 0x10]
push 5
push 0x51c58c
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.004c5787
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], 0
call fcn.004c5787
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.004c5787
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret 4