Function at 0x4064bc
Capabilities:
Copy file
Extract resource via kernel32 functions
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x406932
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4097a0], 0
jne 0x40650f
push 0x10
push 0x406940
push 0x406948
mov eax, dword [0x40977c]
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x40690c
push 0x7f02
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
cmp dword [0x409774], 0
je 0x406538
mov eax, dword [0x409774]
call fcn.004060c4
test al, al
jne 0x40655e
push 0x10
push 0x406974
push 0x40697c
mov eax, dword [0x40977c]
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_MessageBoxA_1
push ebp
call fcn.00406490
pop ecx
jmp 0x40690c
mov eax, dword [0x409774]
call fcn.00403230
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x406594
test byte [ebp - 0x24], 1
je 0x406594
mov eax, dword [ebp - 0x24]
and eax, 0xfffffffe
push eax
mov eax, dword [0x409774]
call fcn.00403230
push eax
call sub.kernel32.dll_SetFileAttributesA
mov edx, 0xc0000301
mov eax, dword [0x409774]
call fcn.004045f4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4065d2
push 0x10
push 0x406974
push 0x406990
mov eax, dword [0x40977c]
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_MessageBoxA_1
push ebp
call fcn.00406490
pop ecx
jmp 0x40690c
mov cl, 2
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0040461c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00402414
mov dword [ebp - 0x10], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0040461c
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040462c
cmp eax, dword [ebp - 0xc]
je 0x406631
push 0x10
push 0x406974
push 0x4069b4
mov eax, dword [0x40977c]
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_MessageBoxA_1
push ebp
call fcn.00406490
pop ecx
jmp 0x40690c
push 0x105
lea eax, [ebp - 0x12d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x12d]
lea eax, [ebp - 8]
call fcn.00402fc4
xor eax, eax
push ebp
push 0x406697
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x409778]
call fcn.004060c4
test al, al
jne 0x40668d
push 0xffffffffffffffff
mov eax, dword [0x409778]
call fcn.00403230
push eax
mov eax, dword [0x409774]
call fcn.00403230
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4066cc
xor eax, eax
push ebp
push 0x406781
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x138]
call fcn.00406020
push dword [ebp - 0x138]
push 0x4069e4
push dword [0x4081ec]
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.00403108
mov eax, dword [ebp - 0x134]
call fcn.00404770
mov dword [ebp - 0x14], eax
push 0xa
push 0x4069e8
mov eax, dword [0x409700]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [0x409700]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
xor edx, edx
call fcn.00404664
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [0x409700]
push eax
call sub.kernel32.dll_SizeofResource
mov ecx, eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.00404660
mov eax, dword [ebp - 0x14]
call fcn.00403d58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4067b6
mov eax, dword [0x4081ec]
call fcn.00403230
push eax
mov eax, dword [0x4081ec]
call fcn.00403048
push eax
mov ecx, dword [ebp - 0xc]
dec ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.004061a0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x406809
push 0x40
push 0x406a10
push 0x406a18
mov eax, dword [0x40977c]
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_MessageBoxA_1
push ebp
call fcn.00406490
pop ecx
jmp 0x40690c
mov eax, dword [0x4081e8]
call fcn.00403230
push eax
mov eax, dword [0x4081e8]
call fcn.00403048
push eax
mov ecx, dword [ebp - 0xc]
dec ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.004061a0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x406841
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
mov byte [eax + edx + 3], 0x33
cmp dword [ebp - 0x28], 0xffffffff
jne 0x40686d
push 0x10
push 0x406974
push 0x406a28
mov eax, dword [0x40977c]
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_MessageBoxA_1
push ebp
call fcn.00406490
pop ecx
jmp 0x40690c
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0040461c
xor eax, eax
push ebp
push 0x406905
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4068cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00404648
cmp eax, dword [ebp - 0xc]
jne 0x4068c2
push 0x40
push 0x406a38
push 0x406a40
mov eax, dword [0x40977c]
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4068f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40690c
push ebp
call fcn.00406490
pop ecx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406939
lea eax, [ebp - 0x138]
mov edx, 2
call fcn.00402ef8
lea eax, [ebp - 8]
call fcn.00402ed4
ret