Function at 0x411390
Capabilities:
Extract resource via kernel32 functions
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 8
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov byte [ebp - 0xd], 0
cmp dword [ebp + 0xc], 0
je 0x411498
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 4]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov cl, byte [ebp - 0x15]
mov byte [ebp - 0xd], cl
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 4]
mov al, byte [ebp - 0xd]
mov byte [edx], al
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov dword [ebp - 0xc], edx
mov ebx, dword [ebp - 8]
push dword [ebp - 0x38]
pop eax
mov ecx, eax
add ebx, ecx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp - 0x24]
mov ecx, 1
sub ecx, eax
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 8]
imul edx, dword [ebp - 0x28]
mov dword [ebp - 8], edx
mov eax, edx
mov edx, 0xa
push edx
pop eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 4]
mov byte [edx], cl
mov eax, dword [ebp - 4]
sub eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jl 0x4113fc
jmp 0x4116b0
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
lea ecx, [ebp - 0x44]
call fcn.00411a60
push 2
push 0xa0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push 0xff
push 0
push 0
push 0xff
lea ecx, [ebp - 0x80]
call fcn.004117b0
push eax
lea ecx, [ebp - 0x64]
call fcn.00411810
push 0
push 0
lea ecx, [ebp - 0x58]
call fcn.00411ae0
push 3
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 2
push 0
push 0x41c00000
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x74]
call fcn.00411b50
push 0x41a00000
push 0x41200000
lea ecx, [ebp - 0x7c]
call fcn.00411780
push str.hand.exe
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x411541
push 0
push 0
push str.Could_not_load_exe.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0x83232
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 5
push 0x455bc8
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x411579
push 0
push 0
push str.Could_not_locate_dialog_box.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4115a1
push 0
push 0
push str.Could_not_load_dialog_box.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x4115c5
push 0
push 0
push str.Could_not_lock_dialog_box.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push str.foot.exe
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4115f6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push 0
push 0
push str.Could_not_open_file_for_writing.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov eax, dword [ebp - 0x4c]
push eax
push 0
push str.AboutBox
push 5
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x411640
push 0
push 0
push str.Could_not_add_resource.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
test eax, eax
jne 0x411669
push 0
call dword [sym.imp.USER32.dll_OpenIcon]
push 0
push 0
push str.Could_not_write_changes_to_file.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x411690
push 0
push 0
push str.Could_not_free_executable.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x74]
call fcn.00411bb0
lea ecx, [ebp - 0x58]
call fcn.00411b30
lea ecx, [ebp - 0x64]
call fcn.00411a40
lea ecx, [ebp - 0x44]
call fcn.00411aa0
pop ebx
mov esp, ebp
pop ebp
ret