Function at 0xe17110
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push 0x1e
call fcn.00e23770
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0xe1779c
mov dword [ebp - 0x104], 0
lea eax, [ebp - 0x104]
push eax
push 0x40
push 0x1e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebp - 0x11c], pe_nt_image_headers32
mov dword [ebp - 0x11b], 0
mov byte [ebp - 0x110], 0xe9
mov dword [ebp - 0x10f], 0
mov edx, 0x800f
mov word [ebp - 0x100], dx
mov dword [ebp - 0xfe], 0
mov dword [ebp - 0xf8], 0
push 0xec
push 0
lea eax, [ebp - 0xf4]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x124], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x11d], 0
movzx ecx, byte [ebp - 0x11d]
test ecx, ecx
jne 0xe176de
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov dword [ebp - 0x144], edx
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.00e17f20
add esp, 8
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x128]
and edx, 0x1000
je 0xe1721d
jmp 0xe176de
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x144]
sub ecx, dword [ebp + 8]
cmp ecx, 5
jb 0xe172c5
mov dword [ebp - 0x150], 0
mov edx, dword [ebp - 0x124]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0xf8]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x174]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.00e17090
add esp, 0x14
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0x14
jle 0xe172a3
jmp 0xe176de
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], 5
mov byte [ebp - 0x11d], 1
jmp 0xe17674
movzx edx, byte [ebp - 0x13a]
cmp edx, 0xe8
jne 0xe1736b
mov dword [ebp - 0x154], 0
mov eax, dword [ebp - 0x124]
imul eax, eax, 0xc
lea ecx, [ebp + eax - 0xf8]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x178]
push eax
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x108]
push edx
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.00e17000
add esp, 8
push eax
call fcn.00e17090
add esp, 0x14
mov edx, dword [ebp - 0x124]
add edx, 1
mov dword [ebp - 0x124], edx
cmp dword [ebp - 0x124], 0x14
jle 0xe17350
jmp 0xe176de
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], 5
jmp 0xe17674
movzx ecx, byte [ebp - 0x13a]
and ecx, 0xfd
cmp ecx, 0xe9
jne 0xe1748d
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x144]
push eax
call fcn.00e17000
add esp, 8
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00e17020
add esp, 8
movzx eax, al
test eax, eax
je 0xe173f3
mov ecx, dword [ebp - 0x114]
cmp ecx, dword [ebp - 0x158]
jbe 0xe173d6
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x17c], edx
jmp 0xe173e2
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x114], ecx
jmp 0xe17488
mov dword [ebp - 0x15c], 0
mov edx, dword [ebp - 0x124]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0xf8]
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x15c]
push ecx
mov edx, dword [ebp - 0x180]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.00e17090
add esp, 0x14
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0x14
jle 0xe1745b
jmp 0xe176de
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], 5
mov edx, dword [ebp - 0x144]
cmp edx, dword [ebp - 0x114]
sbb eax, eax
add eax, 1
mov byte [ebp - 0x11d], al
jmp 0xe17674
movzx ecx, byte [ebp - 0x13a]
and ecx, 0xf0
cmp ecx, 0x70
je 0xe174c5
movzx edx, byte [ebp - 0x13a]
cmp edx, 0xe3
je 0xe174c5
movzx eax, byte [ebp - 0x139]
and eax, 0xf0
cmp eax, 0x80
jne 0xe175ed
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.00e17000
add esp, 8
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00e17020
add esp, 8
movzx edx, al
test edx, edx
je 0xe17534
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0x160]
jbe 0xe17517
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x184], ecx
jmp 0xe17523
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x184], edx
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x114], eax
jmp 0xe175e8
movzx ecx, byte [ebp - 0x13a]
cmp ecx, 0xe3
jne 0xe17554
mov byte [ebp - 0x11d], 0
jmp 0xe176de
mov dword [ebp - 0x164], 0
mov edx, dword [ebp - 0x124]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0xf8]
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x188]
push edx
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x160]
push edx
call fcn.00e17060
add esp, 0x14
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0x14
jle 0xe175bc
jmp 0xe176de
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x140]
push edx
call fcn.00e170c0
add esp, 8
lea eax, [ebp - 0x100]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], 6
jmp 0xe17674
movzx ecx, byte [ebp - 0x13a]
and ecx, 0xfe
cmp ecx, 0xc2
je 0xe1765d
movzx edx, byte [ebp - 0x13a]
and edx, 0xfd
cmp edx, 0xe9
je 0xe1765d
movzx eax, byte [ebp - 0x138]
and eax, 0xc7
cmp eax, 5
jne 0xe17643
movzx ecx, byte [ebp - 0x13a]
cmp ecx, 0xff
jne 0xe17643
movzx edx, byte [ebp - 0x136]
cmp edx, 4
je 0xe1765d
movzx eax, byte [ebp - 0x13a]
cmp eax, 0xff
jne 0xe17674
movzx ecx, byte [ebp - 0x139]
cmp ecx, 0x25
jne 0xe17674
mov edx, dword [ebp - 0x144]
cmp edx, dword [ebp - 0x114]
sbb eax, eax
add eax, 1
mov byte [ebp - 0x11d], al
mov ecx, dword [ebp - 0x144]
cmp ecx, dword [ebp - 0x114]
jae 0xe1769a
movzx edx, byte [ebp - 0x140]
cmp dword [ebp - 0x14c], edx
je 0xe1769a
mov byte [ebp - 0x11d], 0
jmp 0xe176de
mov eax, dword [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0x148]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x108]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
movzx eax, byte [ebp - 0x140]
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x108]
add ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x108], ecx
jmp 0xe171d3
movzx edx, byte [ebp - 0x11d]
test edx, edx
je 0xe17789
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [ebp - 0x168], 0
jmp 0xe17724
mov edx, dword [ebp - 0x168]
add edx, 1
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x168]
cmp eax, dword [ebp - 0x124]
jge 0xe17787
mov ecx, dword [ebp - 0x168]
imul ecx, ecx, 0xc
mov edx, dword [ebp + ecx - 0xf8]
mov dword [ebp - 0x16c], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x168]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 4]
add edx, dword [ebp + ecx - 0xf0]
mov eax, dword [ebp - 0x16c]
sub eax, edx
mov ecx, dword [ebp - 0x168]
imul ecx, ecx, 0xc
mov edx, dword [ebp + ecx - 0xf4]
mov ecx, dword [ebp - 0x170]
mov dword [ecx + edx], eax
jmp 0xe17715
jmp 0xe1779c
mov edx, dword [ebp - 4]
push edx
call fcn.00e23970
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret