Function at 0x424890
Capabilities:
Copy file
Delete file
Get common file path
Get file attributes
Parse pe header
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431c30
push 0x42d2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x128], edi
mov byte [ebp - 0x120], 0
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x4248e6
call fcn.00424c50
push 0x104
push eax
push esi
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
jmp 0x4248ee
call fcn.00424c50
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], edi
je 0x4249a2
push 1
lea eax, [ebp - 0x1c]
push eax
mov esi, dword [ebp + 0xc]
push esi
call fcn.004124a0
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp eax, edi
jne 0x4249d6
push esi
push str._s._bak
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0xc
push edi
lea edx, [ebp - 0x120]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
jne 0x424951
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 1
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x120]
push edx
call fcn.004124a0
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp eax, edi
jne 0x4249b9
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004124a0
add esp, 0xc
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
cmp eax, edi
jne 0x4249d6
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], edi
mov dword [ebp - 0x12c], eax
cmp word [eax], 0x5a4d
jne 0x424bb5
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x130], ecx
cmp dword [ecx], 0x4550
jne 0x424bb5
cmp word [ecx + 6], 2
jb 0x424bb5
xor edx, edx
mov dx, word [ecx + 0x14]
lea edx, [edx + ecx + 0x18]
mov dword [ebp - 0x134], edx
mov esi, dword [ecx + 0x28]
mov edi, dword [edx + 0xc]
cmp esi, edi
jb 0x424bb5
cmp esi, dword [edx + 0x34]
jae 0x424bb5
mov ecx, dword [edx + 0x14]
sub ecx, edi
add ecx, esi
add ecx, eax
mov dword [ebp - 0x13c], ecx
lea edx, [ecx + 0x24]
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x138], edx
mov ecx, 5
mov edi, 0x4509dc
mov esi, edx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x424bb5
lea ebx, [edx + 0x6f5d]
mov dword [ebp - 0x138], ebx
mov ecx, 9
mov edi, str.sens.pdb
mov esi, ebx
xor eax, eax
repe cmpsw word [esi], word es:[edi]
jne 0x424baf
add ebx, 0x11
mov dword [ebp - 0x138], ebx
mov cl, 0x68
cmp byte [ebx + 5], cl
jne 0x424baf
mov al, 0x31
cmp byte [ebx + 0xa], al
jne 0x424baf
cmp byte [ebx + 0xd], cl
jne 0x424baf
cmp byte [ebx + 0x12], al
jne 0x424baf
push 0x104
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea edx, [ebp + eax - 0x250]
mov dword [ebp - 0x148], edx
mov byte [edx], 0x5c
inc edx
mov dword [ebp - 0x148], edx
mov eax, dword [ebx + 1]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebx + 0xe]
xor ecx, eax
mov dword [edx], ecx
mov ecx, dword [ebx + 6]
xor ecx, eax
mov dword [edx + 4], ecx
mov byte [edx + 8], 0
mov edi, str..dll
or ecx, 0xffffffff
xor eax, eax
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]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x128], 1
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 0x10
jne 0x424b8f
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x250]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x424b8f
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x424b79
push 0x104
lea edx, [ebp - 0x250]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x424baf
lea eax, [ebp - 0x250]
push eax
call fcn.004117b0
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x424baf
mov ecx, dword [0x4509b8]
mov eax, dword [ebp - 0x140]
mov dword [eax], ecx
mov dx, word [0x4509bc]
mov word [eax + 4], dx
mov eax, dword [ebp - 0x124]
mov dword [ebp - 4], 0xffffffff
jmp 0x424bd4
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 0x128]
cmp eax, 1
jne 0x424c24
mov al, byte [ebp - 0x120]
test al, al
je 0x424c32
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004116e0
add esp, 8
mov dword [ebp - 0x128], 2
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x424c32
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x424c32
mov byte [eax], 0
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret