Function at 0x4a555a04
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x23
push 0
push 0
dec ecx
jne 0x4a555a0c
push ecx
push ebx
push esi
push edi
mov byte [ebp - 0x81], al
lea eax, [ebp - 0x40]
mov edx, dword [0x4a517e94]
call fcn.4a508938
lea eax, [ebp - 0x80]
mov edx, dword [0x4a517e94]
call fcn.4a508938
xor eax, eax
push ebp
push 0x4a5561d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a5e8500], 0
je 0x4a555a5d
mov eax, dword [0x4a5e8500]
cmp eax, dword [0x4a5e8504]
jne 0x4a555ac9
push 0x4a5561e4
call sub.kernel32.dll_GetModuleHandleW_1
mov ebx, eax
test ebx, ebx
jne 0x4a555a79
push 0x4a556200
call sub.kernel32.dll_GetModuleHandleW_1
mov ebx, eax
push 0x4a556218
push ebx
call fcn.4a50d92c
mov dword [0x4a5e8500], eax
push 0x4a556244
push ebx
call fcn.4a50d92c
mov dword [0x4a5e8504], eax
push 0x4a556298
push ebx
call fcn.4a50d92c
mov dword [0x4a5e850c], eax
push 0x4a5562a8
push ebx
call fcn.4a50d92c
mov dword [0x4a5e8514], eax
push 0x4a5562c8
push ebx
call fcn.4a50d92c
mov dword [0x4a5e8518], eax
cmp dword [0x4a5e8500], 0
je 0x4a556193
cmp dword [0x4a5e8504], 0
je 0x4a556193
cmp dword [0x4a5e850c], 0
je 0x4a556193
cmp dword [0x4a5e8514], 0
jne 0x4a555b06
cmp dword [0x4a5e8510], 0
je 0x4a556193
mov eax, dword [0x4a5ed528]
mov edx, dword [0x4a5e8508]
mov dword [eax], edx
lea edx, [ebp - 0xb8]
mov eax, dword [0x4a5e8500]
call fcn.4a51c0b0
lea edx, [ebp - 0x40]
mov eax, dword [0x4a5e8500]
call fcn.4a51d3ec
mov eax, dword [ebp - 0x20]
call fcn.4a509260
mov edi, eax
dec edi
test edi, edi
jl 0x4a555bc6
inc edi
xor ebx, ebx
mov esi, ebx
add esi, esi
add esi, esi
add esi, esi
sub esi, ebx
mov eax, dword [ebp - 0x20]
cmp dword [eax + esi*4 + 0xc], 0
je 0x4a555bc2
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0xc]
mov edx, dword [ebp - 0x20]
cmp eax, dword [edx + esi*4 + 0x28]
jne 0x4a555bc2
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 8]
lea edx, [ebp - 0xb8]
call fcn.4a51c0b0
cmp word [ebp - 0xb6], 0x8b
jne 0x4a555bc2
movzx eax, byte [ebp - 0xb4]
sub al, 0x80
je 0x4a555b9a
sub al, 8
je 0x4a555b9a
sub al, 8
jne 0x4a555bc2
mov eax, dword [ebp - 0x9c]
add eax, 2
mov eax, dword [eax]
mov dword [0x4a5e85cc], eax
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 0xc]
mov dword [0x4a5e85d0], eax
jmp 0x4a555bc6
inc ebx
dec edi
jne 0x4a555b46
cmp dword [0x4a5e85d0], 0
je 0x4a555f28
lea edx, [ebp - 0x40]
mov eax, dword [0x4a5e8504]
call fcn.4a51d3ec
mov eax, dword [ebp - 0x20]
call fcn.4a509254
dec eax
jne 0x4a555f28
lea edx, [ebp - 0xf8]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
call fcn.4a51d3ec
lea edx, [ebp - 0xf8]
lea eax, [ebp - 0x40]
mov ecx, dword [0x4a517e94]
call fcn.4a508b94
mov eax, sub.kernel32.dll_RaiseException_2
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
cmp word [eax], 0x25ff
jne 0x4a555c3f
mov eax, dword [ebp - 0x90]
add eax, 2
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x20]
call fcn.4a509260
mov edi, eax
test edi, edi
jl 0x4a555d92
inc edi
xor ebx, ebx
mov esi, ebx
add esi, esi
add esi, esi
add esi, esi
sub esi, ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0xc]
cmp eax, dword [ebp - 0x90]
jne 0x4a555cdd
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 4]
sub eax, 4
cmp dword [eax], 0xeefface
jne 0x4a555d8a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 4]
lea edx, [ebp - 0xb8]
call fcn.4a51c0b0
cmp dword [ebp - 0xa4], 4
jne 0x4a555d8a
cmp byte [ebp - 0xb1], 0
je 0x4a555d8a
mov eax, dword [ebp - 0xb0]
mov dword [0x4a5f40e8], eax
mov edx, 0x4a555824
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.4a585fd4
jmp 0x4a555d8a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0xc]
lea edx, [ebp - 0xb8]
call fcn.4a51c0b0
jmp 0x4a555d74
mov eax, dword [ebp - 0xb0]
cmp eax, dword [0x4a5e850c]
jne 0x4a555d4e
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 0xc]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0xa4], 4
jne 0x4a555d8a
cmp byte [ebp - 0xb1], 0
je 0x4a555d8a
mov eax, dword [ebp - 0xb0]
mov dword [0x4a5f40e0], eax
mov edx, 0x4a5556c4
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.4a585fd4
jmp 0x4a555d8a
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.4a51c0b0
push edi
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
pop edi
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jae 0x4a555cf4
inc ebx
dec edi
jne 0x4a555c5c
cmp dword [ebp - 0x88], 0
je 0x4a555f28
lea edx, [ebp - 0x40]
mov eax, dword [0x4a5e8500]
call fcn.4a51d3ec
mov eax, dword [ebp - 0x20]
call fcn.4a509260
mov edi, eax
test edi, edi
jl 0x4a555f28
inc edi
xor ebx, ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 0xc]
lea edx, [ebp - 0x80]
call fcn.4a51d3ec
mov eax, dword [ebp - 0x60]
call fcn.4a509260
mov esi, eax
test esi, esi
jl 0x4a555f20
inc esi
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov edx, eax
add eax, eax
add eax, eax
add eax, eax
sub eax, edx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + eax*4 + 0xc]
cmp eax, dword [ebp - 0x88]
jne 0x4a555f13
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 8]
lea edx, [ebp - 0xb8]
call fcn.4a51c0b0
cmp word [ebp - 0xb6], 0x83
jne 0x4a555f13
cmp byte [ebp - 0xb4], 0xc4
jne 0x4a555f13
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax + 2]
sub al, 0x10
je 0x4a555e69
sub al, 8
je 0x4a555ec2
jmp 0x4a555f13
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 4]
lea edx, [ebp - 0xb8]
call fcn.4a51c0b0
cmp dword [ebp - 0xa4], 4
jne 0x4a555f20
cmp byte [ebp - 0xb1], 0
je 0x4a555f20
mov eax, dword [ebp - 0xb0]
mov dword [0x4a5f40e4], eax
mov edx, 0x4a5557a4
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.4a585fd4
jmp 0x4a555f20
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 4]
lea edx, [ebp - 0xb8]
call fcn.4a51c0b0
cmp dword [ebp - 0xa4], 4
jne 0x4a555f20
cmp byte [ebp - 0xb1], 0
je 0x4a555f20
mov eax, dword [ebp - 0xb0]
mov dword [0x4a5f40ec], eax
mov edx, 0x4a5558ac
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.4a585fd4
jmp 0x4a555f20
inc dword [ebp - 0x8c]
dec esi
jne 0x4a555df7
inc ebx
dec edi
jne 0x4a555dc1
cmp byte [ebp - 0x81], 0
je 0x4a5560b0
call fcn.4a5559f0
lea edx, [ebp - 0xb8]
call fcn.4a51c0b0
jmp 0x4a555f6b
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.4a51c0b0
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x4a555fb1
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x4a555fb1
cmp word [ebp - 0xb6], 0x89
jne 0x4a555f47
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x4a555f47
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x4a555f47
cmp byte [ebp - 0xb8], 0
je 0x4a5560b0
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x4a5560b0
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.4a51c0b0
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
jmp 0x4a55602a
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.4a51c0b0
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x4a556070
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x4a556070
cmp word [ebp - 0xb6], 0x89
jne 0x4a556006
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x4a556006
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x4a556006
cmp byte [ebp - 0xb8], 0
je 0x4a556097
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x4a556097
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x4a5560b0
mov edx, 0x4a55594c
mov eax, dword [ebp - 0x90]
call fcn.4a585fb0
cmp dword [0x4a5e8514], 0
je 0x4a5560c6
mov eax, dword [0x4a5e8514]
mov dword [eax], 0x4a555970
jmp 0x4a5560d5
mov edx, 0x4a555970
mov eax, dword [0x4a5e8510]
call fcn.4a585f7c
cmp dword [0x4a5e8518], 0
je 0x4a556193
lea edx, [ebp - 0xb8]
mov eax, dword [0x4a5e8518]
call fcn.4a51c0b0
mov ebx, 5
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.4a51c0b0
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
dec ebx
jne 0x4a5560f7
cmp byte [ebp - 0xb8], 0
je 0x4a556193
mov eax, dword [ebp - 0x9c]
cmp word [eax], 0x33ff
jne 0x4a556193
mov eax, dword [ebp - 0x98]
add eax, 6
cmp byte [eax], 0x59
jne 0x4a556193
lea eax, [ebp - 0x94]
push eax
push 0x40
mov esi, dword [ebp - 0x98]
mov edi, esi
add edi, 7
mov eax, edi
sub eax, dword [0x4a5e8518]
push eax
mov ebx, dword [ebp - 0x9c]
push ebx
call sub.kernel32.dll_VirtualProtect
mov word [ebx], 0x38b
mov eax, esi
add eax, 6
mov byte [eax], 0x90
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x94]
push eax
sub edi, dword [0x4a5e8518]
push edi
push ebx
call sub.kernel32.dll_VirtualProtect
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5561db
lea eax, [ebp - 0xf8]
mov edx, dword [0x4a517e94]
call fcn.4a508a10
lea eax, [ebp - 0x80]
mov edx, dword [0x4a517e94]
mov ecx, 2
call fcn.4a508a60
ret