Function at 0x4018b0
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 [0x41b004]
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 0x401bde
test eax, eax
je 0x401bde
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 0x401930
cmp eax, 0x720
jne 0x401bde
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x40194a
cmp eax, 0x720
jne 0x401bde
lea edx, [esp + 0x40]
lea ecx, [esp + 0x60]
call fcn.004010b0
cmp dword [esp + 0x70], 0
jne 0x401966
or esi, 0xffffffff
jmp 0x401bb1
lea edx, [esp + 0x50]
lea ecx, [esp + 0x78]
call fcn.004010b0
cmp dword [esp + 0x88], 0
je 0x401ba5
push 0xa
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401ba5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x401ba5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x401ba5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ba5
push 0x208
lea eax, [esp + 0xc4]
push 0
push eax
call fcn.00404ee0
add esp, 0xc
lea eax, [esp + 0xc0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x401ba5
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x14]
call fcn.00401d50
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 0x401a36
push 0x4198e8
lea ecx, [esp + 0x14]
call fcn.00401cc0
lea eax, [esp + 0x60]
push 0x4198ec
push eax
lea ecx, [esp + 0xb0]
call fcn.004028f0
add esp, 4
lea ecx, [esp + 0x94]
mov edx, eax
call fcn.00402830
add esp, 4
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
push 0
push eax
call fcn.004023d0
lea ecx, [esp + 0x90]
call fcn.00401d10
lea ecx, [esp + 0xa8]
call fcn.00401d10
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x10]
cmovae ecx, dword [esp + 0x10]
call fcn.00401530
test al, al
jne 0x401aae
lea ecx, [esp + 0x10]
or esi, 0xffffffff
call fcn.00401d10
jmp 0x401ba8
push 0x4198f4
lea eax, [esp + 0x7c]
push eax
push ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x9c]
call fcn.00402760
add esp, 4
lea ecx, [esp + 0xb0]
mov edx, eax
call fcn.004029c0
add esp, 4
lea ecx, [esp + 0x2c]
mov edx, eax
call fcn.00402830
add esp, 4
lea ecx, [esp + 0xa8]
call fcn.00401d10
lea ecx, [esp + 0x90]
call fcn.00401d10
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.00401340
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 0x401b7a
cmp esi, 4
je 0x401b61
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jb 0x401b30
jmp 0x401b7a
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.00401d10
lea ecx, [esp + 0x10]
call fcn.00401d10
jmp 0x401ba8
or esi, 0xffffffff
lea ecx, [esp + 0x78]
call fcn.00401d10
mov ecx, dword [esp + 0x74]
cmp ecx, 8
jb 0x401bc5
inc ecx
push ecx
push dword [esp + 0x64]
call fcn.00402060
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.00402c5d
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.00402c5d
mov esp, ebp
pop ebp
ret 0x10