Function at 0x4015d0
Capabilities:
Accept command line arguments
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403c2f
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x406048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x224]
push eax
push 1
xor edi, edi
push edi
push str.SOFTWAREClientsMailMicrosoft_OutlookProtocolsmailto_shellopencommand
mov dword [ebp - 0x220], edi
push 0x80000002
xor ebx, ebx
mov dword [ebp - 0x224], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40181c
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x218], cx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x224]
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x218]
push ecx
push edi
push edi
push edi
push edx
mov dword [ebp - 0x238], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40180f
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004020a0
push 0x208
lea ecx, [ebp - 0x218]
push edi
push ecx
mov dword [ebp - 4], edi
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x21c]
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 0x230], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x230], edi
jle 0x4017db
mov edx, dword [eax]
lea eax, [ebp - 0x21c]
call fcn.004021e0
lea ebx, [ebp - 0x21c]
call fcn.004025b0
mov ebx, eax
call fcn.00402630
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x234], eax
cmp eax, edi
je 0x401748
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.00402990
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 1
lea ebx, [edi + 1]
jmp 0x401761
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, 0x4044bc
call fcn.004020a0
mov ebx, 2
mov dword [ebp - 4], ebx
mov ecx, esi
mov dword [ebp - 0x220], ebx
call fcn.00402170
mov dword [ebp - 4], 1
test bl, 2
je 0x4017a5
mov eax, dword [ebp - 0x23c]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x220], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4017a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
test bl, 1
je 0x4017cf
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4017cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x22c]
mov ebx, dword [ebp - 0x234]
cmp eax, edi
je 0x4017e6
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40180f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403476
mov esp, ebp
pop ebp
ret