Function at 0x41b090
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
push 0
push 1
mov eax, dword [edi + 0x2c]
mov ebx, dword [edi + 4]
and eax, 0x1000000
neg eax
sbb eax, eax
and eax, 0x15
add eax, 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41b112
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebp
test eax, eax
jg 0x41b0d0
call ebp
jmp 0x41b0da
call ebp
movzx eax, ax
or eax, 0x80070000
mov dword [esi + 0x20], eax
mov dword [esi + 0x38], 0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x41b103
mov eax, dword [eax + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x28]
mov dword [eax + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x41b184
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
jg 0x41b134
call eax
jmp 0x41b13e
call eax
movzx eax, ax
or eax, 0x80070000
mov dword [esi + 0x20], eax
mov dword [esi + 0x38], 0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x41b16e
mov eax, dword [eax + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x28]
push ebp
mov dword [eax + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea ecx, [esi + 0x20]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
test dword [edi + 0x2c], 0x100000
je 0x41b1a9
mov eax, dword [esi + 0x160]
or eax, 1
mov dword [esi + 0x30], eax
push ecx
lea eax, [esp + 0x14]
push eax
push 0x80
push 0x80
push 0
lea eax, [esi + 0x40]
push eax
mov eax, dword [edi + 0xa4]
push ebp
push dword [edi + 0x90]
call eax
test eax, eax
je 0x41b1f0
test dword [edi + 0x2c], 0x40000
je 0x41b252
mov dword [esi + 0x3c], ebp
mov edx, esi
inc dword [edi + 0x3c]
mov ecx, ebx
call fcn.0041ab50
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41b252
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jg 0x41b210
call eax
jmp 0x41b21a
call eax
movzx eax, ax
or eax, 0x80070000
mov edx, esi
mov dword [esi + 0x20], eax
mov ecx, ebx
call fcn.0041ab50
inc dword [edi + 0x3c]
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
test dword [edi + 0x2c], 0x100000
je 0x41b2b4
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 0x160], 0
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0x3c], ebp
inc dword [edi + 0x3c]
test dword [edi + 0x2c], 0x100000
je 0x41b2b4
cmp dword [esi + 0x164], 0xffffffff
lea eax, [esi + 0x164]
jne 0x41b2b4
push 4
push 0xffffffffffffffff
push esi
push 0x41b050
push dword [esi + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x41b2b4
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
test eax, eax
jg 0x41b29b
call ebp
jmp 0x41b2a5
call ebp
movzx eax, ax
or eax, 0x80070000
mov edx, esi
mov dword [esi + 0x20], eax
mov ecx, ebx
call fcn.0041ab50
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret