Function at 0x426b56
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
sub esp, 0x480
lea ebp, [esp - 4]
mov eax, dword [0x5636c8]
xor eax, ebp
mov dword [ebp + 0x480], eax
push 0x10
mov eax, 0x4ebbf5
call fcn.00495410
mov esi, ecx
mov eax, dword [esi + 4]
xor edi, edi
add eax, 0x218
mov dword [ebp - 0x14], edi
cmp dword [eax], edi
je 0x426d68
jle 0x426bba
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 0x426bba
mov eax, dword [esi + 4]
inc edi
add ebx, 4
cmp edi, dword [eax + 0x218]
jl 0x426b98
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x218]
cmp edi, ecx
jne 0x426c1f
and dword [ebp - 0x10], 0
test ecx, ecx
jle 0x426c1f
mov edx, pe_nt_image_headers32
mov ebx, dword [eax + 0xc]
xor edi, edi
test ebx, ebx
jbe 0x426bf2
mov ecx, dword [esi + 4]
mov eax, dword [edx + ecx]
add ecx, 0x10
cmp dword [ecx], eax
je 0x426bf2
inc edi
add ecx, 4
cmp edi, ebx
jb 0x426be6
cmp edi, ebx
jne 0x426c0b
cmp ebx, 0x40
jae 0x426c0b
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 - 0x10]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x10]
add edx, 4
cmp ecx, dword [eax + 0x218]
jl 0x426bd4
mov eax, dword [esi + 4]
xor edi, edi
or ebx, 0xffffffff
cmp dword [eax + 0x218], edi
jle 0x426caa
mov dword [ebp - 0x10], pe_nt_image_headers32
mov eax, dword [esi + 4]
lea ecx, [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
push dword [ecx + eax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov eax, dword [esi + 4]
jne 0x426c5e
add dword [ebp - 0x10], 4
inc edi
cmp edi, dword [eax + 0x218]
jl 0x426c36
jmp 0x426caa
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + edi*4 + 0x118]
xor edx, edx
test ecx, ecx
jbe 0x426caa
add eax, 0x10
cmp dword [eax], ebx
je 0x426c7f
inc edx
add eax, 4
cmp edx, ecx
jb 0x426c71
jmp 0x426caa
dec ecx
cmp edx, ecx
jae 0x426ca4
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 0x426c8b
mov eax, dword [esi + 4]
dec dword [eax + 0xc]
lea eax, [ebp - 0x1c]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 0x18], 0x80
mov dword [ebp - 0x1c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 4
lea eax, [ebp - 0x1c]
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
je 0x426d68
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x400
lea eax, [ebp + 0x80]
push eax
push dword [ebp - 0x18]
lea eax, [ebp]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x426d24
mov ecx, dword [esi + 4]
lea eax, [ebp + 0x80]
push eax
call dword [0x502c70]
push 8
call dword [sym.imp.ScCore.dll_public:_static_void____cdecl_ScCore::Heap::operator_new_unsigned_int_]
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x426d40
mov ecx, eax
call fcn.004263a1
jmp 0x426d42
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 - 0x14], eax
call fcn.004260b9
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x480]
xor ecx, ebp
call fcn.00494f67
add ebp, 0x484
leave
ret