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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7818
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x50e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
sub esp, 0x1c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14c], esp
mov ecx, esp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0xc]
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.004059c0
call fcn.00460e10
mov ecx, esp
mov dword [ebp - 0x148], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 0xc]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ebp - 0x141], al
mov byte [ecx], bl
call fcn.004059c0
call fcn.00460d30
add esp, 0x1c
mov byte [ebp - 0x142], al
cmp byte [ebp - 0x141], bl
je 0x43da16
mov eax, 2
push edi
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x148], esp
push 0xffffffffffffffff
mov word [ebp - 0x1e], ax
push ebx
lea edx, [ebp + 0xc]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.004059c0
call fcn.00461330
mov dword [ebp - 0x1c], eax
jmp 0x43da6f
cmp al, bl
je 0x43da72
mov eax, 0x17
push edi
mov word [ebp - 0x3c], ax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x148], esp
push 0xffffffffffffffff
mov word [ebp - 0x3a], ax
push ebx
lea edx, [ebp + 0xc]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.004059c0
lea esi, [ebp - 0x168]
call fcn.00461400
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x30], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x28], edx
add esp, 0x1c
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [ebp - 0x150]
push eax
push 0x8004667e
push esi
mov dword [ebp - 0x150], 1
call edi
cmp eax, 0xffffffff
jne 0x43dab4
cmp dword [ebp + 0x20], 0x10
jb 0x43daac
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
or eax, 0xffffffff
jmp 0x43db7c
cmp byte [ebp - 0x141], bl
je 0x43dac4
push 0x10
lea edx, [ebp - 0x20]
push edx
jmp 0x43dad2
cmp byte [ebp - 0x142], bl
je 0x43dad9
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov eax, dword [ebp + 0x28]
imul eax, eax, 0x3e8
lea ecx, [ebp - 0x158]
push ecx
push ebx
lea edx, [ebp - 0x140]
push edx
push ebx
push ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x140], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x43db31
cmp dword [ebp + 0x20], 0x10
jb 0x43daac
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
or eax, 0xffffffff
jmp 0x43db7c
lea ecx, [ebp - 0x14c]
push ecx
push 0x8004667e
push esi
mov dword [ebp - 0x14c], ebx
call edi
cmp eax, 0xffffffff
jne 0x43db67
cmp dword [ebp + 0x20], 0x10
jb 0x43daac
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
or eax, 0xffffffff
jmp 0x43db7c
cmp dword [ebp + 0x20], 0x10
jb 0x43db7a
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret