Function at 0x401810
Capabilities:
Delete directory
Delete file
Extract resource via kernel32 functions
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x40f07c]
xor eax, esp
mov dword [esp + 0x2e0], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp edi, ebx
je 0x4018dd
cmp eax, ebx
je 0x4018dd
mov esi, dword [sym.imp.RPCRT4.dll_UuidCreate]
xor eax, eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x9c], ebx
call esi
cmp eax, ebx
je 0x40189e
cmp eax, 0x720
jne 0x4018dd
lea ecx, [esp + 0x98]
push ecx
call esi
cmp eax, ebx
je 0x4018b3
cmp eax, 0x720
jne 0x4018dd
lea ecx, [esp + 0x88]
lea edx, [esp + 0x34]
call fcn.00401090
cmp dword [esp + 0x44], ebx
jne 0x4018f7
cmp dword [esp + 0x48], 8
jb 0x4018dd
mov edx, dword [esp + 0x34]
push edx
call fcn.00402cf1
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.00402819
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x98]
lea edx, [esp + 0x50]
call fcn.00401090
cmp dword [esp + 0x60], ebx
je 0x401a47
push 0xa
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x401a47
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x401a47
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x401a47
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x401a47
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xea]
push ecx
mov word [esp + 0xec], ax
call fcn.004069f0
add esp, 0xc
lea edx, [esp + 0xe0]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x401a47
lea eax, [esp + 0xe0]
lea ecx, [esp + 0x18]
call fcn.00401b90
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x4019b7
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4019d2
lea edx, [esp + 0x18]
push edx
mov eax, 0x40d208
call fcn.00401c00
lea eax, [esp + 0xc4]
push eax
lea ebx, [esp + 0x38]
call fcn.00402570
add esp, 4
push eax
mov eax, 0x40d20c
lea ecx, [esp + 0xac]
call fcn.00402520
add esp, 4
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x20]
call fcn.00401e70
lea esi, [esp + 0xa8]
call fcn.00401bd0
lea esi, [esp + 0xc4]
call fcn.00401bd0
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x401a31
lea eax, [esp + 0x18]
push eax
call fcn.004014c0
add esp, 4
test al, al
jne 0x401a5e
lea esi, [esp + 0x18]
call fcn.00401bd0
lea esi, [esp + 0x50]
call fcn.00401bd0
lea esi, [esp + 0x34]
call fcn.00401bd0
jmp 0x4018dd
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xac]
push edx
call fcn.00402620
mov ecx, eax
lea eax, [esp + 0x58]
lea ebx, [esp + 0xcc]
call fcn.004026e0
push eax
mov eax, 0x40d214
lea ecx, [esp + 0x78]
call fcn.00402520
add esp, 0xc
mov esi, ebx
call fcn.00401bd0
lea esi, [esp + 0xa8]
call fcn.00401bd0
mov eax, dword [esp + 0x6c]
mov ecx, 8
cmp dword [esp + 0x80], ecx
jae 0x401abd
lea eax, [esp + 0x6c]
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x2c], ecx
jae 0x401acb
lea ebx, [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esp + 0x18]
mov edi, eax
call fcn.004012a0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
xor esi, esi
lea ecx, [ecx]
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x401b02
lea eax, [esp + 0x6c]
push eax
call ebx
test eax, eax
jne 0x401b3a
cmp esi, 4
je 0x401b1d
push 0x1f4
call edi
inc esi
cmp esi, 5
jb 0x401af0
jmp 0x401b3a
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x401b2f
lea eax, [esp + 0x6c]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x401b49
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea esi, [esp + 0x6c]
call fcn.00401bd0
lea esi, [esp + 0x18]
call fcn.00401bd0
lea esi, [esp + 0x50]
call fcn.00401bd0
lea esi, [esp + 0x34]
call fcn.00401bd0
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00402819
mov esp, ebp
pop ebp
ret 0x10