Function at 0x43f2e0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dc532
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x50e018]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov eax, dword [0x50e018]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x34]
xor eax, eax
mov ebx, edx
cmp esi, eax
jne 0x43f339
mov dword [ebx + 8], 2
jmp 0x43f8eb
mov edx, 0xf
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], eax
mov byte [esp + 0x5c], al
mov dword [esp + 0x238], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], eax
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x60]
push ecx
sub esp, 0x1c
mov byte [esp + 0x25c], 1
mov ecx, esp
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, esi
lea edx, [eax + 1]
mov dword [esp + 0x44], esp
mov byte [ecx], 0
mov dword [esp + 0x3c], edx
jmp 0x43f390
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43f390
sub eax, dword [esp + 0x3c]
push eax
push esi
call fcn.00405360
lea edx, [esp + 0x40]
lea ecx, [esp + 0x64]
call fcn.0043e6f0
xor esi, esi
add esp, 0x24
cmp eax, esi
jne 0x43f404
mov edi, 0x10
mov dword [ebx + 8], 4
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [esp + 0x54], edi
jb 0x43f3da
mov eax, dword [esp + 0x40]
push eax
call ebx
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], esi
mov byte [esp + 0x40], 0
cmp dword [esp + 0x70], edi
jb 0x43f8eb
mov ecx, dword [esp + 0x5c]
push ecx
call ebx
add esp, 4
jmp 0x43f8eb
cmp dword [esp + 0x18], 3
je 0x43f457
mov edi, 0x10
mov dword [ebx + 8], 5
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [esp + 0x54], edi
jb 0x43f42d
mov edx, dword [esp + 0x40]
push edx
call ebx
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], esi
mov byte [esp + 0x40], 0
cmp dword [esp + 0x70], edi
jb 0x43f8eb
mov eax, dword [esp + 0x5c]
push eax
call ebx
add esp, 4
jmp 0x43f8eb
lea ecx, [esp + 0x94]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, esi
je 0x43f47a
mov dword [ebx + 8], 1
jmp 0x43f8d9
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
cmp dword [edi + 0x38], esi
je 0x43f4a2
lea esi, [esp + 0x24]
call fcn.00450f50
xor esi, esi
mov eax, dword [edi + 4]
cmp eax, esi
je 0x43f50d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00405490
call fcn.00460790
add esp, 0x1c
test al, al
je 0x43f50d
mov eax, dword [edi + 4]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f4d0
sub eax, edx
inc eax
push eax
call fcn.004a64f8
mov esi, eax
mov dword [ebx + 4], esi
mov eax, dword [edi + 4]
mov ecx, eax
lea edx, [ecx + 1]
add esp, 4
mov dword [esp + 0x18], edx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x43f4f4
sub ecx, dword [esp + 0x18]
inc ecx
push ecx
push eax
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x43f58c
push esi
sub esp, 0x1c
lea eax, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.00402a60
mov ecx, esi
lea edx, [esp + 0x98]
call fcn.0045cd40
add esp, 0x20
mov byte [esp + 0x238], 2
mov eax, dword [esp + 0x88]
test eax, eax
je 0x43f8c3
inc eax
push eax
call fcn.004a64f8
mov ecx, dword [esp + 0x7c]
add esp, 4
cmp dword [esp + 0x8c], 0x10
mov dword [ebx + 4], eax
jae 0x43f568
lea ecx, [esp + 0x78]
mov edx, dword [esp + 0x88]
inc edx
push edx
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0x78]
mov byte [esp + 0x238], 1
call fcn.004054e0
cmp dword [edi + 0x38], 0
je 0x43f5a8
lea esi, [esp + 0x24]
call fcn.00450f80
push edx
push eax
call fcn.0043fcb0
add esp, 8
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 4]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00405490
call fcn.00460e10
add esp, 0x1c
test al, al
je 0x43f5ce
push 0
push 1
push 2
jmp 0x43f5f2
mov edx, dword [ebx + 4]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00405490
call fcn.00460d30
add esp, 0x1c
test al, al
je 0x43f601
push 0
push 1
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x43f613
mov dword [ebx + 8], 3
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x43f8d9
cmp dword [edi + 0x38], 0
je 0x43f622
lea esi, [esp + 0x24]
call fcn.00450f50
cmp dword [edi + 8], 0
je 0x43f632
movzx esi, word [edi + 8]
mov dword [esp + 0x1c], esi
jmp 0x43f636
mov esi, dword [esp + 0x1c]
mov eax, dword [edi + 0x18]
mov edx, dword [ebx + 4]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.00405490
mov eax, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.0043d920
add esp, 0x24
test eax, eax
je 0x43f67c
mov dword [ebx + 8], 7
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x43f8d9
cmp dword [edi + 0x38], 0
je 0x43f69c
lea esi, [esp + 0x24]
call fcn.00450f80
push edx
push eax
call fcn.0043fcb0
mov esi, dword [esp + 0x24]
add esp, 8
mov dword [ebx + 0x20], eax
cmp si, 0x50
je 0x43f6d7
movzx edx, si
push edx
lea esi, [esp + 0x7c]
call fcn.0042fdf0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x244], 3
call fcn.0040e640
mov ecx, esi
mov byte [esp + 0x238], 1
call fcn.004054e0
cmp dword [edi + 0x38], 0
je 0x43f6e6
lea esi, [esp + 0x24]
call fcn.00450f50
cmp dword [esp + 0x54], 0x10
mov esi, dword [esp + 0x40]
jae 0x43f6f5
lea esi, [esp + 0x40]
lea eax, [esp + 0x18]
push eax
call fcn.0043f920
mov byte [esp + 0x238], 4
cmp dword [esp + 0x70], 0x10
mov esi, dword [esp + 0x5c]
jae 0x43f716
lea esi, [esp + 0x5c]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0043f920
mov byte [esp + 0x238], 5
mov edx, dword [edi + 0x2c]
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x30]
push edx
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x30]
call fcn.0043dba0
mov esi, eax
add esp, 0x14
lea eax, [esp + 0x1c]
call fcn.00435100
lea eax, [esp + 0x18]
mov byte [esp + 0x238], 1
call fcn.00435100
test esi, esi
je 0x43f778
mov dword [ebx + 8], 8
jmp 0x43f666
cmp dword [edi + 0x38], 0
je 0x43f795
lea esi, [esp + 0x24]
call fcn.00450f80
mov dword [ebx + 0x24], eax
cmp dword [edi + 0x38], 0
je 0x43f795
call fcn.00450f50
mov edx, dword [edi + 0x1c]
mov esi, dword [esp + 0x14]
push edx
mov ecx, esi
call fcn.0043dea0
add esp, 4
test eax, eax
je 0x43f7c4
push esi
mov dword [ebx + 8], 9
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x43f8d9
cmp dword [edi + 0x38], 0
je 0x43f7e0
lea esi, [esp + 0x24]
call fcn.00450f80
push edx
push eax
call fcn.0043fcb0
add esp, 8
mov dword [ebx + 0x28], eax
cmp dword [edi + 0xc], 1
je 0x43f883
cmp dword [edi + 0x38], 0
je 0x43f7f9
lea esi, [esp + 0x24]
call fcn.00450f50
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 0x14]
push 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0x1006
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
push 0xffff
push ecx
mov dword [esp + 0x34], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x43f85b
push esi
lea eax, [ebx + 0x18]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
lea edx, [ebx + 0x14]
lea ecx, [ebx + 0xc]
lea esi, [ebx + 0x10]
push eax
call fcn.0043df10
add esp, 0x14
test eax, eax
je 0x43f867
mov dword [ebx + 8], 0xa
jmp 0x43f666
cmp dword [edi + 0x38], 0
je 0x43f883
lea esi, [esp + 0x24]
call fcn.00450f80
push edx
push eax
call fcn.0043fcb0
add esp, 8
mov dword [ebx + 0x2c], eax
cmp dword [ebx + 0xc], 0
jbe 0x43f899
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x43f899
push ebx
call fcn.0043e1f0
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp + 0x40]
call fcn.004054e0
lea ecx, [esp + 0x5c]
call fcn.004054e0
mov eax, 1
jmp 0x43f8ed
mov dword [ebx + 8], 6
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp + 0x78]
call fcn.004054e0
lea ecx, [esp + 0x40]
call fcn.004054e0
lea ecx, [esp + 0x5c]
call fcn.004054e0
xor eax, eax
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004a665a
mov esp, ebp
pop ebp
ret