Function at 0x42a3f0
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 0x4440a8
push 0x43e794
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 0x42a446
call fcn.0042a7b0
push 0x104
push eax
push esi
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
jmp 0x42a44e
call fcn.0042a7b0
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], edi
je 0x42a502
push 1
lea eax, [ebp - 0x1c]
push eax
mov esi, dword [ebp + 0xc]
push esi
call fcn.00415630
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp eax, edi
jne 0x42a536
push esi
push 0x46d47c
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 0x42a4b1
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.00415630
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp eax, edi
jne 0x42a519
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.00415630
add esp, 0xc
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
cmp eax, edi
jne 0x42a536
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 0x42a715
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x130], ecx
cmp dword [ecx], 0x4550
jne 0x42a715
cmp word [ecx + 6], 2
jb 0x42a715
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 0x42a715
cmp esi, dword [edx + 0x34]
jae 0x42a715
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, 0x46d474
mov esi, edx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x42a715
lea ebx, [edx + 0x6f5d]
mov dword [ebp - 0x138], ebx
mov ecx, 9
mov edi, 0x46d460
mov esi, ebx
xor eax, eax
repe cmpsw word [esi], word es:[edi]
jne 0x42a70f
add ebx, 0x11
mov dword [ebp - 0x138], ebx
mov cl, 0x68
cmp byte [ebx + 5], cl
jne 0x42a70f
mov al, 0x31
cmp byte [ebx + 0xa], al
jne 0x42a70f
cmp byte [ebx + 0xd], cl
jne 0x42a70f
cmp byte [ebx + 0x12], al
jne 0x42a70f
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, 0x46d458
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 0x42a6ef
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x250]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x42a6ef
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42a6d9
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 0x42a70f
lea eax, [ebp - 0x250]
push eax
call fcn.00414940
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x42a70f
mov ecx, dword [0x46d450]
mov eax, dword [ebp - 0x140]
mov dword [eax], ecx
mov dx, word [0x46d454]
mov word [eax + 4], dx
mov eax, dword [ebp - 0x124]
mov dword [ebp - 4], 0xffffffff
jmp 0x42a734
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x128]
cmp eax, 1
jne 0x42a784
mov al, byte [ebp - 0x120]
test al, al
je 0x42a792
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00414870
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 0x42a792
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42a792
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