Function at 0x7803b1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 0
je 0x7803c3
cmp dword [ebp + 0x10], 0
jne 0x7803ca
xor eax, eax
jmp 0x7805f6
mov dword [ebp - 0x14], 0
jmp 0x7803dc
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, 1
test ecx, ecx
je 0x7805f4
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp + 0xc]
cmp dword [eax + edx + 0x10], 0
jne 0x78040e
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp + 0xc]
cmp dword [edx + ecx + 0xc], 0
jne 0x78040e
jmp 0x7805f4
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 4], edx
push 0x761ab8
mov eax, dword [ebp - 4]
push eax
call fcn.007805fa
add esp, 8
test eax, eax
je 0x7804ad
push 0x14
push 0x761ac8
mov ecx, dword [ebp - 4]
push ecx
call fcn.00780664
add esp, 0xc
test eax, eax
je 0x7804ad
push 0x16
push 0x761ae0
mov edx, dword [ebp - 4]
push edx
call fcn.00780664
add esp, 0xc
test eax, eax
je 0x7804ad
push 0x16
push 0x761af8
mov eax, dword [ebp - 4]
push eax
call fcn.00780664
add esp, 0xc
test eax, eax
je 0x7804ad
push 0x1d
push 0x761b10
mov ecx, dword [ebp - 4]
push ecx
call fcn.00780664
add esp, 0xc
test eax, eax
je 0x7804ad
push 0x12
push 0x761b30
mov edx, dword [ebp - 4]
push edx
call fcn.00780664
add esp, 0xc
test eax, eax
jne 0x7805ef
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + eax], 0
jne 0x7804d9
mov eax, 0x475
jmp 0x7805f6
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], 0
jmp 0x7804fd
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, 1
test eax, eax
je 0x780516
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
cmp dword [edx + ecx*4], 0
jne 0x780514
jmp 0x780516
jmp 0x7804f4
mov eax, dword [ebp - 0x18]
shl eax, 2
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0xc]
push ecx
push 0x40
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x18], 0
jmp 0x780545
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, 1
test edx, edx
je 0x7805d9
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax*4], 0
jne 0x780560
jmp 0x7805d9
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + edx*4]
and ecx, 0x80000000
test ecx, ecx
je 0x780575
jmp 0x78053c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + edx*4]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 2]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
jmp 0x78059a
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x18
jge 0x7805d4
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x1c
add edx, 0x760ef8
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.007805fa
add esp, 8
test eax, eax
jne 0x7805d2
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax*4 + 0x7611b8]
mov dword [edx + ecx*4], eax
jmp 0x7805d4
jmp 0x780591
jmp 0x78053c
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x7803d3
xor eax, eax
mov esp, ebp
pop ebp
ret