Function at 0x4a6998cc
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 0x4a699e2a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [0x4a60e1c4]
call fcn.4a609274
lea eax, [ebp - 0x10]
mov edx, dword [0x4a60e224]
call fcn.4a609274
mov eax, dword [ebp - 0x14]
cmp byte [eax + 4], 0
je 0x4a699de8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x2c], 0
jne 0x4a699de8
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 [0x4a6cc188]
call fcn.4a697224
cmp byte [ebp - 0x1d], 0
je 0x4a6999b0
lea edx, [ebp - 0x334]
mov eax, dword [0x4a6cc16c]
call fcn.4a611c30
push dword [ebp - 0x334]
push 0x4a699e44
push dword [ebp - 8]
lea eax, [ebp - 0x330]
mov edx, 3
call fcn.4a607da0
mov eax, dword [ebp - 0x330]
call fcn.4a607ee8
push eax
call fcn.4a696ba8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4a699de8
xor edx, edx
push ebp
push 0x4a699de1
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp - 0x1d], 0
je 0x4a6999d9
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor edx, edx
push ebp
push 0x4a699dbd
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x1c], 0
jne 0x4a699a33
push 0xffffffffffffffff
lea edx, [ebp - 0x33c]
mov eax, dword [0x4a6cc180]
call fcn.4a611c30
push dword [ebp - 0x33c]
push 0x4a699e44
push dword [ebp - 8]
lea eax, [ebp - 0x338]
mov edx, 3
call fcn.4a607da0
mov eax, dword [ebp - 0x338]
call fcn.4a607ee8
push eax
call fcn.4a69707c
mov dword [ebp - 0x24], eax
jmp 0x4a699a38
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], 0
jne 0x4a699a48
cmp dword [ebp - 0x24], 0
je 0x4a699d57
xor edx, edx
push ebp
push 0x4a699d50
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x1c], 0
jne 0x4a699a73
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 0x4a699d33
xor edx, edx
push ebp
push 0x4a699d2c
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 0x4a699ab4
mov eax, dword [ebx + 0xc]
add eax, 4
movzx eax, word [eax]
lea edx, [ebx + 0x16]
add edx, 4
cmp ax, word [edx]
je 0x4a699d0f
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 0x4a699d0f
lea edx, [ebp - 0x32c]
mov eax, dword [ebx + 0xc]
call fcn.4a61bf94
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x35], 0
je 0x4a699b12
mov eax, dword [ebp - 0x30c]
sub eax, dword [ebp - 0x310]
cmp eax, 6
jae 0x4a699b12
push ebp
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebx + 0xc]
call fcn.4a699624
pop ecx
test al, al
jne 0x4a699b16
xor eax, eax
jmp 0x4a699b18
mov al, 1
mov byte [ebp - 0x2d], al
cmp byte [ebp - 0x2d], 0
je 0x4a699be5
mov byte [ebp - 0x2e], 0xf4
mov edx, dword [ebx + 0xc]
lea eax, [ebp - 0x2e]
mov ecx, 1
call fcn.4a696558
test al, al
jne 0x4a699b46
mov eax, dword [ebx + 0xc]
movzx edx, byte [ebp - 0x2e]
mov byte [eax], dl
mov eax, dword [ebx + 0xc]
mov edx, 1
call fcn.4a699544
lea eax, [ebp - 0x10]
mov edx, dword [0x4a60e224]
call fcn.4a609274
push eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4a60e1c4]
call fcn.4a609274
mov edx, eax
mov al, 1
pop ecx
call fcn.4a6992c0
test al, al
je 0x4a699be5
mov eax, dword [ebp - 0x10]
call fcn.4a608f38
test eax, eax
jl 0x4a699be5
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 0x4a699bd3
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp - 0x250]
jae 0x4a699bd3
mov eax, dword [ebx + 0xc]
add eax, 5
cmp eax, dword [ebp - 0x250]
jbe 0x4a699bd3
push 0xa
call sub.kernel32.dll_Sleep_1
jmp 0x4a699b90
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 0x4a699b90
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x16]
mov ecx, 6
call fcn.4a696558
test al, al
jne 0x4a699c09
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.4a699544
cmp byte [ebp - 0x2d], 0
je 0x4a699cec
mov dl, 1
mov eax, dword [0x4a6cc098]
call fcn.4a61e788
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 [0x4a60e224]
call fcn.4a609274
push eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4a60e1c4]
call fcn.4a609274
mov edx, eax
mov al, 1
pop ecx
call fcn.4a6992c0
test al, al
je 0x4a699cec
mov eax, dword [ebp - 0x10]
call fcn.4a608f38
test eax, eax
jl 0x4a699cec
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 0x4a699cda
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp - 0x250]
je 0x4a699cd1
cmp esi, dword [ebp - 0x250]
ja 0x4a699cb9
lea eax, [esi + 0xa]
cmp eax, dword [ebp - 0x250]
jae 0x4a699cd1
mov eax, dword [ebp - 0x250]
and eax, 0xffff0000
mov edx, dword [ebp - 0x34]
and edx, 0xffff0000
cmp eax, edx
jne 0x4a699cda
push 0xa
call sub.kernel32.dll_Sleep_1
jmp 0x4a699c7a
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 0x4a699c7a
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 0x4a699d0f
push ebp
mov eax, dword [ebp - 0x38]
call fcn.4a69984c
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a699d33
cmp dword [ebp - 0x24], 0
je 0x4a699d2b
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 0x4a699d57
cmp dword [ebp - 0x24], 0
je 0x4a699d4f
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp dword [ebp - 0x28], 0
je 0x4a699da0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x38], 0
je 0x4a699da0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x37], 0
je 0x4a699d7c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
call fcn.4a6973f8
jmp 0x4a699d7e
xor eax, eax
mov edx, dword [ebp - 0x14]
cmp byte [edx + 0x37], 0
je 0x4a699d8b
test eax, eax
je 0x4a699da0
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.4a697584
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a699dc4
cmp byte [ebp - 0x1d], 0
je 0x4a699dbc
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 0x4a699e31
lea eax, [ebp - 0x33c]
mov edx, 4
call fcn.4a607618
lea eax, [ebp - 0x10]
mov edx, dword [0x4a60e224]
call fcn.4a609274
lea eax, [ebp - 0xc]
mov edx, dword [0x4a60e1c4]
call fcn.4a609274
lea eax, [ebp - 8]
call fcn.4a6075ac
ret