Function at 0x10024bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x58]
mov edx, dword [0x100165bc]
call fcn.10012e48
xor eax, eax
push ebp
push 0x10024f62
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x10037fc4], 0
jne 0x10024f31
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x10024c54
push 0
mov dl, 1
mov eax, dword [0x10037cbc]
call fcn.10018e8c
call fcn.1001fda0
push eax
push 0x100249c8
push 0x10037fb4
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.10025568
push 0
mov dl, 1
mov eax, dword [0x10037cc0]
call fcn.10018e8c
call fcn.1001fda0
push eax
push 0x10024a30
push 0x10037fb8
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.10025568
jmp 0x10024f2a
cmp byte [0x10037fc8], 0
jne 0x10024ed5
mov byte [0x10037fc8], 1
lea edx, [ebp - 0xc]
mov eax, dword [0x10037de0]
call fcn.1001520c
lea eax, [ebp - 0x60]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.10014db4
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0xc]
call fcn.100127e4
mov eax, dword [ebp - 0x5c]
call fcn.10012998
push eax
push 0xc
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x10024ed5
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
setne byte [ebp - 1]
push 0
push 0
push 0
push 0xf001f
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
test edi, edi
je 0x10024ecb
mov ebx, 0x32
cmp byte [ebp - 1], 0
jne 0x10024d14
mov eax, dword [edi]
mov edx, dword [edi + 4]
push edx
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x10024d06
cmp eax, dword [esp]
pop edx
pop eax
je 0x10024d14
push 0x32
call sub.KERNEL32.dll_Sleep
dec ebx
jne 0x10024ce8
cmp byte [ebp - 1], 0
jne 0x10024d2f
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
cmp edx, dword [ecx + 4]
jne 0x10024d29
cmp eax, dword [ecx]
je 0x10024ebd
push 0x40
push 0x1000
push 0xa
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x10037c38]
call fcn.10018fa0
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x10037cc4]
call fcn.10018e8c
lea edx, [ebp - 0x58]
call fcn.10018d40
mov eax, dword [ebp - 0x38]
call fcn.10013380
test eax, eax
jl 0x10024e8d
inc eax
xor ebx, ebx
mov edx, ebx
shl edx, 3
sub edx, ebx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + edx*4 + 0xc]
cmp edx, dword [ebp - 0x14]
jne 0x10024e85
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x38]
cmp dword [edx + eax*4 + 0x14], 0
jne 0x10024dae
mov edx, dword [ebp - 0x38]
cmp dword [edx + eax*4 + 0x18], 0
je 0x10024e8d
mov edx, dword [ebp - 8]
mov dword [edi + 8], edx
mov edx, dword [ebp - 8]
mov byte [edx], 0xff
mov edx, dword [ebp - 8]
mov byte [edx + 1], 0x25
mov edx, dword [ebp - 8]
add edx, 6
mov ecx, dword [ebp - 8]
mov dword [ecx + 2], edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [edx + 6], ecx
mov edx, dword [ebp - 0x38]
cmp dword [edx + eax*4 + 0x14], 0
je 0x10024df3
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + eax*4 + 0x14]
mov dword [ebp - 0x14], eax
jmp 0x10024dff
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + eax*4 + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.1001a0e8
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
je 0x10024e21
mov edx, 4
mov eax, dword [ebp - 0x14]
call fcn.1001a1c8
test al, al
je 0x10024e8d
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x38]
cmp byte [edx + eax*4 + 0x10], 0
je 0x10024e44
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
sub ecx, dword [edx + eax*4 + 4]
sub ecx, 5
mov dword [ebp - 0x10], ecx
jmp 0x10024e4a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov ecx, 4
mov edx, dword [ebp - 0x14]
call fcn.1001f0b4
test al, al
jne 0x10024e66
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
cmp byte [ebp - 0x15], 0
je 0x10024e79
mov edx, 4
mov eax, dword [ebp - 0x14]
call fcn.1001a258
mov eax, dword [ebp - 8]
mov dword [0x10037fcc], eax
xor esi, esi
jmp 0x10024e8d
inc ebx
dec eax
jne 0x10024d78
cmp dword [0x10037fcc], 0
jne 0x10024eae
push edi
call sub.KERNEL32.dll_UnmapViewOfFile
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_VirtualFree
jmp 0x10024ecb
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
jmp 0x10024ecb
mov eax, dword [edi + 8]
mov dword [0x10037fcc], eax
push edi
call sub.KERNEL32.dll_UnmapViewOfFile
test esi, esi
je 0x10024ed5
push esi
call sub.KERNEL32.dll_CloseHandle
cmp dword [0x10037fcc], 0
je 0x10024eff
push 0
mov eax, dword [0x10037fcc]
push eax
push 0x10024b28
push 0x10037fc0
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.10025568
jmp 0x10024f2a
push 0
mov dl, 1
mov eax, dword [0x10037cc4]
call fcn.10018e8c
call fcn.1001fda0
push eax
push 0x10024aac
push 0x10037fbc
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.10025568
mov byte [0x10037fc4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10024f69
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.1001252c
lea eax, [ebp - 0x58]
mov edx, dword [0x100165bc]
call fcn.10012f0c
lea eax, [ebp - 0xc]
call fcn.10012508
ret