Function at 0x403c16
Capabilities:
Create directory
Get common file path
Set registry value

Disassembly:
push 0x58
mov eax, 0x4162d2
call fcn.00410c16
mov ecx, dword [0x421504]
xor ebx, ebx
inc ebx
mov edx, ebx
call fcn.00401811
mov edi, eax
test edi, edi
je 0x404083
call fcn.00402039
push eax
lea ecx, [ebp - 0x30]
call fcn.00401e4f
and dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
push 0x104
call fcn.0040238a
push eax
xor eax, eax
push eax
push eax
push 0x1c
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x403c89
cmp byte [ebp + 8], 0
jne 0x403d01
push str.Unable_to_get_AppData_location.
lea ecx, [ebp - 0x2c]
call fcn.004024b1
mov byte [ebp - 4], bl
jmp 0x403ce9
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.00401cb3
push ecx
lea ecx, [ebp - 0x30]
call fcn.00404447
push str.OutlookFreeware.com
mov esi, eax
call fcn.00407811
pop ecx
push eax
push str.OutlookFreeware.com
mov ecx, esi
call fcn.004050d2
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403d08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403d08
cmp byte [ebp + 8], 0
jne 0x403d01
push str.Unable_to_create_AppData_folder.
lea ecx, [ebp - 0x2c]
call fcn.004024b1
mov byte [ebp - 4], 2
push 0
mov edx, ebx
lea ecx, [ebp - 0x2c]
call fcn.0040130e
pop ecx
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00402405
xor bl, bl
jmp 0x404035
push ecx
lea ecx, [ebp - 0x30]
call fcn.00404447
push str.Schemas_
mov esi, eax
call fcn.00407811
pop ecx
push eax
push str.Schemas_
mov ecx, esi
call fcn.004050d2
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403d77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403d77
cmp byte [ebp + 8], 0
jne 0x40407e
push str.Unable_to_create_destination_folder.
lea ecx, [ebp - 0x2c]
call fcn.004024b1
push 0
mov edx, ebx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
call fcn.0040130e
pop ecx
mov ecx, dword [ebp - 0x2c]
jmp 0x404076
push edi
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x40]
call fcn.0040198f
mov byte [ebp - 4], 3
push dword [ebp - 0x40]
mov ecx, dword [0x421504]
call fcn.00401854
pop ecx
pop ecx
test al, al
je 0x404044
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 4
push eax
push 0x4013a0
push 0xa
push dword [0x421504]
push dword [0x420568]
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp dword [ebp - 0x38], 0
jle 0x40400f
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
js 0x40400f
push str.SOFTWAREOutlookFreeware.comNewRules_
lea ecx, [ebp - 0x2c]
call fcn.00401cdf
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x50]
test esi, esi
jne 0x403e11
xor eax, eax
jmp 0x403e18
push esi
call fcn.00407811
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004050d2
push dword [ebp - 0x50]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
sub esp, 0x14
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
push dword [ebp - 0x2c]
push 0x80000001
call fcn.00405fdc
mov edi, dword [ebp - 0x60]
test eax, eax
jne 0x403ff9
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x60]
push 0
call fcn.004060d5
mov ecx, dword [0x421504]
push 0
push 3
pop edx
call fcn.004017e8
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ecx
test eax, eax
je 0x403e98
mov eax, dword [eax]
push 4
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 4
push 0
push str.Flags
push edi
call esi
mov ecx, dword [0x421504]
push 0
push 0xc
pop edx
call fcn.004017e8
pop ecx
test eax, eax
je 0x403ec4
mov eax, dword [eax]
push 4
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 4
push 0
push str.Version
push edi
call esi
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x38], 0
jle 0x403ff9
mov ebx, dword [ebp - 0x28]
mov esi, dword [0x421504]
lea ecx, [ebp - 0x3c]
push ebx
call fcn.00401a4b
mov ecx, esi
movzx eax, word [eax]
push eax
push 0xa
pop edx
call fcn.004017e8
mov esi, dword [0x421504]
pop ecx
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], eax
call fcn.00401a4b
mov ecx, esi
movzx edx, word [eax]
push edx
push 0xb
pop edx
call fcn.004017e8
pop ecx
mov esi, eax
lea ecx, [ebp - 0x3c]
push ebx
mov dword [ebp - 0x64], esi
call fcn.00401a4b
xor ecx, ecx
cmp cx, word [eax]
je 0x403fc8
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 7
call fcn.00402039
push eax
lea ecx, [ebp - 0x54]
call fcn.00401e4f
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call fcn.00401a4b
movzx eax, word [eax]
push eax
lea eax, [ebp - 0x54]
push 0x41bd84
push eax
call fcn.00401aeb
mov esi, dword [ebp - 0x54]
push ecx
push ecx
push esi
push edi
lea ecx, [ebp - 0x4c]
call fcn.00405fdc
test eax, eax
jne 0x403fa3
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x4c]
push str.Name
call fcn.004060d5
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x403fa3
push ecx
push eax
push str.Description
lea ecx, [ebp - 0x4c]
call fcn.004060d5
lea ecx, [esi - 0x10]
call fcn.00402405
mov byte [ebp - 4], 6
cmp dword [ebp - 0x4c], 0
je 0x403fc2
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x4c], 0
and dword [ebp - 0x48], 0
jmp 0x403fec
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x60]
push str.Name
call fcn.004060d5
test esi, esi
je 0x403fec
push ecx
push esi
push str.Description
lea ecx, [ebp - 0x60]
call fcn.004060d5
inc ebx
cmp ebx, dword [ebp - 0x38]
jl 0x403ed5
xor ebx, ebx
inc ebx
test edi, edi
je 0x404004
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00402405
cmp dword [ebp - 0x3c], 0
je 0x404022
push dword [ebp - 0x3c]
call fcn.00407e40
and dword [ebp - 0x3c], 0
pop ecx
mov ecx, dword [ebp - 0x40]
and dword [ebp - 0x38], 0
and dword [ebp - 0x34], 0
lea ecx, [ecx - 0x10]
call fcn.00402405
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00402405
mov al, bl
jmp 0x4040b7
cmp byte [ebp + 8], 0
jne 0x404073
push str.Unable_to_extract_data.
lea ecx, [ebp - 0x28]
call fcn.004024b1
push 0
mov edx, ebx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.0040130e
pop ecx
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00402405
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00402405
mov eax, dword [ebp - 0x30]
jmp 0x4040ad
cmp byte [ebp + 8], 0
jne 0x4040b5
push str.Unable_to_get_destination_file_name.
lea ecx, [ebp - 0x28]
call fcn.004024b1
push 0
mov edx, ebx
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.0040130e
mov eax, dword [ebp - 0x28]
pop ecx
lea ecx, [eax - 0x10]
call fcn.00402405
xor al, al
call fcn.00410bc5
ret