Function at 0x10013d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1008f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
push 0x21c
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.10026310
add esp, 0xc
mov ecx, 0x208
mov word [ebp - 0x21e], cx
lea edx, [ebp - 8]
push edx
movzx eax, word [ebp - 0x21e]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10013ca0
mov edx, dword [ebp + 8]
push edx
movzx eax, word [ebp - 0x21e]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.10013c40
mov dx, word [ebp - 8]
mov word [ebp - 0x220], dx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push str.LdrLoadDll
push 0x10088574
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10011ec0
add esp, 0x10
movzx edx, al
test edx, edx
jne 0x10013dd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, 6
jmp 0x10013f8d
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x228], edx
mov eax, fcn.10014000
sub eax, 0x10013fa0
mov dword [ebp - 0x238], eax
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x238]
add ecx, 0x22c
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
add ecx, 0x22b
and ecx, 0xfffffff0
mov dword [ebp - 0x23c], ecx
cmp dword [ebp - 0x234], 0
jne 0x10013e4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
mov eax, 0xd
jmp 0x10013f8d
push 0
push 0x21c
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10013e9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push 0x8000
push 0
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 9
jmp 0x10013f8d
push 0
mov ecx, dword [ebp - 0x238]
push ecx
push 0x10013fa0
mov edx, dword [ebp - 0x23c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10013eef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push 0x8000
push 0
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 9
jmp 0x10013f8d
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x14]
and ecx, 0x20
je 0x10013f07
mov byte [ebp - 0x22d], 1
jmp 0x10013f0e
mov byte [ebp - 0x22d], 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x1c]
push eax
movzx ecx, byte [ebp - 0x22d]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10017540
add esp, 0x1c
mov dword [ebp - 0x244], eax
push 0
push 0x21c
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 3
je 0x10013f87
push 0x8000
push 0
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10023850
mov esp, ebp
pop ebp
ret