Function at 0x102461d
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x1024634
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x102463d
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x1024646
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1027678], eax
je 0x102465e
mov eax, 0x10dd
jmp 0x1024811
mov eax, dword [0x102767c]
cmp eax, esi
jne 0x1024811
mov ecx, dword [ebp + 8]
cmp ecx, esi
jne 0x102467a
push 6
pop eax
jmp 0x1024811
mov eax, dword [ecx]
push ebx
push edi
cmp eax, esi
jne 0x1024695
push 6
pop eax
mov dword [0x102767c], eax
mov dword [0x1027680], ecx
jmp 0x102480f
push esi
push eax
xor edi, edi
call fcn.01023f00
push edi
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.01023f00
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x10246c4
cmp dword [0x1027674], esi
jne 0x10247df
jmp 0x10247b9
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10246cd
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x10246d6
mov dword [ecx], eax
push 0x18
call fcn.0101cbdf
mov edi, eax
pop ecx
test edi, edi
jne 0x10246f0
mov dword [ebp - 4], 8
jmp 0x10247b9
mov eax, ebx
call fcn.01024001
mov esi, eax
test esi, esi
je 0x10246e4
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1024706
mov dword [eax], esi
mov eax, ebx
xor ebx, ebx
jmp 0x102470f
mov eax, dword [ebp + 0x18]
and dword [ebp + 0x14], 0
lea ecx, [ebp + 0x14]
push ecx
push 0
push eax
mov dword [ebp - 4], eax
lea eax, [ebx + esi]
push eax
call fcn.01024a87
cmp dword [ebp + 0x14], 0
mov dword [ebp + 0x18], eax
jne 0x1024745
push dword [ebp - 4]
mov ebx, eax
sub ebx, dword [ebp - 8]
call fcn.01023f5d
test eax, eax
jne 0x1024745
cmp ebx, 5
jl 0x102470c
cmp ebx, 5
jge 0x102475c
cmp dword [0x1027674], 0
mov dword [ebp - 4], 9
jne 0x10247c1
jmp 0x10247b9
cmp ebx, 0x12
jbe 0x102476a
mov dword [ebp - 4], 6
jmp 0x10247b9
mov eax, dword [ebp - 8]
lea ecx, [ebx + eax]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], ecx
lea eax, [ebx + esi]
lea edx, [eax + 5]
mov byte [esi + 0x17], bl
mov byte [eax], 0xe9
inc eax
sub ecx, edx
mov dword [eax], ecx
lea ecx, [esi + 0x17]
push ecx
add eax, 4
push eax
call fcn.01023ecd
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push ebx
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10247ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [0x102767c], eax
test esi, esi
je 0x10247d4
call fcn.010241e5
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10247d4
and dword [eax], 0
test edi, edi
je 0x10247df
push edi
call fcn.0101cbfd
pop ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
jmp 0x102468a
mov eax, dword [ebp + 8]
and dword [edi + 4], 0
mov dword [edi + 8], eax
mov dword [edi + 0x10], esi
mov dword [edi + 0xc], ebx
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [0x1027688]
mov dword [edi], eax
mov dword [0x1027688], edi
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 0x14