Function at 0x1002e7c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x10], 0
je 0x1002e7dc
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp + 0x14], 0
je 0x1002e7eb
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
cmp dword [ebp + 0x18], 0
je 0x1002e7fa
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10042080], eax
je 0x1002e812
mov eax, 0x10dd
jmp 0x1002eb38
cmp dword [0x10042084], 0
je 0x1002e825
mov eax, dword [0x10042084]
jmp 0x1002eb38
cmp dword [ebp + 8], 0
jne 0x1002e835
mov eax, 6
jmp 0x1002eb38
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1002e85e
mov dword [ebp - 0x10], 6
mov ecx, dword [ebp - 0x10]
mov dword [0x10042084], ecx
mov edx, dword [ebp + 8]
mov dword [0x10042088], edx
mov eax, dword [ebp - 0x10]
jmp 0x1002eb38
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.1002df70
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.1002df70
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jne 0x1002e8ab
cmp dword [0x1004207c], 0
je 0x1002e8a7
jmp 0x1002e8f0
jmp 0x1002e8e7
cmp dword [ebp + 0x14], 0
je 0x1002e8b9
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
cmp dword [ebp + 0x18], 0
je 0x1002e8c7
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
push 0x18
call fcn.1001d3bb
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002e939
mov dword [ebp - 0x10], 8
mov ecx, dword [ebp - 0x10]
mov dword [0x10042084], ecx
cmp dword [ebp - 0x18], 0
je 0x1002e909
mov edx, dword [ebp - 0x18]
push edx
call fcn.1002e2b0
add esp, 4
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x20], 0
je 0x1002e928
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.1001c891
add esp, 4
mov dword [ebp - 0x20], 0
mov edx, dword [ebp + 8]
mov dword [0x10042088], edx
mov eax, dword [ebp - 0x10]
jmp 0x1002eb38
call fcn.1002fbd0
mov eax, dword [ebp - 0xc]
push eax
call fcn.1002eb40
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1002e95c
mov dword [ebp - 0x10], 8
jmp 0x1002e8e7
cmp dword [ebp + 0x10], 0
je 0x1002e96a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 5
jge 0x1002e9c8
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 4]
push ecx
call fcn.1002f3b0
mov dword [ebp - 8], eax
cmp dword [ebp - 0x24], 0
je 0x1002e9ab
jmp 0x1002e9c8
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.1002f2a0
add esp, 4
test eax, eax
je 0x1002e9c6
jmp 0x1002e9c8
jmp 0x1002e977
cmp dword [ebp - 4], 5
jge 0x1002e9ea
mov dword [ebp - 0x10], 9
cmp dword [0x1004207c], 0
je 0x1002e9e5
jmp 0x1002e8f0
jmp 0x1002e8e7
cmp dword [ebp - 4], 0x12
jbe 0x1002e9fc
mov dword [ebp - 0x10], 6
jmp 0x1002e8e7
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0x18]
mov al, byte [ebp - 4]
mov byte [edx + 0x17], al
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 4]
push eax
call fcn.1002f230
add esp, 8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x17
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.1002f270
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0x40
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002ea76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x1002e8e7
mov eax, dword [ebp - 0xc]
push eax
call fcn.1002ee90
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1002eaf5
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0x1c]
cmp edx, 0x6544
je 0x1002eaf5
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 0x40
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002eac5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x1002e8e7
mov edx, 0x6544
mov eax, dword [ebp - 0x14]
mov word [eax + 0x1c], dx
mov ecx, 0x6f74
mov edx, dword [ebp - 0x14]
mov word [edx + 0x1e], cx
mov eax, 0x7275
mov ecx, dword [ebp - 0x14]
mov word [ecx + 0x20], ax
mov edx, 0x2173
mov eax, dword [ebp - 0x14]
mov word [eax + 0x22], dx
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x10042090]
mov dword [ecx], edx
mov eax, dword [ebp - 0x20]
mov dword [0x10042090], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14