Function at 0x100137e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b640
mov eax, dword fs:[0]
push eax
mov eax, 0x1078
call fcn.1006a4c0
mov eax, dword [0x1008f0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
jne 0x1001381c
xor eax, eax
jmp 0x10013b32
mov eax, dword [ebp + 0xc]
and eax, 1
je 0x100138cd
push 0x1000
push 0
lea ecx, [ebp - 0x1010]
push ecx
call fcn.10026310
add esp, 0xc
mov dword [ebp - 0x101c], 0
lea edx, [ebp - 0x101c]
push edx
push 0x40
push 0x1000
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 0x1074], eax
cmp dword [ebp - 0x1074], 0
jne 0x10013888
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, 0xc
jmp 0x10013b32
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x1074], eax
cmp dword [ebp - 0x1074], 0
jne 0x100138c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 9
jmp 0x10013b32
jmp 0x100139d7
mov edx, dword [ebp + 0xc]
and edx, 2
je 0x100139d7
push 0x10088268
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1078], eax
cmp dword [ebp - 0x1078], 0
jne 0x10013908
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 0x1b
jmp 0x10013b32
mov dword [ebp - 0x1018], 0
lea edx, [ebp - 0x1018]
push edx
push 0x40
push 0x1000
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 0x1070], eax
cmp dword [ebp - 0x1070], 0
jne 0x10013952
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, 0xc
jmp 0x10013b32
push 0
push 0x1000
mov eax, dword [ebp - 0x1078]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x1070], eax
cmp dword [ebp - 0x1070], 0
jne 0x10013992
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 9
jmp 0x10013b32
lea edx, [ebp - 0x1018]
push edx
mov eax, dword [ebp - 0x1018]
push eax
push 0x1000
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 0x1070], eax
cmp dword [ebp - 0x1070], 0
jne 0x100139d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 0xc
jmp 0x10013b32
mov edx, dword [ebp + 0xc]
and edx, 4
je 0x10013b30
push 0x1c
lea ecx, [ebp - 0x1038]
call fcn.10005020
lea ecx, [ebp - 0x1038]
call fcn.10015ca0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1038]
call fcn.10015da0
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x1038]
call fcn.100160d0
mov dword [ebp - 0x107c], eax
cmp dword [ebp - 0x107c], 0
jne 0x10013a56
mov dword [ebp - 0x1080], 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1038]
call fcn.10015d70
mov eax, dword [ebp - 0x1080]
jmp 0x10013b32
mov dword [ebp - 0x106c], 0
push 0x30
push 0
lea edx, [ebp - 0x1068]
push edx
call fcn.10026310
add esp, 0xc
push 0
push 0x34
lea eax, [ebp - 0x106c]
push eax
mov ecx, dword [ebp - 0x107c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x10013ab7
mov dword [ebp - 0x1084], 0xb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1038]
call fcn.10015d70
mov eax, dword [ebp - 0x1084]
jmp 0x10013b32
push 4
lea ecx, [ebp - 0x1014]
call fcn.10005020
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1014]
call fcn.10013be0
mov ecx, dword [ebp - 0x1058]
push ecx
mov edx, dword [ebp - 0x105c]
push edx
lea ecx, [ebp - 0x1014]
call fcn.10013b50
mov eax, dword [ebp - 0x1068]
push eax
mov ecx, dword [ebp - 0x106c]
push ecx
lea ecx, [ebp - 0x1014]
call fcn.10013b50
mov edx, dword [ebp - 0x1060]
push edx
mov eax, dword [ebp - 0x1064]
push eax
lea ecx, [ebp - 0x1014]
call fcn.10013b50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1038]
call fcn.10015d70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10023850
mov esp, ebp
pop ebp
ret