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

Disassembly:
push 0xffffffffffffffff
push 0x4a7667
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 connect
mov dword [esp + 0x28], esi
call ebp
test eax, eax
je 0x430799
push 0
push 0
push str.mail_client_not_found_n
call fcn.00412d00
add esp, 0xc
jmp 0x430a16
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 0x4db730
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 0x4307da
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x430805
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.0048fbdf
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x23c], 0
call fcn.0048ff4d
push str.command
lea ecx, [esp + 0x18]
call fcn.0048ff4d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
push connect
call ebp
test eax, eax
jne 0x4309f7
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 0x4db730
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 0x4308a1
push 0xffffffffffffffff
push eax
push 0x87
call fcn.00412c60
add esp, 0xc
jmp 0x430a02
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.004795c0
add esp, 8
test eax, eax
je 0x4308e6
lea edi, [eax + 1]
push 0x22
push edi
call fcn.004795c0
add esp, 8
test eax, eax
je 0x430900
jmp 0x4308fc
lea edx, [esp + 0x12c]
push 0x20
push edx
call fcn.004795c0
add esp, 8
test eax, eax
je 0x430900
mov byte [eax], 0
inc eax
push eax
lea ecx, [esp + 0x14]
call fcn.0048fbdf
mov eax, dword [0x4d93ac]
mov dword [esp + 0x20], eax
mov ebx, 2
push 0x4d73f4
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.004880b9
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.00487fa3
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x23c], 3
call fcn.0048fcaa
lea ecx, [esp + 0x24]
mov byte [esp + 0x238], bl
call fcn.0048fb71
lea eax, [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.0048801f
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 4
call fcn.0048fcaa
lea ecx, [esp + 0x24]
mov byte [esp + 0x238], bl
call fcn.0048fb71
mov ecx, dword [esp + 0x240]
push ecx
lea ecx, [esp + 0x14]
call fcn.0048ff4d
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call fcn.0048ff89
mov eax, dword [esp + 0x10]
push 5
push 0x4d5710
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.0048fb71
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], 0
call fcn.0048fb71
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.0048fb71
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret 4