Function at 0x4362d0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51e048
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
call fcn.005147f0
mov ebx, dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
call ebx
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
call fcn.005147f0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jne 0x436353
or edi, esi
mov dword [esp + 0x28], edi
jmp 0x43636c
xor edi, edi
call fcn.005147f0
mov ecx, eax
mov eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], esi
mov edi, esi
mov dword [esp + 0x3c], edi
cmp edi, 0xffffffff
mov dword [esp + 0x60], 0
jne 0x436397
neg eax
sbb eax, eax
test eax, fcn.004b2590
je 0x436397
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.socket_select_interrupter
call fcn.00436c20
cmp edi, 0xffffffff
mov dword [esp + 0x24], 1
jne 0x4363b4
call fcn.005147f0
mov ecx, 0x2719
mov dword [esp + 0x10], ecx
jmp 0x4363f7
push 0
call ebx
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.005147f0
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jne 0x4363fb
call fcn.005147f0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x40], eax
push str.127.0.0.1
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov word [esp + 0x44], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], eax
push 0x10
push ecx
lea esi, [esp + 0x18]
mov eax, edi
mov word [esp + 0x4a], 0
call fcn.00434530
add esp, 8
cmp eax, 0xffffffff
jne 0x436469
mov edx, dword [esp + 0x10]
neg edx
sbb edx, edx
test edx, fcn.004b2590
je 0x436469
mov eax, esi
push eax
mov ecx, str.socket_select_interrupter
call fcn.00436c20
lea ecx, [esp + 0x40]
push ecx
lea esi, [esp + 0x14]
lea eax, [esp + 0x1c]
mov ecx, edi
call fcn.00434f80
add esp, 4
cmp eax, 0xffffffff
jne 0x4364a2
mov edx, dword [esp + 0x10]
neg edx
sbb edx, edx
test edx, fcn.004b2590
je 0x4364a2
mov eax, esi
push eax
mov ecx, str.socket_select_interrupter
call fcn.00436c20
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x44], eax
push closesocket
lea esi, [esp + 0x14]
mov eax, edi
call fcn.00434860
add esp, 4
cmp eax, 0xffffffff
jne 0x4364e6
mov ecx, dword [esp + 0x10]
neg ecx
sbb ecx, ecx
test ecx, fcn.004b2590
je 0x4364e6
mov edx, esi
push edx
mov ecx, str.socket_select_interrupter
call fcn.00436c20
push 0
call ebx
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
call fcn.005147f0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 0xffffffff
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
jne 0x436522
or edi, esi
mov dword [esp + 0x1c], edi
jmp 0x436539
xor edi, edi
call fcn.005147f0
mov ecx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
mov edi, esi
mov dword [esp + 0x38], edi
cmp edi, 0xffffffff
mov byte [esp + 0x60], 1
jne 0x436562
neg ecx
sbb ecx, ecx
test ecx, fcn.004b2590
je 0x436562
lea eax, [esp + 0x10]
push eax
mov ecx, str.socket_select_interrupter
call fcn.00436c20
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x44]
push edx
lea esi, [esp + 0x18]
mov eax, edi
call fcn.00434740
add esp, 8
cmp eax, 0xffffffff
jne 0x43659b
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
test eax, fcn.004b2590
je 0x43659b
mov ecx, esi
push ecx
mov ecx, str.socket_select_interrupter
call fcn.00436c20
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x10]
call fcn.004343b0
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
mov byte [esp + 0x60], 2
jne 0x4365d3
mov edx, dword [esp + 0x10]
neg edx
sbb edx, edx
test edx, fcn.004b2590
je 0x4365d3
mov eax, esi
push eax
mov ecx, str.socket_select_interrupter
call fcn.00436c20
cmp edi, 0xffffffff
mov dword [esp + 0x2c], 1
jne 0x4365fa
call fcn.005147f0
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2719
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x43664b
push 0
call ebx
lea ecx, [esp + 0x2c]
push ecx
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.005147f0
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x30], eax
call esi
test edi, edi
mov edx, dword [esp + 0x30]
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jl 0x436647
call fcn.005147f0
xor ecx, ecx
test edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
je 0x436666
mov edi, dword [esp + 0x1c]
neg ecx
sbb ecx, ecx
test ecx, fcn.004b2590
je 0x43666a
lea eax, [esp + 0x10]
push eax
mov ecx, str.socket_select_interrupter
call fcn.00436c20
mov edi, dword [esp + 0x1c]
cmp edi, 0xffffffff
mov dword [esp + 0x24], 1
jne 0x43667e
call fcn.005147f0
jmp 0x4366aa
push 0
call ebx
push 4
lea ecx, [esp + 0x28]
push ecx
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.005147f0
call esi
test edi, edi
jne 0x4366a6
call fcn.005147f0
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x2c], 1
jne 0x4366cd
call fcn.005147f0
mov ecx, 0x2719
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x43671c
push 0
call ebx
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.005147f0
mov dword [esp + 0x30], eax
call esi
test edi, edi
mov edx, dword [esp + 0x30]
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jl 0x436718
call fcn.005147f0
xor ecx, ecx
test edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
je 0x436737
mov edi, dword [esp + 0x1c]
neg ecx
sbb ecx, ecx
test ecx, fcn.004b2590
je 0x43673b
lea eax, [esp + 0x10]
push eax
mov ecx, str.socket_select_interrupter
call fcn.00436c20
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x24], 1
je 0x436771
push 0
call ebx
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x28]
push ecx
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.005147f0
call esi
test ebx, ebx
jne 0x436776
call fcn.005147f0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x28]
cmp edi, 0xffffffff
mov dword [eax], ecx
mov dword [esp + 0x60], 0xffffffff
je 0x4367bf
mov dword [esp + 0x10], 0
call fcn.005147f0
lea edx, [esp + 0x23]
mov dword [esp + 0x14], eax
push 1
push edx
lea esi, [esp + 0x18]
mov eax, edi
mov byte [esp + 0x2b], 0
call fcn.004345a0
add esp, 8
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00515015
mov esp, ebp
pop ebp
ret 4