Function at 0x10004a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1001d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001e898], eax
je 0x10004a69
pop edi
mov eax, 0x10dd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100087ff
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1001e894]
test eax, eax
jne 0x10004c3a
test edi, edi
jne 0x10004a8d
lea eax, [edi + 0x57]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100087ff
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10004aa6
cmp dword [ebx], 0
jne 0x10004abb
mov dword [0x1001e894], 6
mov dword [0x1001e8a0], ebx
pop edi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100087ff
mov esp, ebp
pop ebp
ret
push esi
push 0x18
call fcn.1000894b
mov esi, dword [ebx]
add esp, 4
mov dword [ebp - 0x10], eax
test esi, esi
je 0x10004b33
cmp byte [esi], 0xff
jne 0x10004af2
cmp byte [esi + 1], 0x25
jne 0x10004af2
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.100039b0
test al, al
je 0x10004af2
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
cmp byte [esi], 0xeb
jne 0x10004b33
movsx eax, byte [esi + 1]
add eax, 2
add esi, eax
mov cl, byte [esi]
lea eax, [esi + 1]
cmp cl, 0xff
jne 0x10004b29
cmp byte [eax], 0x25
jne 0x10004b29
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.100039b0
test al, al
je 0x10004b33
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
jmp 0x10004b33
cmp cl, 0xe9
jne 0x10004b33
add esi, 5
add esi, dword [eax]
cmp byte [edi], 0xff
jne 0x10004b56
cmp byte [edi + 1], 0x25
jne 0x10004b56
mov eax, dword [edi + 2]
mov ecx, edi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.100039b0
test al, al
je 0x10004b56
mov edi, dword [ebp - 0xc]
mov edi, dword [edi]
cmp byte [edi], 0xeb
jne 0x10004b97
movsx eax, byte [edi + 1]
add eax, 2
add edi, eax
mov cl, byte [edi]
lea eax, [edi + 1]
cmp cl, 0xff
jne 0x10004b8d
cmp byte [eax], 0x25
jne 0x10004b8d
mov eax, dword [edi + 2]
mov ecx, edi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.100039b0
test al, al
je 0x10004b97
mov edi, dword [ebp - 0xc]
mov edi, dword [edi]
jmp 0x10004b97
cmp cl, 0xe9
jne 0x10004b97
add edi, 5
add edi, dword [eax]
movzx eax, byte [esi + 0x36]
mov ecx, dword [esi + 0x40]
sub ecx, eax
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x10004c10
cmp eax, 0x1e
ja 0x10004c10
cmp dword [esi + 0x44], edi
jne 0x10004c10
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push 0x40
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10004bd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10004c1e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], ebx
mov dword [ecx + 0x10], esi
mov dword [ecx + 4], 1
mov eax, dword [ebp - 8]
pop esi
mov dword [ecx + 0x14], eax
mov eax, dword [0x1001e8ac]
pop edi
mov dword [ecx], eax
xor eax, eax
mov dword [0x1001e8ac], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100087ff
mov esp, ebp
pop ebp
ret
cmp dword [0x1001e828], 0
mov esi, 9
jne 0x10004c24
mov dword [0x1001e894], esi
push 0x18
push dword [ebp - 0x10]
call fcn.1000892f
add esp, 8
mov dword [0x1001e8a0], ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100087ff
mov esp, ebp
pop ebp
ret