Function at 0x408150
Capabilities:
Copy file
Create directory
Extract resource via kernel32 functions
Query environment variable
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42fa7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x444
mov eax, dword [0x43dac8]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24c]
push 0x104
xor ebx, ebx
push ecx
push str._SystemRoot__system32VirtualExpander
mov dword [esp + 0x468], ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x408223
push 0xef2c
lea ecx, [esp + 0x18]
call fcn.00425d4e
mov edx, dword [eax]
push 2
push edx
lea eax, [esp + 0x18]
push str._s___04X_
push eax
mov byte [esp + 0x46c], 1
call fcn.0042127e
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x45c], bl
call fcn.00425d24
push 0xef16
lea ecx, [esp + 0x18]
call fcn.00425d4e
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push 0x10
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x14]
call fcn.00425d24
lea ecx, [esp + 0x10]
mov dword [esp + 0x45c], 0xffffffff
call fcn.00425d24
xor eax, eax
jmp 0x4084e2
lea edx, [esp + 0x24c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4082cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4082cb
push 0xef2c
lea ecx, [esp + 0x18]
call fcn.00425d4e
mov eax, dword [eax]
push 3
push eax
lea ecx, [esp + 0x18]
push str._s___04X_
push ecx
mov byte [esp + 0x46c], 2
call fcn.0042127e
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x45c], bl
call fcn.00425d24
push 0xef16
lea ecx, [esp + 0x18]
call fcn.00425d4e
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push 0x10
push eax
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x14]
call fcn.00425d24
lea ecx, [esp + 0x10]
mov dword [esp + 0x45c], 0xffffffff
call fcn.00425d24
xor eax, eax
jmp 0x4084e2
mov esi, dword [esp + 0x468]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebp, eax
mov eax, dword [esp + 0x464]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40830b
push ebx
cmp ebp, ebx
push esi
push 5
je 0x408303
push 0x2000
jmp 0x408305
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea ecx, [esp + 0x30]
call fcn.00426cb6
lea ecx, [esp + 0x18]
mov byte [esp + 0x45c], 3
call fcn.0042688f
mov ecx, dword [0x43dac8]
mov dword [esp + 0x28], ecx
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x460], 5
mov dword [esp + 0x1c], vtable.CFileException.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0xffffffff
call fcn.00425e71
mov edx, dword [edi + 0x68]
push str.EXT_DATA
push 0x84
push edx
mov byte [esp + 0x468], 6
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov eax, dword [edi + 0x68]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [edi + 0x68]
push esi
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edx, [esp + 0x44]
push 0x104
push edx
push str._SystemRoot__system32VirtualExpanderVEShellExt.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x408440
push 0xef2c
lea ecx, [esp + 0x30]
call fcn.00425d4e
mov eax, dword [eax]
push 6
push eax
lea ecx, [esp + 0x18]
push str._s___04X_
push ecx
mov byte [esp + 0x46c], 7
call fcn.0042127e
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x45c], 6
call fcn.00425d24
mov edx, dword [esp + 0x10]
push ebx
push 0x10
push edx
call fcn.004293fd
mov dword [esp + 0x18], vtable.CFileException.0
lea ecx, [esp + 0x28]
mov byte [esp + 0x45c], 8
call fcn.00425d24
lea ecx, [esp + 0x30]
mov byte [esp + 0x45c], bl
call fcn.00426ce8
lea ecx, [esp + 0x10]
mov dword [esp + 0x45c], 0xffffffff
call fcn.00425d24
xor eax, eax
jmp 0x4084e2
lea eax, [esp + 0x44]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
lea ecx, [esp + 0x48]
push 0x9001
push ecx
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.00426d2b
test eax, eax
je 0x4084a0
push ebp
push esi
lea ecx, [esp + 0x38]
call fcn.00426e6b
lea ecx, [esp + 0x30]
call fcn.00427063
cmp edi, ebx
push ebx
je 0x408491
lea edx, [esp + 0x48]
push edx
push 5
push 0x2000
jmp 0x40849a
lea eax, [esp + 0x48]
push eax
push 5
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov dword [esp + 0x18], vtable.CFileException.0
lea ecx, [esp + 0x28]
mov byte [esp + 0x45c], 9
call fcn.00425d24
lea ecx, [esp + 0x30]
mov byte [esp + 0x45c], bl
call fcn.00426ce8
lea ecx, [esp + 0x10]
mov dword [esp + 0x45c], 0xffffffff
call fcn.00425d24
mov eax, 1
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x450
ret 8