Function at 0x41423c
Capabilities:
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe08
push esi
push edi
mov eax, 0x502800
call fcn.004e1300
mov dword [ebp - 0x24], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004f419c
inc dword [ebp - 0x24]
mov word [ebp - 0x30], 8
mov esi, 0x4fdd2c
lea edi, [ebp - 0x1f8]
mov ecx, 0x64
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1f8]
push eax
push 1
call sub.WSOCK32.DLL_WSAStartup
mov dword [ebp - 0x4c], eax
xor edx, edx
mov dword [ebp - 0x64], edx
mov byte [ebp - 0x65], 1
mov word [ebp - 0x30], 0x14
xor ecx, ecx
mov dword [ebp - 4], ecx
inc dword [ebp - 0x24]
mov word [ebp - 0x30], 8
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x414350
mov word [ebp - 0x30], 0x20
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x4c]
call fcn.004f4280
mov edx, eax
inc dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
inc dword [ebp - 0x24]
mov eax, 0x4fe828
call fcn.004f486c
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.004f4338
mov eax, dword [ebp + 8]
mov word [ebp - 0x30], 0x2c
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004f4308
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004f4308
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004f4308
dec dword [ebp - 0x24]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004f4308
pop eax
mov word [ebp - 0x30], 0x20
inc dword [ebp - 0x24]
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x4145cb
lea ecx, [ebp - 0x60]
push ecx
lea eax, [ebp - 0x5c]
push eax
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x54]
push ecx
push 0x4fe83e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x414371
mov edx, dword [ebp + 0xc]
jmp 0x414376
mov edx, 0x4fe84a
push edx
call fcn.004e4e84
add esp, 0x18
cmp eax, 4
je 0x414388
mov byte [ebp - 0x65], 0
mov al, byte [ebp - 0x65]
test al, al
je 0x4143d9
mov ecx, dword [ebp - 0x54]
test ecx, ecx
jl 0x4143d5
mov eax, dword [ebp - 0x54]
cmp eax, 0xff
jg 0x4143d5
mov edx, dword [ebp - 0x58]
test edx, edx
jl 0x4143d5
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xff
jg 0x4143d5
mov eax, dword [ebp - 0x5c]
test eax, eax
jl 0x4143d5
mov edx, dword [ebp - 0x5c]
cmp edx, 0xff
jg 0x4143d5
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jl 0x4143d5
mov eax, dword [ebp - 0x60]
cmp eax, 0xff
jle 0x4143d9
mov byte [ebp - 0x65], 0
mov dl, byte [ebp - 0x65]
test dl, dl
je 0x41440d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4143ec
mov eax, dword [ebp + 0xc]
jmp 0x4143f1
mov eax, 0x4fe84b
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebp - 0x50], eax
push dword [ebp + 0x10]
push 4
lea edx, [ebp - 0x50]
push edx
call sub.WSOCK32.DLL_gethostbyaddr
mov dword [ebp - 0x44], eax
jmp 0x414427
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x414419
mov eax, dword [ebp + 0xc]
jmp 0x41441e
mov eax, 0x4fe84c
push eax
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x44], eax
call sub.WSOCK32.DLL_WSACleanup
mov edx, dword [ebp - 0x44]
test edx, edx
jne 0x4144b1
mov word [ebp - 0x30], 0x38
call sub.WSOCK32.DLL_WSAGetLastError
push eax
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x10]
push eax
inc dword [ebp - 0x24]
call fcn.0041413c
add esp, 8
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.004f4338
mov eax, dword [ebp + 8]
mov word [ebp - 0x30], 0x44
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004f4308
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004f4308
dec dword [ebp - 0x24]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004f4308
pop eax
mov word [ebp - 0x30], 0x38
inc dword [ebp - 0x24]
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x4145cb
mov word [ebp - 0x30], 0x50
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x44]
mov edx, dword [edx]
call fcn.004f4164
mov edx, eax
inc dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.004f4338
dec dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004f4308
mov cl, byte [ebp + 0x14]
test cl, cl
je 0x41457c
jmp 0x414568
push 4
mov eax, dword [ebp - 0x64]
inc dword [ebp - 0x64]
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0xc]
push dword [ecx + eax*4]
lea eax, [ebp - 0x48]
push eax
call fcn.004e0e0c
add esp, 0xc
mov word [ebp - 0x30], 0x5c
push dword [ebp - 0x48]
call sub.WSOCK32.DLL_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.004f4164
mov edx, eax
inc dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
inc dword [ebp - 0x24]
mov eax, 0x4fe84d
call fcn.004f486c
lea edx, [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.004f434c
dec dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004f4308
dec dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004f4308
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp - 0x64]
mov ecx, dword [eax + edx*4]
test ecx, ecx
jne 0x4144ee
mov word [ebp - 0x30], 0x68
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004f4338
mov eax, dword [ebp + 8]
mov word [ebp - 0x30], 0x74
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004f4308
dec dword [ebp - 0x24]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004f4308
pop eax
mov word [ebp - 0x30], 0x68
inc dword [ebp - 0x24]
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret