Function at 0x445530
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.004ac59c
movzx eax, ax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2710
jle 0x44556d
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4457ac
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
call fcn.004ac598
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
dec eax
je 0x4455a4
sub eax, 7
je 0x4457a4
sub eax, 8
je 0x4457a4
sub eax, 0x10
je 0x445794
jmp 0x4457ac
lea eax, [ebp - 0x20]
push eax
push 0x4004667f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.DLL_ioctlsocket_1
inc eax
jne 0x4455d6
call sub.WSOCK32.DLL_WSAGetLastError_1
mov ecx, eax
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4457ac
cmp dword [ebp - 0x20], 0
je 0x4457ac
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
je 0x44562f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x44562f
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0x14]
call fcn.004a5414
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 4]
je 0x44562f
inc dword [ebp - 0x14]
dec dword [ebp - 0x24]
jne 0x445608
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x4c], 0
je 0x445694
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x50]
push eax
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
add ecx, dword [eax + 0x50]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call sym.Project1.exe__Networktcp_TCustomSocket1_ReceiveFrom_qqrp25Networktcp_TCustomSocket1pcio
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x445675
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
add dword [eax + 0x50], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x54]
jne 0x445694
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4c], edx
lea eax, [ebp - 0x20]
push eax
push 0x4004667f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.DLL_ioctlsocket_1
inc eax
jne 0x4456c6
call sub.WSOCK32.DLL_WSAGetLastError_1
mov ecx, eax
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4457ac
cmp dword [ebp - 0x20], 0
je 0x4457ac
mov dl, 1
mov eax, dword [0x4a4258]
call fcn.004b632c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x44578d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
lea eax, [ebp - 0x19]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp byte [ebp - 0x19], 0
jne 0x44571d
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call sym.Project1.exe__Networktcp_TCustomSocket1_ReceiveStreamFrom_qqrp25Networktcp_TCustomSocket1p15Classes_TStreamio
lea eax, [ebp - 0x20]
push eax
push 0x4004667f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.DLL_ioctlsocket_1
inc eax
jne 0x445751
call sub.WSOCK32.DLL_WSAGetLastError_1
mov ecx, eax
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x40]
call fcn.004b6b54
jmp 0x4457ac
cmp dword [ebp - 0x20], 0
jne 0x4456ed
cmp byte [ebp - 0x19], 0
jne 0x445777
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4457ac
mov eax, dword [ebp - 0x18]
call fcn.004b635c
ret
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x4457ac
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x58]
pop ebx
mov esp, ebp
pop ebp
ret