Function at 0x565b84
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call fcn.00565f91
push eax
call fcn.00496a86
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.00496a86
mov dword [ebp - 0x14], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fsub qword [0xcae9c5]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0xcaee1e]
fstp qword [ebp - 0x2c]
fild dword [ebp - 0x14]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.0048a26e
push eax
call fcn.00496a86
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0xffffffff
jle 0x565c1b
cmp dword [ebp - 8], 0
jle 0x565c1b
mov eax, 1
jmp 0x565c20
mov eax, 0
test eax, eax
je 0x565f6f
cmp dword [0xcea13e], 0
jne 0x565ca4
mov dword [ebp - 0x14], esp
push 0x40
push 0x1000
push 0x1e
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x565c68
push 6
call fcn.006a30f0
add esp, 4
mov dword [0xcea13e], eax
mov dword [ebp - 0x14], esp
push 0x1e
mov eax, 0xcbb43a
test eax, eax
je 0x565c81
add eax, 8
push eax
push dword [0xcea13e]
call dword [sym.imp.kernel32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x565ca4
push 6
call fcn.006a30f0
add esp, 4
cmp dword [ebp + 0x18], 0
je 0x565d04
lea eax, [ebp - 4]
push eax
call fcn.00565fb8
mov dword [ebp - 0x14], eax
push 0xcbb460
push dword [ebp - 0x14]
push 0xcbb46a
mov ecx, 3
call fcn.00492be6
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x565ce7
push ebx
call fcn.006a30d8
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x565cfb
push ebx
call fcn.006a30d8
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
jmp 0x565d97
fild dword [ebp + 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0xcaee1e]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.0048a26e
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
call fcn.00566007
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
call fcn.00565fb8
mov dword [ebp - 0x18], eax
push 0xcbb460
push dword [ebp - 0x18]
push 0xcbb482
push dword [ebp - 0x14]
push 0xcbb495
mov ecx, 5
call fcn.00492be6
add esp, 0x14
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x565d6f
push ebx
call fcn.006a30d8
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x565d7f
push ebx
call fcn.006a30d8
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x565d93
push ebx
call fcn.006a30d8
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x565e12
fild dword [ebp + 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0xcaee1e]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.0048a26e
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00565fb8
mov dword [ebp - 0x14], eax
push 0xcbb4a1
push dword [ebp - 0x14]
push 0xcbb4bd
push dword [ebp - 0xc]
mov ecx, 4
call fcn.00492be6
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x565dfa
push ebx
call fcn.006a30d8
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x565e0e
push ebx
call fcn.006a30d8
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x565e4c
push 0xcbb4c6
push dword [ebp - 0xc]
mov ecx, 2
call fcn.00492be6
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x565e48
push ebx
call fcn.006a30d8
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
call fcn.00565fb8
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [0xcea13e]
push 1
mov ebx, 0x198
call fcn.006a48a0
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0xcbb4cf
push dword [ebp - 0x18]
push 0xcb0fa4
push dword [ebp - 0x14]
push 0xcbb4d9
push dword [ebp - 0xc]
mov ecx, 6
call fcn.00492be6
add esp, 0x18
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x565eb2
push ebx
call fcn.006a30d8
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x565ec2
push ebx
call fcn.006a30d8
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x565ed6
push ebx
call fcn.006a30d8
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x565eed
mov eax, 0xcae966
push eax
push 1
mov ebx, 0x194
call fcn.006a4ae0
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], esp
push 0x40
push 0x1000
push dword [ebp - 4]
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x565f34
push 6
call fcn.006a30f0
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x565f47
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x565f67
push 6
call fcn.006a30f0
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x565f79
mov eax, 0
jmp 0x565f79
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x565f8a
push ebx
call fcn.006a30d8
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18