Function at 0x7a1230
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 0xc]
add edx, 4
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.007e5162
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 4], edx
mov dword [ebp - 0x28], 0xffffffff
mov eax, 1
test eax, eax
je 0x7a12e4
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
lea edx, [ebp - 0x28]
push edx
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.007a0d10
add esp, 0x14
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x7a12d1
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x74]
push edx
call fcn.007a42a0
add esp, 0xc
push eax
mov ecx, dword [ebp + 8]
call fcn.007a42e0
mov eax, dword [ebp + 8]
jmp 0x7a1660
cmp dword [ebp - 0x3c], 0
jne 0x7a12d9
jmp 0x7a12e4
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
jmp 0x7a126c
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x18
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
add eax, 0xf8
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x7a135d
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x5c], 5
jbe 0x7a135d
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x88], 0
je 0x7a135d
push 0x40
push 0x3000
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x7a13a3
mov dword [0x8703b0], 2
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x84]
push ecx
call fcn.007a42a0
add esp, 0xc
push eax
mov ecx, dword [ebp + 8]
call fcn.007a42e0
mov eax, dword [ebp + 8]
jmp 0x7a1660
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.007f2850
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 2]
imul edx, edx, 0x28
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jae 0x7a1406
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
call fcn.007f2850
add esp, 0xc
mov ecx, dword [ebp - 0x20]
add ecx, 0x28
mov dword [ebp - 0x20], ecx
jmp 0x7a13d0
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x14]
je 0x7a148a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x88]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x8c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.007a1670
add esp, 0x10
movzx edx, al
test edx, edx
jne 0x7a148a
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x8c], 0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x94]
push edx
call fcn.007a42a0
add esp, 0xc
push eax
mov ecx, dword [ebp + 8]
call fcn.007a42e0
mov eax, dword [ebp + 8]
jmp 0x7a1660
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x68]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.007a17c0
add esp, 8
movzx eax, al
test eax, eax
jne 0x7a14e6
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0xa4]
push eax
call fcn.007a42a0
add esp, 0xc
push eax
mov ecx, dword [ebp + 8]
call fcn.007a42e0
mov eax, dword [ebp + 8]
jmp 0x7a1660
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x10]
jae 0x7a1619
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 0x4e], 0
mov byte [ebp - 0x5d], 0
mov byte [ebp - 0x4d], 0
mov edx, dword [ebp - 0x58]
and edx, 0x20000020
je 0x7a151c
mov byte [ebp - 0x4d], 1
mov eax, dword [ebp - 0x58]
and eax, 0x40000000
je 0x7a152a
mov byte [ebp - 0x4e], 1
mov ecx, dword [ebp - 0x58]
and ecx, 0x80000000
je 0x7a1539
mov byte [ebp - 0x5d], 1
mov dword [ebp - 0x4c], 1
movzx edx, byte [ebp - 0x4d]
test edx, edx
je 0x7a1573
movzx eax, byte [ebp - 0x5d]
test eax, eax
je 0x7a1559
mov dword [ebp - 0x4c], 0x40
jmp 0x7a1571
movzx ecx, byte [ebp - 0x4e]
test ecx, ecx
je 0x7a156a
mov dword [ebp - 0x4c], 0x20
jmp 0x7a1571
mov dword [ebp - 0x4c], 0x10
jmp 0x7a1593
movzx edx, byte [ebp - 0x4e]
test edx, edx
je 0x7a1593
movzx eax, byte [ebp - 0x5d]
test eax, eax
je 0x7a158c
mov dword [ebp - 0x4c], 4
jmp 0x7a1593
mov dword [ebp - 0x4c], 2
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0xc]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x7a160b
mov dword [0x8703b0], 4
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xac]
push ecx
lea edx, [ebp - 0xb4]
push edx
call fcn.007a42a0
add esp, 0xc
push eax
mov ecx, dword [ebp + 8]
call fcn.007a42e0
mov eax, dword [ebp + 8]
jmp 0x7a1660
mov eax, dword [ebp - 0x20]
add eax, 0x28
mov dword [ebp - 0x20], eax
jmp 0x7a14ec
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x10]
mov dword [0x8703a8], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.007f2f6b
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [0x8703a4], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.007a4320
add esp, 0xc
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret