Function at 0x401a70
Capabilities:
Extract resource via kernel32 functions
Get common file path
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x864
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push esi
push edi
push 0xfffffffffffffffa
push eax
mov dword [esp + 0x24], 0
call ebx
push 0x104
lea ecx, [esp + 0x254]
mov edi, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401ae5
push 0
push str.CreateFile
push 0x411108
push str.Internal_Error_14
jmp 0x401b4b
xor eax, eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x24]
push ecx
push eax
push eax
push esi
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
push esi
jne 0x401b1b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.GetFileTime
push 0x41113c
push str.Internal_Error_15
jmp 0x401b4b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CMPFILE
push 0x79
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401b75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindResource
push 0x41117c
push str.Internal_Error_4
mov esi, dword [ebp + 8]
push esi
call fcn.00405e30
add esp, 0x14
push esi
call dword [sym.imp.USER32.dll_GetParent]
push esi
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
mov edi, eax
call esi
push edi
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x401bb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
push eax
push str.LoadResource
push 0x4111b4
push str.Internal_Error_5
push esi
call fcn.00405e30
push esi
call fcn.004019b0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push edi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x401c03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
push eax
push str.LockResource
push 0x4111ec
push str.Internal_Error_6
push esi
call fcn.00405e30
push esi
call fcn.004019b0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
push esi
push 1
push 0x406
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [ebp + 8]
push 0xffffffffffffffeb
push edi
call ebx
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x34], ebx
jne 0x401c42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x411214
push 0x411224
push str.Internal_Error_7
jmp 0x401f5e
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x400
push edi
call esi
test eax, eax
mov dword [esp + 0x20], eax
jne 0x401c73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetDlgItem_hwnd__IDC_CDLG_PRG_CPFILE_
push 0x411274
push str.Internal_Error_8
jmp 0x401f5e
push 0x402
push edi
call esi
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x401c9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetDlgItem_hwnd__IDC_CDLG_LBL_FNAME_
push 0x4112c4
push str.Internal_Error_9
jmp 0x401f5e
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
xor eax, eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], al
mov dword [esp + 0x14], edx
mov esi, str.MCFX
lea eax, [esp + 0x14]
jmp 0x401cc0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401ce4
test cl, cl
je 0x401ce0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401ce4
add eax, 2
add esi, 2
test cl, cl
jne 0x401cc0
xor eax, eax
jmp 0x401ce9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401d03
push 0
push str.McfFileheader
push 0x4112fc
push str.Internal_Error_10
jmp 0x401f5e
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, 4
add edx, eax
sub ecx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
je 0x401f15
jmp 0x401d30
mov ebx, dword [esp + 0x34]
jmp 0x401d30
mov esi, dword [esp + 0x10]
mov ecx, 0x43
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x40]
test al, al
je 0x401f15
lea edx, [esp + 0x148]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401d56
lea eax, [esp + 0x40]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d66
lea edi, [esp + 0x148]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401d77
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [esp + eax + 0x148]
mov byte [esp + eax + 0x764], cl
inc eax
test cl, cl
jne 0x401d91
lea eax, [esp + 0x660]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x401f21
lea eax, [esp + 0x660]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401dd0
sub eax, edx
cmp byte [esp + eax + 0x65f], 0x5c
je 0x401e19
mov eax, 0x411360
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401df0
lea edi, [esp + 0x660]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401e01
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x40]
mov esi, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e20
lea edi, [esp + 0x660]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401e31
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x10]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x764]
push ecx
sub eax, 0x10c
push edx
add ebx, 0x10c
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov esi, dword [esp + 0x38]
mov edi, dword [ebp + 8]
lea eax, [esp + 0x148]
push eax
push ebx
push esi
lea ecx, [esp + 0x3c]
push ecx
push edi
call fcn.00402b10
add esp, 0x14
test eax, eax
je 0x401ea2
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x3c]
jne 0x401f4d
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401ee0
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
push 0
add eax, esi
push eax
push 0x402
add ebx, esi
sub edi, esi
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_SendMessageA]
test edi, edi
ja 0x401d24
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push 0
push str.GetCurrentDirectory
push 0x411338
push str.Internal_Error_11
push esi
call fcn.00405e30
push esi
call fcn.004019b0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push str.ExpandFile
push str.UncompressMcfFile
push str.Internal_Error_13
push edi
call fcn.00405e30
push edi
call fcn.004019b0
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret