Function at 0x4a5a92f4
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 0x4a5a9852
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [0x4a50e3c0]
call fcn.4a50959c
lea eax, [ebp - 0x10]
mov edx, dword [0x4a50e420]
call fcn.4a50959c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 4], 0
je 0x4a5a9810
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x2c], 0
jne 0x4a5a9810
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 [0x4a5eb198]
call fcn.4a5a6c4c
cmp byte [ebp - 0x1d], 0
je 0x4a5a93d8
lea edx, [ebp - 0x334]
mov eax, dword [0x4a5eb17c]
call fcn.4a511f3c
push dword [ebp - 0x334]
push 0x4a5a986c
push dword [ebp - 8]
lea eax, [ebp - 0x330]
mov edx, 3
call fcn.4a507e30
mov eax, dword [ebp - 0x330]
call fcn.4a507f78
push eax
call fcn.4a5a6780
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4a5a9810
xor edx, edx
push ebp
push 0x4a5a9809
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp - 0x1d], 0
je 0x4a5a9401
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor edx, edx
push ebp
push 0x4a5a97e5
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x1c], 0
jne 0x4a5a945b
push 0xffffffffffffffff
lea edx, [ebp - 0x33c]
mov eax, dword [0x4a5eb190]
call fcn.4a511f3c
push dword [ebp - 0x33c]
push 0x4a5a986c
push dword [ebp - 8]
lea eax, [ebp - 0x338]
mov edx, 3
call fcn.4a507e30
mov eax, dword [ebp - 0x338]
call fcn.4a507f78
push eax
call fcn.4a5a6c38
mov dword [ebp - 0x24], eax
jmp 0x4a5a9460
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], 0
jne 0x4a5a9470
cmp dword [ebp - 0x24], 0
je 0x4a5a977f
xor edx, edx
push ebp
push 0x4a5a9778
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x1c], 0
jne 0x4a5a949b
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 0x4a5a975b
xor edx, edx
push ebp
push 0x4a5a9754
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 0x4a5a94dc
mov eax, dword [ebx + 0xc]
add eax, 4
movzx eax, word [eax]
lea edx, [ebx + 0x16]
add edx, 4
cmp ax, word [edx]
je 0x4a5a9737
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 0x4a5a9737
lea edx, [ebp - 0x32c]
mov eax, dword [ebx + 0xc]
call fcn.4a51c0b0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x35], 0
je 0x4a5a953a
mov eax, dword [ebp - 0x30c]
sub eax, dword [ebp - 0x310]
cmp eax, 6
jae 0x4a5a953a
push ebp
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebx + 0xc]
call fcn.4a5a904c
pop ecx
test al, al
jne 0x4a5a953e
xor eax, eax
jmp 0x4a5a9540
mov al, 1
mov byte [ebp - 0x2d], al
cmp byte [ebp - 0x2d], 0
je 0x4a5a960d
mov byte [ebp - 0x2e], 0xf4
mov edx, dword [ebx + 0xc]
lea eax, [ebp - 0x2e]
mov ecx, 1
call fcn.4a5a6144
test al, al
jne 0x4a5a956e
mov eax, dword [ebx + 0xc]
movzx edx, byte [ebp - 0x2e]
mov byte [eax], dl
mov eax, dword [ebx + 0xc]
mov edx, 1
call fcn.4a5a8f6c
lea eax, [ebp - 0x10]
mov edx, dword [0x4a50e420]
call fcn.4a50959c
push eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4a50e3c0]
call fcn.4a50959c
mov edx, eax
mov al, 1
pop ecx
call fcn.4a5a8ce8
test al, al
je 0x4a5a960d
mov eax, dword [ebp - 0x10]
call fcn.4a509260
test eax, eax
jl 0x4a5a960d
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 0x4a5a95fb
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp - 0x250]
jae 0x4a5a95fb
mov eax, dword [ebx + 0xc]
add eax, 5
cmp eax, dword [ebp - 0x250]
jbe 0x4a5a95fb
push 0xa
call sub.kernel32.dll_Sleep_1
jmp 0x4a5a95b8
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 0x4a5a95b8
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x16]
mov ecx, 6
call fcn.4a5a6144
test al, al
jne 0x4a5a9631
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.4a5a8f6c
cmp byte [ebp - 0x2d], 0
je 0x4a5a9714
mov dl, 1
mov eax, dword [0x4a5eb0a8]
call fcn.4a51e8a4
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 [0x4a50e420]
call fcn.4a50959c
push eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4a50e3c0]
call fcn.4a50959c
mov edx, eax
mov al, 1
pop ecx
call fcn.4a5a8ce8
test al, al
je 0x4a5a9714
mov eax, dword [ebp - 0x10]
call fcn.4a509260
test eax, eax
jl 0x4a5a9714
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 0x4a5a9702
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp - 0x250]
je 0x4a5a96f9
cmp esi, dword [ebp - 0x250]
ja 0x4a5a96e1
lea eax, [esi + 0xa]
cmp eax, dword [ebp - 0x250]
jae 0x4a5a96f9
mov eax, dword [ebp - 0x250]
and eax, 0xffff0000
mov edx, dword [ebp - 0x34]
and edx, 0xffff0000
cmp eax, edx
jne 0x4a5a9702
push 0xa
call sub.kernel32.dll_Sleep_1
jmp 0x4a5a96a2
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 0x4a5a96a2
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 0x4a5a9737
push ebp
mov eax, dword [ebp - 0x38]
call fcn.4a5a9274
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5a975b
cmp dword [ebp - 0x24], 0
je 0x4a5a9753
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 0x4a5a977f
cmp dword [ebp - 0x24], 0
je 0x4a5a9777
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp dword [ebp - 0x28], 0
je 0x4a5a97c8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x38], 0
je 0x4a5a97c8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x37], 0
je 0x4a5a97a4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
call fcn.4a5a6e20
jmp 0x4a5a97a6
xor eax, eax
mov edx, dword [ebp - 0x14]
cmp byte [edx + 0x37], 0
je 0x4a5a97b3
test eax, eax
je 0x4a5a97c8
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.4a5a6fac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5a97ec
cmp byte [ebp - 0x1d], 0
je 0x4a5a97e4
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 0x4a5a9859
lea eax, [ebp - 0x33c]
mov edx, 4
call fcn.4a5076a8
lea eax, [ebp - 0x10]
mov edx, dword [0x4a50e420]
call fcn.4a50959c
lea eax, [ebp - 0xc]
mov edx, dword [0x4a50e3c0]
call fcn.4a50959c
lea eax, [ebp - 8]
call fcn.4a50763c
ret