Function at 0xf361c5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 0
je 0xf361d7
cmp dword [ebp + 0x10], 0
jne 0xf361de
xor eax, eax
jmp 0xf3640a
mov dword [ebp - 0x14], 0
jmp 0xf361f0
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, 1
test ecx, ecx
je 0xf36408
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp + 0xc]
cmp dword [eax + edx + 0x10], 0
jne 0xf36222
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp + 0xc]
cmp dword [edx + ecx + 0xc], 0
jne 0xf36222
jmp 0xf36408
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 0xf185e4
mov eax, dword [ebp - 4]
push eax
call fcn.00f3640e
add esp, 8
test eax, eax
je 0xf362c1
push 0x14
push 0xf185f4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00f36478
add esp, 0xc
test eax, eax
je 0xf362c1
push 0x16
push 0xf1860c
mov edx, dword [ebp - 4]
push edx
call fcn.00f36478
add esp, 0xc
test eax, eax
je 0xf362c1
push 0x16
push 0xf18624
mov eax, dword [ebp - 4]
push eax
call fcn.00f36478
add esp, 0xc
test eax, eax
je 0xf362c1
push 0x1d
push 0xf1863c
mov ecx, dword [ebp - 4]
push ecx
call fcn.00f36478
add esp, 0xc
test eax, eax
je 0xf362c1
push 0x12
push 0xf1865c
mov edx, dword [ebp - 4]
push edx
call fcn.00f36478
add esp, 0xc
test eax, eax
jne 0xf36403
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 0xf362ed
mov eax, 0x475
jmp 0xf3640a
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 0xf36311
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, 1
test eax, eax
je 0xf3632a
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
cmp dword [edx + ecx*4], 0
jne 0xf36328
jmp 0xf3632a
jmp 0xf36308
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 0xf36359
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, 1
test edx, edx
je 0xf363ed
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax*4], 0
jne 0xf36374
jmp 0xf363ed
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + edx*4]
and ecx, 0x80000000
test ecx, ecx
je 0xf36389
jmp 0xf36350
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 0xf363ae
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x18
jge 0xf363e8
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x1c
add edx, 0xf17ac0
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.00f3640e
add esp, 8
test eax, eax
jne 0xf363e6
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax*4 + 0xf17d80]
mov dword [edx + ecx*4], eax
jmp 0xf363e8
jmp 0xf363a5
jmp 0xf36350
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 0xf361e7
xor eax, eax
mov esp, ebp
pop ebp
ret