Function at 0x4183f0
Capabilities:
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve function by parsing pe exports
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x43fb68
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x454654]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x454654]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x98]
push 0
push 1
mov edi, edx
push 2
mov esi, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp], eax
cmp eax, 0xffffffff
je 0x4186d2
mov eax, dword [esp + 0x9c]
push eax
push ebp
call fcn.004189d0
test eax, eax
je 0x4186d2
mov edx, dword [ebp]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x30], 0x1388
call esi
mov ecx, dword [ebp]
push 4
lea eax, [esp + 0x20]
push eax
push 0x1005
push 0xffff
push ecx
call esi
mov edx, dword [esp + 0xa0]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov byte [esp + 0x80], al
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 0x3e8
mov dword [esp + 0x5c], edx
test edi, edi
je 0x418520
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418500
sub eax, edx
cmp eax, 0x20
jne 0x418520
push edi
lea eax, [esp + 0x64]
push 0x21
push eax
call fcn.00429211
add esp, 0xc
jmp 0x418549
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov byte [esp + 0x80], al
mov edi, dword [sym.imp.WS2_32.dll_send]
xor esi, esi
mov eax, dword [ebp]
push 0
mov ecx, 0x34
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x58]
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x418572
add esi, eax
cmp esi, 0x34
jl 0x418551
cmp esi, 0x34
je 0x41857f
test eax, eax
jle 0x4186d2
mov edx, dword [ebp]
push 0
push 0x14
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4186d2
mov eax, 1
cmp dword [esp + 0x30], eax
jne 0x4186d2
cmp dword [esp + 0x34], 0x3e8
jne 0x4186d2
cmp dword [esp + 0x3c], eax
jne 0x4186d2
mov eax, dword [0x45a98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45a98c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x90], 0
test ebx, ebx
jne 0x4185ea
xor eax, eax
jmp 0x4185ff
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4185f0
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
lea eax, [esp + 0x18]
call fcn.004016b0
push 3
push 0x44e548
lea eax, [esp + 0x1c]
push eax
call fcn.004041d0
mov esi, dword [esp + 0x14]
push esi
call fcn.00419db0
add esp, 4
push 0x45bb7c
mov dword [esp + 0x1c], 0x45bb7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [esp + 0x94], 1
call fcn.004194d0
add esp, 4
test eax, eax
je 0x4186fd
mov ecx, dword [eax + 0x10]
test ecx, ecx
ja 0x418693
cmp dword [eax + 0x14], 0
ja 0x418693
push 1
inc ecx
push 0
push eax
mov dword [eax + 0x10], ecx
call fcn.004196a0
add esp, 0xc
push 0x45bb7c
mov edi, eax
mov byte [esp + 0x94], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, edi
mov dword [esp + 0x18], ebx
jmp 0x418732
push 0x45bb7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [esp + 0x14]
mov dword [esp + 0x90], 0xffffffff
call fcn.004015c0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4186d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0042761e
add esp, 0x80
ret 0x10
push 1
push 0
push esi
call fcn.00419410
add esp, 0xc
push 1
push 0
push eax
call fcn.004196a0
add esp, 0xc
push 0x45bb7c
mov edi, eax
mov byte [esp + 0x94], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x18], edi
mov ebx, edi
test ebx, ebx
je 0x41869e
cmp ebx, 0xffffffff
je 0x41869e
push 0x7d014
call fcn.0042842c
mov edi, eax
add esp, 4
test edi, edi
je 0x4187ff
lea ebx, [edi + 0x14]
lea ecx, [ecx]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
push 0x7d000
mov dword [edi + 8], eax
push eax
mov dword [edi + 0xc], eax
push ebx
mov dword [edi + 0x10], eax
call fcn.00429470
add esp, 0xc
push edi
mov esi, ebp
call fcn.004182e0
test eax, eax
je 0x4187cf
mov eax, dword [edi + 0x10]
cmp eax, 0x7d000
ja 0x4187bf
test eax, eax
jbe 0x4187bf
mov eax, dword [edi + 0xc]
mov esi, dword [esp + 0x18]
push eax
push esi
mov dword [esp + 0x50], 0
call fcn.00419900
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
push ebx
push esi
call fcn.004199f0
cmp dword [edi + 0x10], 0
je 0x4187cf
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x418760
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
push 0x7d000
mov dword [edi + 8], eax
push eax
mov dword [edi + 0xc], eax
push ebx
mov dword [edi + 0x10], eax
call fcn.00429470
add esp, 0xc
push edi
call fcn.00427613
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add esp, 4
push ebx
call fcn.00419c80
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x41891e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418816
sub eax, edx
cmp eax, 0x20
jne 0x41891e
mov eax, dword [0x45a98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45a98c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x90], 2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x32
or eax, ecx
jge 0x41886a
mov ecx, 0x32
lea eax, [esp + 0x18]
call fcn.004046b0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push esi
push edi
call fcn.0041a1f0
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00428491
add esp, 0x10
test eax, eax
jl 0x4188c6
cmp eax, dword [esi - 8]
jg 0x4188c6
push ebx
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.004288d8
add esp, 8
test eax, eax
jne 0x418965
mov byte [esp + 0x90], al
cmp dword [esi - 0xc], 0
mov edi, dword [esi - 0x10]
lea eax, [esi - 0x10]
je 0x4188fe
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x4188dc
cmp dword [esi - 8], 0
jge 0x4188d0
push 0x80070057
call fcn.00401960
mov dword [esi - 0xc], 0
mov byte [esi], 0
jmp 0x4188fe
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4188f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
lea esi, [eax + 0x10]
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41891a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
push edi
call fcn.00419db0
add esp, 4
push edi
push esi
call fcn.0041a030
mov dword [esp + 0x20], eax
lea eax, [esi - 0x10]
mov dword [esp + 0x90], 0xffffffff
cmp dword [eax + 4], 0
mov edi, dword [eax]
je 0x4189c1
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x418999
cmp dword [esi - 8], 0
jge 0x418985
push 0x80070057
call fcn.00401960
push edi
call fcn.00419db0
add esp, 4
lea eax, [esp + 0x18]
call fcn.004034f0
lea eax, [esp + 0x14]
call fcn.00411300
jmp 0x4186d2
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
lea eax, [esi - 0x10]
jmp 0x4186b9
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4189af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, eax
lea eax, [esi - 0x10]
jmp 0x4186b9