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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x14]
cmp byte [eax], 0
mov dword [ebp - 0xc], eax
jne 0x41a232
push ebx
push edi
push 0x104
lea eax, [ebp - 0x15c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0041cf90
push dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x38]
push eax
call edi
movzx eax, word [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x58]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str..sys
lea eax, [ebp - 0x58]
push eax
call ebx
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x15c]
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x15c]
push eax
call ebx
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0xd0000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x41a1dc
movzx eax, word [ebp - 8]
push 0x42ddc0
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
mov dword [ebp - 8], eax
je 0x41a1dc
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x41a1dc
push dword [ebp - 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a1dc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41a1dc
and dword [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov dword [ebp - 4], eax
je 0x41a1dc
cmp dword [ebp + 8], 0
jbe 0x41a12a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp + 8], 0
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x364]
push eax
call edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x364]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x364]
push eax
call esi
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0041a6b0
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x41a230
lea eax, [ebp - 0x15c]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x364]
push eax
call esi
cmp eax, 0xffffffff
je 0x41a1eb
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x15c]
push eax
call edi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x15c]
push eax
call ebx
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x15c]
push eax
call esi
cmp eax, 0xffffffff
je 0x41a1eb
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0
jbe 0x41a1eb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x41a230
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00419e57
push 0
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 0xc]
call edi
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 4