Function at 0x41672b
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x470908
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x489c20]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x489c20]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, edx
mov esi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ebx
call fcn.00416993
test ebx, ebx
jne 0x4167aa
xor eax, eax
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0044eff8
mov esp, ebp
pop ebp
ret 4
push ebx
push 0x47c858
lea eax, [edi + 0x18]
call fcn.00401419
mov ax, word [ebp + 8]
pop ecx
pop ecx
xor esi, esi
push 6
inc esi
push esi
push 2
mov word [edi + 0x1c], ax
mov dword [edi + 0x20], esi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x416782
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
push dword [esp + 0x1c]
call fcn.00417114
pop ecx
mov dword [esp + 0x18], eax
test eax, eax
jne 0x416804
push dword [esp + 0x1c]
call fcn.00416da8
pop ecx
mov dword [esp + 0x18], eax
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x34]
call fcn.00402e35
and dword [esp + 0x190], 0
lea ecx, [esp + 0x164]
push ecx
mov ecx, eax
call fcn.0040c703
pop ecx
push 0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x198], 2
call fcn.004032a5
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x16c]
push eax
lea ecx, [edi + 0x28]
call fcn.0040227d
cmp dword [esp + 0x18], 0
ja 0x41687d
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push esi
lea ecx, [esp + 0x16c]
call fcn.00401fd6
jmp 0x416782
lea eax, [esp + 0x20]
push eax
push 0x8004667e
push dword [esp + 0x1c]
mov dword [esp + 0x2c], esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
call ebx
xor eax, eax
lea edi, [esp + 0x154]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push dword [ebp + 8]
mov word [esp + 0x158], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [esp + 0x14]
mov word [esp + 0x156], ax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x158], eax
push 0x10
lea eax, [esp + 0x158]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x14], eax
call ebx
xor ebx, ebx
cmp dword [esp + 0x14], ebx
jge 0x4168fb
cmp eax, 0x2733
je 0x4168fb
push ebx
jmp 0x41686b
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], 5
lea eax, [esp + 0x28]
push eax
push ebx
lea eax, [esp + 0x54]
push eax
push ebx
push ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], esi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x416936
mov eax, dword [esp + 0x14]
dec dword [esp + 0x14]
test eax, eax
jne 0x41690b
cmp dword [esp + 0x4c], ebx
jne 0x41694d
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.0041738f
pop ecx
pop ecx
jmp 0x4168f5
lea eax, [esp + 0x20]
push eax
push 0x8004667e
push edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x416985
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor edi, edi
push ebx
push esi
lea ecx, [esp + 0x16c]
call fcn.00401fd6
mov eax, edi
jmp 0x416784
mov eax, dword [esp + 0x24]
mov dword [eax + 4], edi
mov dword [eax + 0xc], esi
mov edi, esi
jmp 0x416970