Function at 0x4a655830
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x23
push 0
push 0
dec ecx
jne 0x4a655838
push ecx
push ebx
push esi
push edi
mov byte [ebp - 0x81], al
lea eax, [ebp - 0x40]
mov edx, dword [0x4a617d78]
call fcn.4a60888c
lea eax, [ebp - 0x80]
mov edx, dword [0x4a617d78]
call fcn.4a60888c
xor eax, eax
push ebp
push 0x4a656000
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a6cb500], 0
je 0x4a655889
mov eax, dword [0x4a6cb500]
cmp eax, dword [0x4a6cb504]
jne 0x4a6558f5
push 0x4a656010
call sub.kernel32.dll_GetModuleHandleW_1
mov ebx, eax
test ebx, ebx
jne 0x4a6558a5
push 0x4a65602c
call sub.kernel32.dll_GetModuleHandleW_1
mov ebx, eax
push 0x4a656044
push ebx
call fcn.4a60d6e0
mov dword [0x4a6cb500], eax
push 0x4a656070
push ebx
call fcn.4a60d6e0
mov dword [0x4a6cb504], eax
push 0x4a6560c4
push ebx
call fcn.4a60d6e0
mov dword [0x4a6cb50c], eax
push 0x4a6560d4
push ebx
call fcn.4a60d6e0
mov dword [0x4a6cb514], eax
push 0x4a6560f4
push ebx
call fcn.4a60d6e0
mov dword [0x4a6cb518], eax
cmp dword [0x4a6cb500], 0
je 0x4a655fbf
cmp dword [0x4a6cb504], 0
je 0x4a655fbf
cmp dword [0x4a6cb50c], 0
je 0x4a655fbf
cmp dword [0x4a6cb514], 0
jne 0x4a655932
cmp dword [0x4a6cb510], 0
je 0x4a655fbf
mov eax, dword [0x4a6ce728]
mov edx, dword [0x4a6cb508]
mov dword [eax], edx
lea edx, [ebp - 0xb8]
mov eax, dword [0x4a6cb500]
call fcn.4a61bf94
lea edx, [ebp - 0x40]
mov eax, dword [0x4a6cb500]
call fcn.4a61d2d0
mov eax, dword [ebp - 0x20]
call fcn.4a608f38
mov edi, eax
dec edi
test edi, edi
jl 0x4a6559f2
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 0x4a6559ee
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 0x4a6559ee
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 8]
lea edx, [ebp - 0xb8]
call fcn.4a61bf94
cmp word [ebp - 0xb6], 0x8b
jne 0x4a6559ee
movzx eax, byte [ebp - 0xb4]
sub al, 0x80
je 0x4a6559c6
sub al, 8
je 0x4a6559c6
sub al, 8
jne 0x4a6559ee
mov eax, dword [ebp - 0x9c]
add eax, 2
mov eax, dword [eax]
mov dword [0x4a6cb5cc], 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 [0x4a6cb5d0], eax
jmp 0x4a6559f2
inc ebx
dec edi
jne 0x4a655972
cmp dword [0x4a6cb5d0], 0
je 0x4a655d54
lea edx, [ebp - 0x40]
mov eax, dword [0x4a6cb504]
call fcn.4a61d2d0
mov eax, dword [ebp - 0x20]
call fcn.4a608f2c
dec eax
jne 0x4a655d54
lea edx, [ebp - 0xf8]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
call fcn.4a61d2d0
lea edx, [ebp - 0xf8]
lea eax, [ebp - 0x40]
mov ecx, dword [0x4a617d78]
call fcn.4a608ae8
mov eax, sub.kernel32.dll_RaiseException_2
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
cmp word [eax], 0x25ff
jne 0x4a655a6b
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.4a608f38
mov edi, eax
test edi, edi
jl 0x4a655bbe
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 0x4a655b09
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 4]
sub eax, 4
cmp dword [eax], 0xeefface
jne 0x4a655bb6
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 4]
lea edx, [ebp - 0xb8]
call fcn.4a61bf94
cmp dword [ebp - 0xa4], 4
jne 0x4a655bb6
cmp byte [ebp - 0xb1], 0
je 0x4a655bb6
mov eax, dword [ebp - 0xb0]
mov dword [0x4a6d50e8], eax
mov edx, 0x4a655650
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.4a685fc8
jmp 0x4a655bb6
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0xc]
lea edx, [ebp - 0xb8]
call fcn.4a61bf94
jmp 0x4a655ba0
mov eax, dword [ebp - 0xb0]
cmp eax, dword [0x4a6cb50c]
jne 0x4a655b7a
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 0x4a655bb6
cmp byte [ebp - 0xb1], 0
je 0x4a655bb6
mov eax, dword [ebp - 0xb0]
mov dword [0x4a6d50e0], eax
mov edx, 0x4a6554f0
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.4a685fc8
jmp 0x4a655bb6
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.4a61bf94
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 0x4a655b20
inc ebx
dec edi
jne 0x4a655a88
cmp dword [ebp - 0x88], 0
je 0x4a655d54
lea edx, [ebp - 0x40]
mov eax, dword [0x4a6cb500]
call fcn.4a61d2d0
mov eax, dword [ebp - 0x20]
call fcn.4a608f38
mov edi, eax
test edi, edi
jl 0x4a655d54
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.4a61d2d0
mov eax, dword [ebp - 0x60]
call fcn.4a608f38
mov esi, eax
test esi, esi
jl 0x4a655d4c
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 0x4a655d3f
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.4a61bf94
cmp word [ebp - 0xb6], 0x83
jne 0x4a655d3f
cmp byte [ebp - 0xb4], 0xc4
jne 0x4a655d3f
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax + 2]
sub al, 0x10
je 0x4a655c95
sub al, 8
je 0x4a655cee
jmp 0x4a655d3f
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.4a61bf94
cmp dword [ebp - 0xa4], 4
jne 0x4a655d4c
cmp byte [ebp - 0xb1], 0
je 0x4a655d4c
mov eax, dword [ebp - 0xb0]
mov dword [0x4a6d50e4], eax
mov edx, 0x4a6555d0
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.4a685fc8
jmp 0x4a655d4c
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.4a61bf94
cmp dword [ebp - 0xa4], 4
jne 0x4a655d4c
cmp byte [ebp - 0xb1], 0
je 0x4a655d4c
mov eax, dword [ebp - 0xb0]
mov dword [0x4a6d50ec], eax
mov edx, 0x4a6556d8
sub edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
call fcn.4a685fc8
jmp 0x4a655d4c
inc dword [ebp - 0x8c]
dec esi
jne 0x4a655c23
inc ebx
dec edi
jne 0x4a655bed
cmp byte [ebp - 0x81], 0
je 0x4a655edc
call fcn.4a65581c
lea edx, [ebp - 0xb8]
call fcn.4a61bf94
jmp 0x4a655d97
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.4a61bf94
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x4a655ddd
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x4a655ddd
cmp word [ebp - 0xb6], 0x89
jne 0x4a655d73
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x4a655d73
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x4a655d73
cmp byte [ebp - 0xb8], 0
je 0x4a655edc
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x4a655edc
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.4a61bf94
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
jmp 0x4a655e56
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.4a61bf94
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0xb8], 0
je 0x4a655e9c
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x4a655e9c
cmp word [ebp - 0xb6], 0x89
jne 0x4a655e32
mov eax, dword [ebp - 0x9c]
inc eax
cmp dword [eax], 0x24448bc2
jne 0x4a655e32
mov eax, dword [ebp - 0x9c]
add eax, 5
cmp dword [eax], 0xc488b04
jne 0x4a655e32
cmp byte [ebp - 0xb8], 0
je 0x4a655ec3
movzx eax, word [ebp - 0xb6]
add eax, 0xffffff3e
sub ax, 2
jb 0x4a655ec3
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x4a655edc
mov edx, 0x4a655778
mov eax, dword [ebp - 0x90]
call fcn.4a685fa4
cmp dword [0x4a6cb514], 0
je 0x4a655ef2
mov eax, dword [0x4a6cb514]
mov dword [eax], 0x4a65579c
jmp 0x4a655f01
mov edx, 0x4a65579c
mov eax, dword [0x4a6cb510]
call fcn.4a685f70
cmp dword [0x4a6cb518], 0
je 0x4a655fbf
lea edx, [ebp - 0xb8]
mov eax, dword [0x4a6cb518]
call fcn.4a61bf94
mov ebx, 5
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 0x98]
call fcn.4a61bf94
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0xb8]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
dec ebx
jne 0x4a655f23
cmp byte [ebp - 0xb8], 0
je 0x4a655fbf
mov eax, dword [ebp - 0x9c]
cmp word [eax], 0x33ff
jne 0x4a655fbf
mov eax, dword [ebp - 0x98]
add eax, 6
cmp byte [eax], 0x59
jne 0x4a655fbf
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 [0x4a6cb518]
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 [0x4a6cb518]
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 0x4a656007
lea eax, [ebp - 0xf8]
mov edx, dword [0x4a617d78]
call fcn.4a608964
lea eax, [ebp - 0x80]
mov edx, dword [0x4a617d78]
mov ecx, 2
call fcn.4a6089b4
ret