Function at 0x462020
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push 0x494
mov eax, 0x4d95fc
call fcn.004c7549
mov esi, ecx
mov eax, dword [esi + 4]
xor edi, edi
mov dword [ebp - 0x498], edi
cmp dword [eax + 0x218], edi
je 0x462257
jle 0x462071
mov ebx, pe_nt_image_headers32
mov eax, dword [esi + 4]
lea ecx, [eax + 0xc]
push ecx
push dword [ebx + eax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x462071
mov eax, dword [esi + 4]
inc edi
add ebx, 4
cmp edi, dword [eax + 0x218]
jl 0x46204f
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x218]
cmp edi, ecx
jne 0x4620df
and dword [ebp - 0x494], 0
test ecx, ecx
jle 0x4620df
mov edx, pe_nt_image_headers32
mov ebx, dword [eax + 0xc]
xor edi, edi
test ebx, ebx
je 0x4620ac
mov ecx, dword [esi + 4]
mov eax, dword [edx + ecx]
add ecx, 0x10
cmp dword [ecx], eax
je 0x4620ac
inc edi
add ecx, 4
cmp edi, ebx
jb 0x4620a0
cmp edi, ebx
jne 0x4620c5
cmp ebx, 0x40
jae 0x4620c5
mov eax, dword [esi + 4]
mov ecx, dword [edx + eax]
mov dword [eax + edi*4 + 0x10], ecx
mov eax, dword [esi + 4]
inc dword [eax + 0xc]
inc dword [ebp - 0x494]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x494]
add edx, 4
cmp ecx, dword [eax + 0x218]
jl 0x46208e
mov eax, dword [esi + 4]
xor edi, edi
or ebx, 0xffffffff
cmp dword [eax + 0x218], edi
jle 0x462177
mov dword [ebp - 0x494], pe_nt_image_headers32
mov eax, dword [esi + 4]
lea ecx, [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x494]
push dword [ecx + eax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov eax, dword [esi + 4]
jne 0x46212b
add dword [ebp - 0x494], 4
inc edi
cmp edi, dword [eax + 0x218]
jl 0x4620fd
jmp 0x462177
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + edi*4 + 0x118]
xor edx, edx
test ecx, ecx
je 0x462177
add eax, 0x10
cmp dword [eax], ebx
je 0x46214c
inc edx
add eax, 4
cmp edx, ecx
jb 0x46213e
jmp 0x462177
dec ecx
cmp edx, ecx
jae 0x462171
lea ecx, [edx*4 + 0x10]
mov eax, dword [esi + 4]
mov edi, dword [ecx + eax + 4]
mov dword [ecx + eax], edi
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
inc edx
add ecx, 4
dec eax
cmp edx, eax
jb 0x462158
mov eax, dword [esi + 4]
dec dword [eax + 0xc]
lea eax, [ebp - 0x4a0]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 0x49c], 0x80
mov dword [ebp - 0x4a0], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 4
lea eax, [ebp - 0x4a0]
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x490]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
je 0x462257
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x49c]
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x46220d
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x410]
push eax
call dword [0x4efd9c]
push 8
call dword [sym.imp.ScCore.dll_public:_static_void____cdecl_ScCore::Heap::operator_new_unsigned_int_]
pop ecx
mov dword [ebp - 0x498], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x46222c
mov ecx, eax
call fcn.004617e5
jmp 0x46222e
xor eax, eax
mov ecx, dword [eax + 4]
mov dword [ecx + 0x114], edi
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0x110]
mov edx, dword [eax + 4]
mov dword [edx + 0x110], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x498], eax
call fcn.004614fa
mov eax, dword [ebp - 0x498]
call fcn.004c7593
ret