Function at 0x4065a0
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45e560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x38], esi
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push 0x454537
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], 0
call fcn.00409e50
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406621
push 0xc
push 0x453e84
lea ecx, [ebp - 0x24]
call fcn.00409d30
mov edx, dword [ebp - 0x24]
mov ecx, edi
call fcn.00407780
xor dl, dl
jmp 0x4067bd
call fcn.00418331
mov esi, dword [eax + 8]
test esi, esi
jne 0x406647
push 0x30
push 0x45386c
push 0x453e94
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor dl, dl
jmp 0x4067bd
push 0x453eb8
push 0x83
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x406678
push 0x30
push 0x45386c
push 0x453ec0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor dl, dl
jmp 0x4067bd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x463dd8
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4066c0
push 0x30
push 0x45386c
push 0x45391c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor dl, dl
jmp 0x4067bd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadLibFromBuffer
push esi
call edi
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4066f6
push 0x30
push 0x45386c
push 0x453950
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor dl, dl
jmp 0x4067bd
push str.GetCodeFromFile
push esi
call edi
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x406726
push 0x30
push 0x45386c
push 0x45398c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor dl, dl
jmp 0x4067bd
push 0x453868
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call dword [ebp - 0x2c]
test eax, eax
jg 0x406757
push 0x30
push 0x45386c
push 0x453ee0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor dl, dl
jmp 0x4067bd
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
push ecx
push edi
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x20], xmm0
call dword [ebp - 0x30]
test al, al
jne 0x40677a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor dl, dl
jmp 0x4067bd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x20]
push eax
call fcn.0042e7b8
mov ecx, dword [ebp - 0x34]
push eax
push 0x453f04
mov dword [ecx], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00409670
mov edx, dword [ebp - 0x24]
add esp, 0x10
mov ecx, dword [ebp - 0x3c]
call fcn.00407780
xorps xmm0, xmm0
push esi
movdqu xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dl, 1
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [ebp - 0x24]
add esi, 0xfffffff0
mov byte [ebp - 0x25], dl
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4067e9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x25]
jmp 0x4067eb
mov al, dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d7a3
mov esp, ebp
pop ebp
ret