Function at 0x4d842a
Capabilities:
Create process on windows
Get file size
Read file via mapping

Disassembly:
mov eax, 0x4f739c
call fcn.004e1580
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x4d8449
or eax, 0xffffffff
jmp 0x4d86a1
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004d13d5
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], ebx
cmp byte [eax], 0x36
je 0x4d846a
or esi, 0xffffffff
jmp 0x4d8693
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 0x20], 1
call fcn.004d15e8
pop ecx
pop ecx
push str.takeown.bat
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004e090c
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.6.0.6000.16386
push dword [ebp - 0x10]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x4d84c3
mov dword [ebp - 0x14], 0x3f47d
jmp 0x4d8542
push str.6.0.6000.16567
push dword [ebp - 0x10]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x4d84dc
mov dword [ebp - 0x14], 0x3f479
jmp 0x4d8542
push str.6.0.6000.16627
push dword [ebp - 0x10]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x4d84f5
mov dword [ebp - 0x14], 0x3f4b9
jmp 0x4d8542
push str.6.0.6000.20689
push dword [ebp - 0x10]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x4d850e
mov dword [ebp - 0x14], 0x3f548
jmp 0x4d8542
push str.6.0.6000.20752
push dword [ebp - 0x10]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x4d8527
mov dword [ebp - 0x14], 0x3f5ba
jmp 0x4d8542
push str.6.0.6001.18000
push dword [ebp - 0x10]
call esi
pop ecx
test eax, eax
pop ecx
jne 0x4d8685
mov dword [ebp - 0x14], 0x4c59e
mov edi, dword [ebp + 0xc]
push ebx
mov eax, edi
push 0x80
neg eax
sbb eax, eax
push 3
and eax, 0x40000000
push ebx
add eax, 0x80000000
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x30], esi
je 0x4d8669
cmp esi, ebx
je 0x4d8669
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 8], eax
mov eax, edi
neg eax
sbb eax, eax
push ebx
and eax, 2
push ebx
inc eax
push ebx
inc eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 0x2c], ecx
je 0x4d8656
cmp ecx, 0xffffffff
je 0x4d8656
mov eax, edi
push ebx
neg eax
sbb eax, eax
push ebx
and eax, 2
push ebx
add eax, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x4d864d
mov eax, dword [ebp - 0x14]
cmp byte [esi + eax - 2], 0xfa
lea ecx, [esi + eax]
jne 0x4d8646
cmp byte [ecx - 3], 0x83
jne 0x4d8646
cmp edi, ebx
jne 0x4d8601
cmp byte [ecx], 0x90
je 0x4d85fa
movzx eax, byte [ecx - 1]
mov dword [ebp - 0x18], eax
jmp 0x4d8646
call fcn.004d839b
jmp 0x4d85f5
mov eax, 0x90909090
mov edi, ecx
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.IMAGEHLP.dll_CheckSumMappedFile]
push esi
call dword [sym.imp.IMAGEHLP.dll_ImageNtHeader]
cmp eax, ebx
je 0x4d8636
mov ecx, dword [eax + 0x58]
cmp ecx, dword [ebp - 0x24]
jne 0x4d8636
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x58], ecx
mov edi, dword [ebp + 0xc]
push edi
call fcn.004d83eb
pop ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], ebx
jne 0x4d8685
push 0xfffffffffffffffe
pop esi
jmp 0x4d8688
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 0xfffffffffffffffe
pop eax
jmp 0x4d86a1
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret