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

Disassembly:
sub esp, 0x1c
mov eax, dword [0x442230]
mov ecx, dword [0x4410cc]
push ebx
mov dword [esp + 0x1c], eax
push ebp
push esi
mov esi, dword [0x4410b4]
mov eax, 0x88a76c3f
imul esi
add edx, esi
sar edx, 0x11
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x197ad0b7
imul ecx
mov ecx, dword [str._r_____r____]
sar edx, 0x10
push edi
add ebx, edx
mov edi, edx
mov eax, 0x3307af59
imul ecx
sar edx, 0x11
shr edi, 0x1f
mov eax, edx
shr eax, 0x1f
add edi, ebx
add eax, edx
sub edi, eax
mov eax, dword [esp + 0x38]
xor ebx, ebx
test eax, eax
mov dword [0x4410c0], edi
mov dword [esp + 0x10], ebx
jle 0x4076f6
mov ecx, dword [0x4410d4]
lea esp, [esp]
test ebx, ebx
je 0x407541
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [0x4410c0]
mov esi, dword [0x4410b4]
mov ecx, dword [0x4410d4]
mov ebx, dword [0x4410d0]
mov eax, 0x61f4f3e1
imul ebx
sar edx, 0x11
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov eax, 0x3307af59
imul dword [0x4410bc]
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
mov ebp, eax
mov eax, 0x1984ece9
imul ebx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
mov dword [0x4410c4], eax
mov eax, 0x88a76c3f
imul esi
add edx, esi
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x61f4f3e1
imul edi
mov ebx, dword [esp + 0x10]
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0x402d6015
imul ecx
sar edx, 0xe
mov ecx, edx
sub edi, esi
add edi, edx
mov edx, dword [esp + 0x30]
shr ecx, 0x1f
add edx, ebx
add ecx, edi
push edx
mov word [esp + 0x1c], 2
mov dword [0x4410c8], ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [str._r_____r____]
mov dword [esp + 0x1c], eax
mov eax, 0x197ad0b7
imul ecx
mov ecx, dword [0x4410cc]
mov eax, ecx
imul eax, eax, 0xa0887
sar edx, 0x10
mov esi, edx
shr esi, 0x1f
add esi, edx
add esi, eax
mov eax, 0x40499437
imul ecx
sar edx, 0xe
mov ecx, edx
push 0
shr ecx, 0x1f
add esi, edx
push 1
add ecx, esi
push 2
mov dword [0x4410cc], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x407712
push 0x10
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40770c
mov ecx, dword [0x4410c8]
mov eax, 0x3307af59
imul ecx
imul ecx, ecx, 0xff4b
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4410c4]
mov edi, eax
mov eax, 0x1984ece9
imul edx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
sub edi, ecx
push esi
mov dword [0x4410d0], edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, dword [0x4410c0]
mov esi, dword [0x4410b4]
mov ecx, dword [0x4410bc]
imul ecx, ecx, 0xa0c15
mov eax, 0x3307af59
imul esi
mov eax, dword [esp + 0x38]
mov ebp, edi
imul ebp, ebp, 0x53a0f
sub ebp, ecx
sar edx, 0x11
mov ecx, edx
shr ecx, 0x1f
add ebp, edx
add ecx, ebp
inc ebx
cmp ebx, eax
mov dword [0x4410d4], ecx
mov dword [esp + 0x10], ebx
jl 0x407520
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
call fcn.00419f5d
add esp, 0x1c
ret
mov edx, dword [esp + 0x34]
mov dword [edx], esi
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.00419f5d
add esp, 0x1c
ret