Function at 0x100024a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
mov eax, ecx
mov ebx, edx
push esi
xor esi, esi
mov dword [ebp - 0x20], eax
push edi
mov edi, dword [eax]
cmp dword [0x100529dc], esi
jne 0x100024e4
push 0x10052af8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x100
push esi
push 0x10052b10
call fcn.10019c70
add esp, 0xc
mov dword [0x100529dc], 1
push 0x10052af8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
call fcn.10001fa0
mov edi, eax
mov ecx, ebx
mov dword [ebp - 0x18], edi
call fcn.10001fa0
mov ebx, eax
xorps xmm0, xmm0
push 0x50
lea eax, [ebp - 0x70]
mov dword [ebp - 0x1c], ebx
push 0
push eax
movlpd qword [ebp - 0x78], xmm0
call fcn.10019c70
add esp, 0xc
lea eax, [ebp - 0x78]
mov ecx, edi
push eax
call fcn.100023e0
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 5
jb 0x1000277c
mov edx, eax
mov ecx, edi
call fcn.10002260
push dword [ebp - 0x6c]
mov ecx, edi
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call fcn.10001fe0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10002777
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], eax
push ecx
push 0x40
push dword [ebp - 4]
mov dword [ebp - 0x10], 0
push edi
push eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10002734
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x6c
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10002714
mov eax, dword [ebp - 4]
lea edx, [esi + 0x2c]
xor ecx, ecx
test eax, eax
je 0x100025de
mov ebx, dword [ebp - 4]
lea eax, [esi + 0x2c]
mov dword [ebp - 0x14], edi
sub edi, eax
mov al, byte [edi + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
mov byte [esi + ecx + 0x4c], al
inc ecx
cmp ecx, ebx
jb 0x100025c3
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
lea edx, [eax + edi]
lea ecx, [esi + eax]
lea eax, [ecx + 0x31]
mov dword [ebp - 0x1c], eax
cmp eax, edx
jbe 0x100025f2
sub eax, edx
jmp 0x100025f7
mov eax, edx
sub eax, dword [ebp - 0x1c]
cmp eax, 0x7fff0000
ja 0x1000260c
lea eax, [ecx + 0x31]
mov byte [ecx + 0x2c], 0xe9
sub edx, eax
mov dword [ecx + 0x2d], edx
jmp 0x1000261a
lea eax, [ecx + 0x32]
mov word [ecx + 0x2c], 0x25ff
mov dword [ecx + 0x2e], eax
mov dword [eax], edx
cmp ebx, edi
jae 0x10002624
mov eax, edi
sub eax, ebx
jmp 0x10002628
mov eax, ebx
sub eax, edi
cmp eax, 0x7fff0000
jbe 0x100026b8
lea edx, [esi + 0xc]
mov ecx, edx
lea eax, [ecx + 5]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jbe 0x10002646
sub eax, ebx
jmp 0x1000264b
mov eax, ebx
sub eax, dword [ebp - 0x14]
cmp eax, 0x7fff0000
ja 0x10002662
mov eax, ebx
mov byte [ecx], 0xe9
sub eax, dword [ebp - 0x14]
mov dword [ecx + 1], eax
add ecx, 5
jmp 0x10002674
mov word [ecx], 0x25ff
lea eax, [ecx + 6]
mov dword [ecx + 2], eax
mov ecx, eax
mov dword [ecx], ebx
add ecx, 4
sub ecx, esi
sub ecx, 0xc
push ecx
push edx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea edx, [edi + 5]
lea ecx, [esi + 0xc]
cmp edx, ecx
jbe 0x10002694
mov eax, edx
sub eax, ecx
jmp 0x10002698
mov eax, ecx
sub eax, edx
cmp eax, 0x7fff0000
ja 0x100026a9
sub ecx, edx
mov byte [edi], 0xe9
mov dword [edi + 1], ecx
jmp 0x100026e9
lea eax, [edi + 6]
mov word [edi], 0x25ff
mov dword [edi + 2], eax
mov dword [eax], ecx
jmp 0x100026e9
lea ecx, [edi + 5]
cmp ecx, ebx
jbe 0x100026c5
mov eax, ecx
sub eax, ebx
jmp 0x100026c9
mov eax, ebx
sub eax, ecx
cmp eax, 0x7fff0000
ja 0x100026dc
mov eax, ebx
mov byte [edi], 0xe9
sub eax, ecx
mov dword [edi + 1], eax
jmp 0x100026e9
lea eax, [edi + 6]
mov word [edi], 0x25ff
mov dword [edi + 2], eax
mov dword [eax], ebx
mov eax, dword [ebp - 4]
push eax
mov dword [esi + 4], eax
lea eax, [esi + 0x2c]
mov dword [esi + 8], ebx
mov ebx, dword [ebp - 8]
push eax
push ebx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 0x6c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ebx, dword [ebp - 4]
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [esi], 0
je 0x10002743
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 0x2c]
mov dword [ecx], eax
jmp 0x10002777
xor eax, eax
cmp dword [eax*4 + 0x10052b10], esi
je 0x10002756
inc eax
cmp eax, 0x40
jb 0x10002745
jmp 0x10002775
push 0x8000
push 0
push esi
mov dword [eax*4 + 0x10052b10], 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
dec dword [0x100529d8]
xor esi, esi
call fcn.100021d0
push 0x10052af8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret