Function at 0x4f5e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x334], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4f637e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [0x4eaab8]
call fcn.0040c4d8
lea eax, [ebp - 0x10]
mov edx, dword [0x4eaae8]
call fcn.0040c4d8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 4], 0
je 0x4f633c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x2c], 0
jne 0x4f633c
xor eax, eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x18], 0
sete byte [ebp - 0x1d]
lea ecx, [ebp - 8]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 8]
mov eax, dword [0x5f43a4]
call fcn.004f3638
cmp byte [ebp - 0x1d], 0
je 0x4f5f04
lea edx, [ebp - 0x334]
mov eax, dword [0x5f4388]
call fcn.004ec4a0
push dword [ebp - 0x334]
push 0x4f6398
push dword [ebp - 8]
lea eax, [ebp - 0x330]
mov edx, 3
call fcn.0040a6b4
mov eax, dword [ebp - 0x330]
call fcn.0040a7fc
push eax
call fcn.004f3190
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4f633c
xor edx, edx
push ebp
push 0x4f6335
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp - 0x1d], 0
je 0x4f5f2d
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor edx, edx
push ebp
push 0x4f6311
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x1c], 0
jne 0x4f5f87
push 0xffffffffffffffff
lea edx, [ebp - 0x33c]
mov eax, dword [0x5f439c]
call fcn.004ec4a0
push dword [ebp - 0x33c]
push 0x4f6398
push dword [ebp - 8]
lea eax, [ebp - 0x338]
mov edx, 3
call fcn.0040a6b4
mov eax, dword [ebp - 0x338]
call fcn.0040a7fc
push eax
call fcn.004f3624
mov dword [ebp - 0x24], eax
jmp 0x4f5f8c
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], 0
jne 0x4f5f9c
cmp dword [ebp - 0x24], 0
je 0x4f62ab
xor edx, edx
push ebp
push 0x4f62a4
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x1c], 0
jne 0x4f5fc7
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4f6287
xor edx, edx
push ebp
push 0x4f6280
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
lea edx, [ebx + 0x16]
cmp eax, dword [edx]
jne 0x4f6008
mov eax, dword [ebx + 0xc]
add eax, 4
movzx eax, word [eax]
lea edx, [ebx + 0x16]
add edx, 4
cmp ax, word [edx]
je 0x4f6263
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 8
push esi
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4f6263
lea edx, [ebp - 0x32c]
mov eax, dword [ebx + 0xc]
call fcn.004ef558
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x35], 0
je 0x4f6066
mov eax, dword [ebp - 0x30c]
sub eax, dword [ebp - 0x310]
cmp eax, 6
jae 0x4f6066
push ebp
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebx + 0xc]
call fcn.004f5b78
pop ecx
test al, al
jne 0x4f606a
xor eax, eax
jmp 0x4f606c
mov al, 1
mov byte [ebp - 0x2d], al
cmp byte [ebp - 0x2d], 0
je 0x4f6139
mov byte [ebp - 0x2e], 0xf4
mov edx, dword [ebx + 0xc]
lea eax, [ebp - 0x2e]
mov ecx, 1
call fcn.004f2b58
test al, al
jne 0x4f609a
mov eax, dword [ebx + 0xc]
movzx edx, byte [ebp - 0x2e]
mov byte [eax], dl
mov eax, dword [ebx + 0xc]
mov edx, 1
call fcn.004f5a98
mov edx, dword [0x4eaae8]
lea eax, [ebp - 0x10]
call fcn.0040c4d8
push eax
mov edx, dword [0x4eaab8]
lea eax, [ebp - 0xc]
call fcn.0040c4d8
mov edx, eax
mov al, 1
pop ecx
call fcn.004f5814
test al, al
je 0x4f6139
mov eax, dword [ebp - 0x10]
call fcn.0040c010
test eax, eax
jl 0x4f6139
inc eax
mov dword [ebp - 0x3c], eax
xor edi, edi
mov dword [ebp - 0x308], 0x10001
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + edi*4]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x4f6127
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp - 0x250]
jae 0x4f6127
mov eax, dword [ebx + 0xc]
add eax, 5
cmp eax, dword [ebp - 0x250]
jbe 0x4f6127
push 0xa
call sub.kernel32.dll_Sleep_1
jmp 0x4f60e4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + edi*4]
push eax
call sub.kernel32.dll_CloseHandle_1
inc edi
dec dword [ebp - 0x3c]
jne 0x4f60e4
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x16]
mov ecx, 6
call fcn.004f2b58
test al, al
jne 0x4f615d
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x16]
mov dword [eax], edx
mov dx, word [ebx + 0x1a]
mov word [eax + 4], dx
mov eax, dword [ebx + 0xc]
mov edx, 6
call fcn.004f5a98
cmp byte [ebp - 0x2d], 0
je 0x4f6240
mov dl, 1
mov eax, dword [0x5f42bc]
call fcn.004f0a94
mov esi, eax
lea eax, [esi + 0xe]
lea edx, [esi + 0xa]
add eax, dword [edx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4eaae8]
call fcn.0040c4d8
push eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4eaab8]
call fcn.0040c4d8
mov edx, eax
mov al, 1
pop ecx
call fcn.004f5814
test al, al
je 0x4f6240
mov eax, dword [ebp - 0x10]
call fcn.0040c010
test eax, eax
jl 0x4f6240
inc eax
mov dword [ebp - 0x3c], eax
xor edi, edi
mov dword [ebp - 0x308], 0x10001
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + edi*4]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x4f622e
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp - 0x250]
je 0x4f6225
cmp esi, dword [ebp - 0x250]
ja 0x4f620d
lea eax, [esi + 0xa]
cmp eax, dword [ebp - 0x250]
jae 0x4f6225
mov eax, dword [ebp - 0x250]
and eax, 0xffff0000
mov edx, dword [ebp - 0x34]
and edx, 0xffff0000
cmp eax, edx
jne 0x4f622e
push 0xa
call sub.kernel32.dll_Sleep_1
jmp 0x4f61ce
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + edi*4]
push eax
call sub.kernel32.dll_CloseHandle_1
inc edi
dec dword [ebp - 0x3c]
jne 0x4f61ce
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 8
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
cmp byte [ebp - 0x2d], 0
je 0x4f6263
push ebp
mov eax, dword [ebp - 0x38]
call fcn.004f5da0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6287
cmp dword [ebp - 0x24], 0
je 0x4f627f
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f62ab
cmp dword [ebp - 0x24], 0
je 0x4f62a3
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp dword [ebp - 0x28], 0
je 0x4f62f4
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x38], 0
je 0x4f62f4
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x37], 0
je 0x4f62d0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
call fcn.004f39a4
jmp 0x4f62d2
xor eax, eax
mov edx, dword [ebp - 0x14]
cmp byte [edx + 0x37], 0
je 0x4f62df
test eax, eax
je 0x4f62f4
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x28]
call fcn.004f3b30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6318
cmp byte [ebp - 0x1d], 0
je 0x4f6310
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6385
lea eax, [ebp - 0x33c]
mov edx, 4
call fcn.00409e6c
lea eax, [ebp - 0x10]
mov edx, dword [0x4eaae8]
call fcn.0040c4d8
lea eax, [ebp - 0xc]
mov edx, dword [0x4eaab8]
call fcn.0040c4d8
lea eax, [ebp - 8]
call fcn.00409e00
ret