Function at 0x4202c0
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0xc], 0
cmp dword [0x591024], 0
je 0x4202e3
lea eax, [ebp - 8]
push eax
call dword [0x591024]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4203a3
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x4203a3
lea ecx, [ebp - 0x14]
call fcn.0040ee90
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x54cdf8
lea edx, [ebp - 0x14]
push edx
call fcn.004beff0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0047e630
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.0041c8e0
lea ecx, [ebp - 0x2c]
call fcn.0040f740
lea ecx, [ebp - 0x14]
call fcn.0041cb20
push eax
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x420384
push 4
push 0
lea ecx, [ebp - 0x14]
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x42039b
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x14]
call fcn.0040f740
mov eax, dword [ebp - 0x30]
jmp 0x4204b5
lea ecx, [ebp - 0x14]
call fcn.0040f740
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 5
jge 0x420483
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x24], eax
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x420422
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4203aa
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x420468
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4203aa
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x420483
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x420497
push 2
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0xc], 0
je 0x4204b0
cmp dword [0x591028], 0
je 0x4204b0
mov eax, dword [ebp - 8]
push eax
call dword [0x591028]
mov eax, 1
mov esp, ebp
pop ebp
ret