Function at 0x401b20
Capabilities:
Delete directory
Delete file
Extract resource via kernel32 functions
Get common file path
Move file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c4
mov eax, dword [0x41c004]
xor eax, esp
mov dword [esp + 0x2c0], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 8], eax
push edi
test esi, esi
je 0x401e4e
test eax, eax
je 0x401e4e
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
lea eax, [esp + 0x40]
movq qword [esp + 0x44], xmm0
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x60], 0
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x401ba0
cmp eax, 0x720
jne 0x401e4e
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x401bba
cmp eax, 0x720
jne 0x401e4e
lea edx, [esp + 0x40]
lea ecx, [esp + 0x60]
call fcn.00401320
cmp dword [esp + 0x70], 0
jne 0x401bd6
or esi, 0xffffffff
jmp 0x401e21
lea edx, [esp + 0x50]
lea ecx, [esp + 0x78]
call fcn.00401320
cmp dword [esp + 0x88], 0
je 0x401e15
push 0xa
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401e15
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x401e15
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x401e15
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401e15
push 0x208
lea eax, [esp + 0xc4]
push 0
push eax
call fcn.00405390
add esp, 0xc
lea eax, [esp + 0xc0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x401e15
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x14]
call fcn.00401f60
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x20]
cmovae ecx, dword [esp + 0x10]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x401ca6
push 0x419978
lea ecx, [esp + 0x14]
call fcn.00401ed0
lea eax, [esp + 0x60]
push 0x41997c
push eax
lea ecx, [esp + 0xb0]
call fcn.00402bd0
add esp, 4
lea ecx, [esp + 0x94]
mov edx, eax
call fcn.00402b10
add esp, 4
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
push 0
push eax
call fcn.00402690
lea ecx, [esp + 0x90]
call fcn.00401f20
lea ecx, [esp + 0xa8]
call fcn.00401f20
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x10]
cmovae ecx, dword [esp + 0x10]
call fcn.004017a0
test al, al
jne 0x401d1e
lea ecx, [esp + 0x10]
or esi, 0xffffffff
call fcn.00401f20
jmp 0x401e18
push 0x419984
lea eax, [esp + 0x7c]
push eax
push ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x9c]
call fcn.00402a40
add esp, 4
lea ecx, [esp + 0xb0]
mov edx, eax
call fcn.00402ca0
add esp, 4
lea ecx, [esp + 0x2c]
mov edx, eax
call fcn.00402b10
add esp, 4
lea ecx, [esp + 0xa8]
call fcn.00401f20
lea ecx, [esp + 0x90]
call fcn.00401f20
cmp dword [esp + 0x3c], 8
lea edx, [esp + 0x28]
push edi
cmovae edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
cmp dword [esp + 0x28], 8
push esi
push dword [esp + 0x14]
cmovae ecx, dword [esp + 0x1c]
call fcn.004015b0
add esp, 0xc
xor esi, esi
nop
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401dea
cmp esi, 4
je 0x401dd1
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jb 0x401da0
jmp 0x401dea
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
push 4
cmovae eax, dword [esp + 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x28]
xor esi, esi
call fcn.00401f20
lea ecx, [esp + 0x10]
call fcn.00401f20
jmp 0x401e18
or esi, 0xffffffff
lea ecx, [esp + 0x78]
call fcn.00401f20
mov ecx, dword [esp + 0x74]
cmp ecx, 8
jb 0x401e35
inc ecx
push ecx
push dword [esp + 0x64]
call fcn.00402310
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.00402f6d
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x2cc]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402f6d
mov esp, ebp
pop ebp
ret 0x10