Function at 0x10060250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
mov dword [esp + 0xc], esi
je 0x10060264
mov dword [eax], esi
mov ebp, dword [esp + 0x20]
cmp ebp, esi
je 0x1006026f
mov dword [ebp], esi
mov ebx, dword [esp + 0x24]
cmp ebx, esi
je 0x10060279
mov dword [ebx], esi
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x10060283
mov dword [eax], esi
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x1006028d
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100c2220], eax
je 0x100602a7
pop esi
pop ebp
mov eax, 0x10dd
pop ebx
pop ecx
ret 0x20
mov eax, dword [0x100c2224]
cmp eax, esi
jne 0x10060529
mov ecx, dword [esp + 0x14]
cmp ecx, esi
jne 0x100602c8
pop esi
pop ebp
mov eax, 6
pop ebx
pop ecx
ret 0x20
mov eax, dword [ecx]
cmp eax, esi
jne 0x100602e5
pop esi
mov eax, 6
pop ebp
mov dword [0x100c2224], eax
mov dword [0x100c2228], ecx
pop ebx
pop ecx
ret 0x20
push edi
push esi
push eax
mov dword [esp + 0x2c], esi
call fcn.1005fdf0
mov edi, eax
mov eax, dword [esp + 0x1c]
push 0
push eax
call fcn.1005fdf0
cmp eax, edi
mov dword [esp + 0x1c], eax
jne 0x10060318
cmp dword [0x100c221c], esi
jne 0x100604af
jmp 0x10060489
test ebp, ebp
je 0x1006031f
mov dword [ebp], edi
test ebx, ebx
je 0x10060325
mov dword [ebx], eax
push 0x18
call fcn.10060b8d
add esp, 4
test eax, eax
mov dword [esp + 0x24], eax
jne 0x10060344
mov dword [esp + 0x10], 8
jmp 0x10060489
mov eax, edi
call fcn.1005faf0
mov esi, eax
test esi, esi
jne 0x1006035e
mov dword [esp + 0x10], 8
jmp 0x10060489
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10060368
mov dword [eax], esi
mov ebx, dword [esp + 0x2c]
push ebx
push edi
push esi
mov ebp, edi
call fcn.100756b0
mov eax, ebx
lea ecx, [eax + 5]
add esp, 0xc
cmp eax, ecx
jge 0x100603cc
lea ecx, [esp + 0x20]
push ecx
push 0
push ebp
lea edx, [ebx + esi]
push edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], 0
call fcn.10060830
cmp dword [esp + 0x20], 0
mov ebp, eax
jne 0x100603c8
mov eax, dword [esp + 0x10]
mov ebx, ebp
push eax
sub ebx, edi
call fcn.1005fa30
add esp, 4
test eax, eax
jne 0x100603c8
mov eax, dword [esp + 0x2c]
add eax, 5
cmp ebx, eax
jl 0x10060382
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 5]
cmp ebx, ecx
jge 0x100603ed
cmp dword [0x100c221c], 0
mov dword [esp + 0x10], 9
jne 0x10060493
jmp 0x10060489
cmp ebx, 0x12
jbe 0x100603ff
mov dword [esp + 0x10], 6
jmp 0x10060489
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], edx
lea edx, [esi + 0x17]
lea eax, [ebx + esi]
lea ecx, [ebx + edi]
mov dword [esi + 0x18], ecx
lea ebp, [eax + 5]
mov byte [edx], bl
mov byte [eax], 0xe9
add eax, 1
sub ecx, ebp
mov dword [eax], ecx
push edx
add eax, 4
push eax
call fcn.1005f980
add esp, 8
lea eax, [esp + 0x28]
push eax
push 0x40
push ebx
push edi
mov dword [esp + 0x38], 0
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1006047f
mov ecx, edi
call fcn.1005fd40
mov ebp, eax
test ebp, ebp
je 0x100604dc
cmp word [ebp + 0x1c], 0x6544
je 0x100604dc
lea ecx, [esp + 0x1c]
push ecx
push 0x40
push 0x40
push ebp
mov dword [esp + 0x2c], 0
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100604c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov dword [0x100c2224], edx
test esi, esi
je 0x1006049e
mov eax, esi
call fcn.1005fd10
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100604af
push eax
call fcn.10060bb8
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [0x100c2228], eax
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret 0x20
mov word [ebp + 0x1c], 0x6544
mov word [ebp + 0x1e], 0x6f74
mov word [ebp + 0x20], 0x7275
mov word [ebp + 0x22], 0x2173
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov ecx, dword [0x100c2230]
mov dword [eax + 4], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], edi
mov edx, dword [esp + 0x28]
mov dword [eax + 0x14], edx
mov dword [eax], ecx
mov dword [0x100c2230], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10060518
mov edx, dword [esp + 0x2c]
add edi, edx
mov dword [eax], edi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10060526
sub ebx, dword [esp + 0x2c]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x20