Function at 0x40b6d0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x744
mov eax, dword [esp + 0x748]
push esi
push eax
push 0x4959f8
lea ecx, [esp + 0x350]
push str._s_s
push ecx
mov dword [esp + 0x18], 0
call fcn.004361ae
lea edx, [esp + 0x358]
push 0x482234
push edx
call fcn.00436380
mov esi, eax
add esp, 0x18
test esi, esi
mov dword [esp + 0x20], esi
jne 0x40b725
pop esi
add esp, 0x744
ret
mov al, byte [esi + 0xc]
push ebx
push ebp
push edi
test al, 0x10
jne 0x40b9e8
mov ebp, 0x47802c
mov eax, 0x477ff8
mov ebx, ebp
mov dword [esp + 0x1c], eax
sub ebx, 0x100
sub eax, 2
mov dword [esp + 0x18], str.SERV_1
mov dword [esp + 0x10], eax
push esi
lea eax, [esp + 0x158]
push 0x100
push eax
call fcn.004367a7
mov al, byte [esi + 0xc]
add esp, 0xc
test al, 0x10
jne 0x40b9e8
lea edi, [esp + 0x154]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x254]
repne scasb al, byte es:[edi]
not ecx
push edx
lea eax, [esp + 0x38]
lea edx, [esp + 0x58]
dec ecx
push eax
push edx
lea eax, [esp + 0x160]
push ecx
push eax
call fcn.0040b0b0
mov ecx, eax
add esp, 0x14
dec ecx
je 0x40b885
dec ecx
je 0x40b837
dec ecx
jne 0x40b8e4
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x34]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004366e2
mov edx, dword [esp + 0x20]
lea edi, [esp + 0x258]
or ecx, 0xffffffff
add esp, 4
mov word [edx], ax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 2
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
add esi, 2
jmp 0x40b8c4
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x34]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004366e2
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
add esp, 4
mov word [ecx], ax
mov eax, dword [esp + 0x14]
inc eax
add ecx, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
add esi, 2
jmp 0x40b8c4
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x14]
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, 2
add edi, eax
add esi, eax
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x18]
add ebp, 0x100
add edx, 0x100
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edx
add ebx, 0x100
jmp 0x40b8ec
test eax, eax
je 0x40b9cf
mov ecx, dword [0x47bb34]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
jle 0x40b9cf
mov dword [esp + 0x20], 0x476de4
mov edi, str...............
mov esi, dword [sym.imp.WSOCK32.dll_gethostbyname]
push ebx
call esi
test eax, eax
jne 0x40b92b
push ebx
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esp + 0x28], eax
jmp 0x40b936
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x28], edx
push edi
call esi
test eax, eax
jne 0x40b946
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
jmp 0x40b94d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [esp + 0x10]
mov cx, word [edx]
mov edx, dword [esp + 0x20]
cmp cx, word [edx]
jne 0x40b967
cmp dword [esp + 0x28], eax
jne 0x40b967
inc dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov ecx, dword [0x47bb34]
inc eax
add edi, 0x100
add edx, 2
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edx
jl 0x40b911
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40b9cf
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
dec eax
sub edx, 0x100
mov dword [esp + 0x14], eax
mov eax, 2
sub edi, eax
sub esi, eax
sub ebp, 0x100
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edx
sub ebx, 0x100
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
cmp eax, 0x478028
jge 0x40b9e8
test byte [esi + 0xc], 0x10
je 0x40b758
push esi
call fcn.00436200
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x744
ret