Function at 0x10013240
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b5fd
mov eax, dword fs:[0]
push eax
sub esp, 0x8c4
mov eax, dword [0x1008f0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x8b8], eax
mov dword [ebp - 0x8a8], 0x1438
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x420], 0
jne 0x1001329c
mov edx, dword [ebp - 0x8a8]
or edx, 2
mov dword [ebp - 0x8a8], edx
push 0x10
lea ecx, [ebp - 0x28]
call fcn.10005020
mov eax, dword [ebp - 0x8a8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x418]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.10010740
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10013c00
movzx ecx, al
test ecx, ecx
je 0x10013310
push 0x14
push 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x8b8]
push eax
call fcn.100128f0
add esp, 0x10
mov dword [ebp - 0x8bc], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10010950
mov eax, dword [ebp - 0x8bc]
jmp 0x100137bf
push 0x430
push 0
lea ecx, [ebp - 0x88c]
push ecx
call fcn.10026310
add esp, 0xc
mov dword [ebp - 0x470], 1
mov dword [ebp - 0x46c], 0
push 0x208
lea edx, [ebp - 0x888]
push edx
call fcn.1001e800
add esp, 8
push 0x10088208
push 0x410
lea eax, [ebp - 0x888]
push eax
call fcn.10012690
mov dword [ebp - 0x894], 0
mov dword [ebp - 0x890], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x8b0], ecx
mov ecx, dword [ebp - 0x8b0]
call fcn.10003a80
mov dword [ebp - 0x8a4], eax
mov ecx, dword [ebp - 0x8b0]
call fcn.10010a30
mov dword [ebp - 0x8c0], eax
jmp 0x100133b4
mov edx, dword [ebp - 0x8a4]
add edx, 0xc
mov dword [ebp - 0x8a4], edx
mov eax, dword [ebp - 0x8a4]
cmp eax, dword [ebp - 0x8c0]
je 0x10013788
mov ecx, dword [ebp - 0x8a4]
mov edx, dword [ecx]
mov dword [ebp - 0x8d0], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x8cc], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x8c8], ecx
mov edx, dword [ebp - 0x8d0]
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x890], eax
cmp dword [ebp - 0x890], 0
jne 0x10013420
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 0x894], 0x12
jmp 0x100133a5
mov edx, dword [ebp - 0x890]
push edx
call fcn.1001ea20
add esp, 4
movzx eax, al
test eax, eax
je 0x1001344c
mov ecx, dword [ebp - 0x890]
push ecx
call fcn.1001e950
add esp, 4
movzx edx, al
test edx, edx
jne 0x10013473
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 0x894], 0x15
mov edx, dword [ebp - 0x890]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100133a5
mov dword [ebp - 0x898], 0
push str.GH_Injector___x86.dll
mov eax, dword [ebp - 0x890]
push eax
call fcn.10011da0
add esp, 8
mov dword [ebp - 0x898], eax
cmp dword [ebp - 0x898], 0
jne 0x10013503
mov ecx, dword [ebp - 0x8d0]
mov dword [ebp - 0x474], ecx
lea edx, [ebp - 0x88c]
push edx
call sym.appverifUI.dll_InjectW
mov dword [ebp - 0x8b4], eax
cmp dword [ebp - 0x8b4], 0
jne 0x100134d0
cmp dword [ebp - 0x460], 0
jne 0x100134f7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x8b4]
mov dword [eax], ecx
mov dword [ebp - 0x894], 0x16
mov edx, dword [ebp - 0x890]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100133a5
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x898], eax
mov dword [ebp - 0x45c], 0
lea ecx, [ebp - 0x45c]
push ecx
push 0x10088260
mov edx, dword [ebp - 0x898]
push edx
mov eax, dword [ebp - 0x890]
push eax
call fcn.10011ef0
add esp, 0x10
mov byte [ebp - 0x899], al
movzx ecx, byte [ebp - 0x899]
test ecx, ecx
jne 0x10013572
mov dword [ebp - 0x894], 0x1a
mov edx, dword [ebp - 0x898]
push edx
mov eax, dword [ebp - 0x890]
push eax
call fcn.10010420
add esp, 8
mov ecx, dword [ebp - 0x890]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100133a5
movzx edx, word [ebp - 0x8cc]
mov eax, dword [ebp + 8]
mov dword [eax + 0x428], edx
push 0x40
push 0x3000
push 0x430
push 0
mov ecx, dword [ebp - 0x890]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x8a0], eax
cmp dword [ebp - 0x8a0], 0
jne 0x100135e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov dword [ebp - 0x894], 0x17
mov eax, dword [ebp - 0x898]
push eax
mov ecx, dword [ebp - 0x890]
push ecx
call fcn.10010420
add esp, 8
mov edx, dword [ebp - 0x890]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100133a5
push 0
push 0x430
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x8a0]
push ecx
mov edx, dword [ebp - 0x890]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10013664
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 0x894], 0x18
push 0x8000
push 0
mov edx, dword [ebp - 0x8a0]
push edx
mov eax, dword [ebp - 0x890]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x898]
push ecx
mov edx, dword [ebp - 0x890]
push edx
call fcn.10010420
add esp, 8
mov eax, dword [ebp - 0x890]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100133a5
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x428], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x8a0]
push ecx
mov edx, dword [ebp - 0x45c]
push edx
mov eax, dword [ebp - 0x890]
push eax
call fcn.10017540
add esp, 0x1c
mov dword [ebp - 0x8ac], eax
push 0x430
push 0
lea ecx, [ebp - 0x458]
push ecx
call fcn.10026310
add esp, 0xc
push 0
push 0x430
lea edx, [ebp - 0x458]
push edx
mov eax, dword [ebp - 0x8a0]
push eax
mov ecx, dword [ebp - 0x890]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x8000
push 0
mov edx, dword [ebp - 0x8a0]
push edx
mov eax, dword [ebp - 0x890]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x898]
push ecx
mov edx, dword [ebp - 0x890]
push edx
call fcn.10010420
add esp, 8
mov eax, dword [ebp - 0x890]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x8ac], 0
je 0x10013748
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp - 0x8ac]
mov dword [ebp - 0x894], eax
jmp 0x100133a5
cmp dword [ebp - 0x8ac], 0
jne 0x1001376e
cmp dword [ebp - 0x14], 0
je 0x1001376e
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov dword [ebp - 0x894], 0x1d
jmp 0x100133a5
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 0x894], 0
jmp 0x10013788
mov ecx, dword [ebp - 0x894]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x8b8]
push eax
call fcn.100128f0
add esp, 0x10
mov dword [ebp - 0x8c4], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10010950
mov eax, dword [ebp - 0x8c4]
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