Function at 0x1401e40
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 [0x15bcfa4], eax
je 0x1401e68
pop edi
mov eax, 0x10dd
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x15bcfa0]
test eax, eax
jne 0x140202d
test edi, edi
jne 0x1401e82
lea eax, [edi + 0x57]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1401e9b
cmp dword [esi], 0
jne 0x1401ea6
mov dword [0x15bcfa0], 6
mov dword [0x15bcfac], esi
pop edi
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0x144c240
push 0x18
call fcn.01428030
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1401ec4
lea esi, [eax + 8]
jmp 0x140200d
mov esi, dword [esi]
test esi, esi
je 0x1401f2d
cmp byte [esi], 0xff
jne 0x1401eed
cmp byte [esi + 1], 0x25
jne 0x1401eed
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.01401110
test al, al
je 0x1401eed
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
cmp byte [esi], 0xeb
jne 0x1401f2d
movsx eax, byte [esi + 1]
add esi, 2
add esi, eax
mov al, byte [esi]
cmp al, 0xff
jne 0x1401f21
cmp byte [esi + 1], 0x25
jne 0x1401f2d
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.01401110
test al, al
je 0x1401f2d
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
jmp 0x1401f2d
cmp al, 0xe9
jne 0x1401f2d
mov eax, dword [esi + 1]
add esi, 5
add esi, eax
cmp byte [edi], 0xff
jne 0x1401f50
cmp byte [edi + 1], 0x25
jne 0x1401f50
mov eax, dword [edi + 2]
mov ecx, edi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.01401110
test al, al
je 0x1401f50
mov edi, dword [ebp - 0xc]
mov edi, dword [edi]
cmp byte [edi], 0xeb
jne 0x1401f90
movsx eax, byte [edi + 1]
add edi, 2
add edi, eax
mov al, byte [edi]
cmp al, 0xff
jne 0x1401f84
cmp byte [edi + 1], 0x25
jne 0x1401f90
mov eax, dword [edi + 2]
mov ecx, edi
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.01401110
test al, al
je 0x1401f90
mov edi, dword [ebp - 0xc]
mov edi, dword [edi]
jmp 0x1401f90
cmp al, 0xe9
jne 0x1401f90
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 0x1401fff
cmp eax, 0x1e
ja 0x1401fff
cmp dword [esi + 0x44], edi
jne 0x1401fff
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 0x1401fcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140200d
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 [0x15bcfb8]
mov dword [ebx], eax
xor eax, eax
mov dword [0x15bcfb8], ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x15bbeac], 0
mov esi, 9
jne 0x1402017
mov dword [0x15bcfa0], esi
test ebx, ebx
je 0x1402022
push 0x18
push ebx
call fcn.01428085
add esp, 8
mov eax, dword [ebp - 8]
mov dword [0x15bcfac], eax
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret