Function at 0x7806df
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 0
je 0x7806f1
cmp dword [ebp + 0x10], 0
jne 0x7806f8
xor eax, eax
jmp 0x78093a
lea eax, [ebp - 0xc]
push eax
push 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x78071a
mov eax, 0x205
jmp 0x78093a
lea eax, [ebp - 0x18]
push eax
push 0x40
push 0x1000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x78073d
mov eax, 0x205
jmp 0x78093a
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
jmp 0x78075d
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x18]
jae 0x780922
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x24], 0x18
jae 0x78086a
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x1c
add eax, 0x760ef8
push eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
push ecx
call fcn.00764042
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x7807bf
cmp dword [ebp - 0x24], 0x18
jb 0x7807b4
jmp 0x7807bf
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
jmp 0x780788
cmp dword [ebp - 4], 0
jne 0x78086a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x20]
mov ax, word [ecx + edx*2]
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
lea ecx, [edx + eax*4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x14], 0
je 0x78080c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx]
mov ecx, dword [ebp - 0x24]
mov dword [ecx*4 + 0x793940], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov byte [eax + edx*8 + 0xe00], 0xe9
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*8 + 0xe05]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx*4 + 0x7611b8]
sub edx, eax
mov dword [ebp - 0x14], edx
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*8 + 0xe01]
push eax
call fcn.00776d3a
add esp, 0xc
mov ecx, dword [ebp - 0x24]
lea edx, [ecx*8 + 0xe00]
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 0x14], 0
je 0x78091d
cmp dword [ebp - 0x28], 1
jae 0x78091d
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x1c
add edx, 0x761198
push edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
push eax
call fcn.00764042
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x7808b6
cmp dword [ebp - 0x28], 1
jb 0x7808ab
jmp 0x7808b6
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
jmp 0x78087e
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x1c
add edx, 0x761198
push edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
push eax
call fcn.00764042
add esp, 8
test eax, eax
jne 0x78091d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x20]
mov cx, word [edx + eax*2]
mov word [ebp - 0x1c], cx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
lea edx, [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax]
mov edx, dword [ebp - 0x28]
mov dword [edx*4 + 0x793a08], ecx
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
jmp 0x780754
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov esp, ebp
pop ebp
ret