Function at 0x49a7d6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4f5508], eax
je 0x49a7f7
mov eax, 0x10dd
jmp 0x49a9f6
mov eax, dword [0x4f550c]
cmp eax, ebx
jne 0x49a9f6
push esi
mov esi, dword [0x4f5590]
push edi
cmp esi, ebx
jne 0x49a827
push 6
pop eax
mov dword [0x4f550c], eax
mov dword [0x4f5510], 0x4f5590
jmp 0x49a9f4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call fcn.0049a3fd
mov edi, eax
mov esi, 0x487812
mov dword [ebp - 8], edi
call fcn.0049a3fd
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x49a859
cmp dword [0x4f5504], ebx
jne 0x49a99d
jmp 0x49a967
push 0x18
call fcn.004a59a9
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x49a870
push 8
pop ebx
jmp 0x49a967
mov eax, edi
call fcn.0049a1c4
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x49a868
mov ecx, edi
xor ebx, ebx
jmp 0x49a889
mov ecx, dword [ebp - 0x18]
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
lea edx, [ebx + esi]
push eax
mov dword [ebp - 0x1c], ecx
call fcn.0049e57a
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x18], eax
jne 0x49a8ba
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
sub ebx, edi
call fcn.0049a150
test eax, eax
jne 0x49a8ba
cmp ebx, 5
jl 0x49a886
cmp ebx, 5
jge 0x49a8d4
cmp dword [0x4f5504], 0
push 9
pop ebx
jne 0x49a96d
jmp 0x49a967
cmp ebx, 0x12
jbe 0x49a8dd
push 6
jmp 0x49a86a
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x1c], ecx
lea ecx, [ebx + esi]
lea eax, [ebx + edi]
mov dword [esi + 0x18], eax
lea edx, [esi + 0x17]
lea edi, [ecx + 5]
mov byte [edx], bl
sub eax, edi
mov byte [ecx], 0xe9
mov dword [ecx + 1], eax
add ecx, 5
cmp ecx, edx
jae 0x49a914
sub edx, ecx
push edx
push 0xcc
push ecx
call fcn.004a63e0
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x40
push ebx
push dword [ebp - 8]
call edi
test eax, eax
je 0x49a95f
push dword [ebp - 8]
call fcn.0049a39a
mov ebx, eax
pop ecx
test ebx, ebx
je 0x49a9c8
mov eax, 0x6544
cmp word [ebx + 0x1c], ax
je 0x49a9c8
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x40
push ebx
call edi
test eax, eax
jne 0x49a9a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x4f550c], ebx
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x49a98e
mov edx, esi
and edx, 0xffff0000
push 8
xor eax, eax
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [edx + 8]
mov dword [esi + 0x18], eax
mov dword [edx + 8], esi
cmp dword [ebp - 4], 0
je 0x49a99d
push dword [ebp - 4]
call fcn.004a5452
pop ecx
mov eax, ebx
jmp 0x49a818
mov eax, 0x6544
mov word [ebx + 0x1c], ax
mov eax, 0x6f74
mov word [ebx + 0x1e], ax
mov eax, 0x7275
mov word [ebx + 0x20], ax
mov eax, 0x2173
mov word [ebx + 0x22], ax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
and dword [eax + 4], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 0x4f5590
mov dword [eax + 0x10], esi
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x4f5518]
mov dword [eax], ecx
mov dword [0x4f5518], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret