Function at 0x414110
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x1e0
mov eax, dword [esp + 0x1e4]
push ebp
push esi
push edi
xor ebp, ebp
lea edi, [eax + eax*4]
xor esi, esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x18], 0x3e8
shl edi, 2
mov eax, dword [edi + 0x4279d4]
push eax
call sub.WS2_32.dll_gethostbyname
cmp eax, ebp
jne 0x414171
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x276d
jne 0x414169
lea ecx, [esp + 0x5c]
push ecx
push 0x101
call sub.WS2_32.dll_WSAStartup
inc esi
cmp esi, 8
jl 0x414136
jmp 0x41417c
mov edx, dword [edi + 0x4279d0]
jmp 0x414178
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
mov eax, dword [edi + 0x4279cc]
push ebp
cmp eax, ebp
je 0x4142dc
push 2
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4141a9
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1e0
ret 0xc
lea eax, [esp + 0x18]
push 4
push eax
push 0x1006
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x4141d9
push esi
call sub.WS2_32.dll_closesocket
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1e0
ret 0xc
lea ecx, [esp + 0x18]
push 4
push ecx
push 0x1005
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x414209
push esi
call sub.WS2_32.dll_closesocket
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1e0
ret 0xc
mov edx, dword [edi + 0x4279d0]
push 0x7b
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x24], edx
mov word [esp + 0x20], 2
call sub.WS2_32.dll_htons
push 0x10
mov word [esp + 0x22], ax
lea eax, [esp + 0x20]
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
jne 0x41438a
mov cl, byte [0x428fc0]
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], cl
mov ecx, 0xb
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x2c]
mov dword [esp + 0x10], 0x10
push edx
stosb byte es:[edi], al
call fcn.00414000
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
mov eax, dword [esp + 0x10]
push eax
push ecx
push ebp
push 0x30
push edx
push esi
call sub.WS2_32.dll_sendto
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebp
lea edx, [esp + 0x38]
push 0x30
push edx
push esi
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x4142b0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1e0
ret 0xc
mov edi, dword [esp + 0x1f8]
cmp edi, ebp
je 0x4142c3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
mov edi, dword [esp + 0x1f4]
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00414090
push edi
push edi
jmp 0x41437f
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4142fa
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1e0
ret 0xc
push 0x25
mov word [esp + 0x20], 2
call sub.WS2_32.dll_htons
lea ecx, [esp + 0x1c]
push 0x10
push ecx
push esi
mov word [esp + 0x2a], ax
call sub.WS2_32.dll_connect
test eax, eax
jne 0x41438a
xor edi, edi
mov edx, 4
push ebp
sub edx, edi
lea eax, [esp + edi + 0x10]
push edx
push eax
push esi
call sub.WS2_32.dll_recv
cmp eax, 1
jl 0x414340
add edi, eax
cmp edi, 4
jl 0x414320
cmp edi, 4
jne 0x41438a
mov ecx, dword [esp + 0xc]
push ecx
call sub.WS2_32.dll_ntohl
xor edx, edx
push ebp
mov dword [esp + 0x10], eax
add eax, 0x32661280
adc edx, 2
push 0x989680
push edx
push eax
call fcn.00417a50
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1f4]
push eax
mov dword [esp + 0x18], edx
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov ebp, 1
push esi
call sub.WS2_32.dll_closesocket
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x1e0
ret 0xc