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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62cc58
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x6ec7c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.ExecuteMailto
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.00562ae0
push 0x669cc4
push 0x669ccc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call dword [0x63f42c]
push 0x669cd0
push 0x64b3f0
lea ecx, [ebp + 8]
call dword [0x63f42c]
push 0x669cd8
push 0x640cf4
lea ecx, [ebp + 8]
call dword [0x63f42c]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 0
push eax
push 0
push 0x20019
push 0
push 0x642690
push 0
push str.mailto_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x50d2b1
mov byte [ebp - 0x49], 0
jmp 0x50d46b
lea ecx, [ebp - 0x50]
call dword [0x63f5ac]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x54]
push eax
push eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
push 0
push 0x642690
push dword [ebp - 0x58]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x54], 0
call esi
cmp eax, 0xea
je 0x50d300
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x49], 0
jmp 0x50d462
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
call dword [0x63f428]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0x642690
push dword [ebp - 0x58]
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x50]
mov esi, eax
call dword [0x63f480]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x50d448
cmp dword [ebp - 0x60], 2
jne 0x50d3b9
lea ecx, [ebp - 0x5c]
call dword [0x63f5ac]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
push esi
push dword [ebp - 0x50]
mov byte [ebp - 4], 3
call edi
mov dword [ebp - 0x54], eax
test eax, eax
je 0x50d38d
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x5c]
push eax
push eax
call dword [0x63f484]
push eax
push esi
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x54], eax
call dword [0x63f480]
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x50d39f
lea ecx, [ebp - 0x5c]
call dword [0x63f5a8]
mov byte [ebp - 0x49], 0
jmp 0x50d462
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x50]
call dword [0x63ea94]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call dword [0x63f5a8]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x50]
push edi
push 0x669cec
call dword [0x63f42c]
push edi
push 0x669ce0
lea ecx, [ebp - 0x50]
mov esi, eax
call dword [0x63f42c]
add eax, esi
jne 0x50d3f8
push 0x20
lea ecx, [ebp - 0x50]
call dword [0x63f278]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
call dword [0x63f4e0]
lea eax, [ebp - 0xb4]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x70], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x50]
call dword [0x63f428]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x50]
mov esi, eax
call dword [0x63f480]
test esi, esi
jne 0x50d44e
mov byte [ebp - 0x49], 0
jmp 0x50d462
push dword [ebp - 0x6c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x70]
call esi
mov byte [ebp - 0x49], 1
lea ecx, [ebp - 0x50]
call dword [0x63f5a8]
lea ecx, [ebp - 0x48]
call fcn.005630c0
lea ecx, [ebp + 8]
call dword [0x63f5a8]
mov al, byte [ebp - 0x49]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00604ed9
mov esp, ebp
pop ebp
ret