Function at 0x42fc30
Capabilities:
Connect socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov eax, dword [0x487550]
xor eax, esp
mov dword [esp + 0x14c], eax
mov dx, word [esi + 0x26]
xor eax, eax
mov dword [esp + 0x12e], eax
mov dword [esp + 0x132], eax
mov dword [esp + 0x136], eax
mov word [esp + 0x13a], ax
mov eax, dword [esi + 0x20]
push ebx
mov dword [esp + 0x134], eax
mov eax, dword [esi + 0x34]
xor ebx, ebx
mov ecx, 2
push edi
mov word [esp + 0x134], cx
mov word [esp + 0x136], dx
cmp eax, 0xffffffff
je 0x42fca6
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x34], 0xffffffff
push ebx
mov edi, 1
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x34], eax
cmp eax, 0xffffffff
jne 0x42fcd4
push 0x47de5c
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], str.Cant_create_socket
call fcn.0044f4cb
cmp dword [esi + 0x38], ebx
je 0x42fe51
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call ebx
cmp eax, 0xffffffff
jne 0x42fd1c
push 0x47de10
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], str.Cant_set_not_block
call fcn.0044f4cb
cmp dword [esi + 0x54], 0x10
jb 0x42fd27
mov eax, dword [esi + 0x40]
jmp 0x42fd2a
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
movzx ecx, word [esi + 0x58]
mov edi, eax
xor eax, eax
mov dword [esp + 0x146], eax
mov dword [esp + 0x14a], eax
mov dword [esp + 0x14e], eax
mov word [esp + 0x152], ax
mov eax, 2
push ecx
mov word [esp + 0x148], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x146], ax
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov eax, dword [esi + 0x34]
push 0x10
lea edx, [esp + 0x148]
push edx
push eax
mov dword [esp + 0x154], ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x42fe25
mov ecx, dword [esi + 0x34]
lea edx, [esp + 0x20]
push edx
push 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x30]
push eax
push 0
push 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x42fe0e
mov eax, dword [esi + 0x34]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x1007
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [esp + 0x10], 0
je 0x42fe25
push 0x47de10
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], str.Cant_connect_proxy_server
call fcn.0044f4cb
push 0x47de10
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], str.Cant_connect_proxy_server
call fcn.0044f4cb
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x42fe93
push 0x47de10
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], str.Cant_set_block
call fcn.0044f4cb
mov edi, dword [sym.imp.WS2_32.dll_connect]
push 0x10
lea ecx, [esp + 0x138]
push ecx
push eax
call edi
test eax, eax
je 0x42fe93
mov eax, dword [esi + 0x34]
push 0x10
lea edx, [esp + 0x138]
push edx
push eax
call edi
test eax, eax
je 0x42fe93
push 0x47de5c
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], str.Connect_failed
call fcn.0044f4cb
cmp dword [esi + 0x28], 0xffffffff
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esi + 0x28]
je 0x42feb5
mov edx, dword [esi + 0x34]
push 4
push eax
push 0x1006
push 0xffff
push edx
call edi
cmp dword [esi + 0x2c], 0xffffffff
lea eax, [esi + 0x2c]
je 0x42fed1
push 4
push eax
mov eax, dword [esi + 0x34]
push 0x1005
push 0xffff
push eax
call edi
mov eax, dword [esi + 0x38]
test eax, eax
je 0x42ff30
cmp eax, 1
je 0x42ff0e
add eax, 0xfffffffe
push 0x47de10
cmp eax, 1
ja 0x42fefc
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], str.Proxy_not_support
call fcn.0044f4cb
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], str.Proxy_not_support
call fcn.0044f4cb
mov ecx, esi
call fcn.0042ff50
test al, al
jne 0x42ff30
push 0x47de10
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], str.Proxy_failed
call fcn.0044f4cb
mov ecx, dword [esp + 0x154]
pop edi
pop ebx
xor ecx, esp
call fcn.0044c790
mov esp, ebp
pop ebp
ret