Function at 0x1401e50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x15bcfb4], eax
je 0x1401e78
pop edi
mov eax, 0x10dd
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x15bcfb0]
test eax, eax
jne 0x140203d
test edi, edi
jne 0x1401e92
lea eax, [edi + 0x57]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1401eab
cmp dword [esi], 0
jne 0x1401eb6
mov dword [0x15bcfb0], 6
mov dword [0x15bcfbc], esi
pop edi
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0x144c240
push 0x18
call fcn.01428160
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1401ed4
lea esi, [eax + 8]
jmp 0x140201d
mov esi, dword [esi]
test esi, esi
je 0x1401f3d
cmp byte [esi], 0xff
jne 0x1401efd
cmp byte [esi + 1], 0x25
jne 0x1401efd
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.01401110
test al, al
je 0x1401efd
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
cmp byte [esi], 0xeb
jne 0x1401f3d
movsx eax, byte [esi + 1]
add esi, 2
add esi, eax
mov al, byte [esi]
cmp al, 0xff
jne 0x1401f31
cmp byte [esi + 1], 0x25
jne 0x1401f3d
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.01401110
test al, al
je 0x1401f3d
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
jmp 0x1401f3d
cmp al, 0xe9
jne 0x1401f3d
mov eax, dword [esi + 1]
add esi, 5
add esi, eax
cmp byte [edi], 0xff
jne 0x1401f60
cmp byte [edi + 1], 0x25
jne 0x1401f60
mov eax, dword [edi + 2]
mov ecx, edi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.01401110
test al, al
je 0x1401f60
mov edi, dword [ebp - 0xc]
mov edi, dword [edi]
cmp byte [edi], 0xeb
jne 0x1401fa0
movsx eax, byte [edi + 1]
add edi, 2
add edi, eax
mov al, byte [edi]
cmp al, 0xff
jne 0x1401f94
cmp byte [edi + 1], 0x25
jne 0x1401fa0
mov eax, dword [edi + 2]
mov ecx, edi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.01401110
test al, al
je 0x1401fa0
mov edi, dword [ebp - 0xc]
mov edi, dword [edi]
jmp 0x1401fa0
cmp al, 0xe9
jne 0x1401fa0
mov eax, dword [edi + 1]
add edi, 5
add edi, eax
movzx eax, byte [esi + 0x36]
mov ecx, dword [esi + 0x40]
sub ecx, eax
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x140200f
cmp eax, 0x1e
ja 0x140200f
cmp dword [esi + 0x44], edi
jne 0x140200f
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push 0x40
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401fdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140201d
mov eax, dword [ebp - 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
mov dword [ebx + 4], 1
mov eax, dword [ebp - 4]
mov dword [ebx + 0x14], eax
mov eax, dword [0x15bcfc8]
mov dword [ebx], eax
xor eax, eax
mov dword [0x15bcfc8], ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x15bbebc], 0
mov esi, 9
jne 0x1402027
mov dword [0x15bcfb0], esi
test ebx, ebx
je 0x1402032
push 0x18
push ebx
call fcn.014281b5
add esp, 8
mov eax, dword [ebp - 8]
mov dword [0x15bcfbc], eax
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret