Function at 0x414cac
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x10
call fcn.00415932
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
add ebx, 0xc
push ebx
push 0x10
call fcn.00415932
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4234ee
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov eax, dword [0x4238eb]
and eax, 1
xor eax, 1
test eax, eax
je 0x414d37
mov eax, 0
jmp 0x41525a
mov dword [ebp - 0x14], esp
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x414d74
push 6
call fcn.00415938
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x414d8b
mov eax, 0
jmp 0x41525a
call fcn.0041527e
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x414dc9
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x414dbf
push 6
call fcn.00415938
add esp, 4
mov eax, 0
jmp 0x41525a
mov ebx, dword [0x4238fb]
call fcn.004010aa
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x414de9
push 4
call fcn.00415938
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x414dfc
push 1
call fcn.00415938
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [0x423903]
call fcn.004010aa
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x414e2c
push 4
call fcn.00415938
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x414e3f
push 1
call fcn.00415938
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 1
mov ebx, dword [0x4238ff]
call fcn.004010aa
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x414e70
push 4
call fcn.00415938
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x414e83
push 1
call fcn.00415938
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [0x4238f7]
call fcn.004010aa
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x414eb3
push 4
call fcn.00415938
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x414ec6
push 1
call fcn.00415938
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov word [ebx], 2
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_inet_addr]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x414f11
push 6
call fcn.00415938
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
push dword [ebp + 0x14]
call dword [sym.imp.WS2_32.dll_htons]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x414f41
push 6
call fcn.00415938
add esp, 4
mov ebx, dword [ebp - 0x14]
mov word [ebx], ax
mov dword [ebp - 0x14], esp
push 0x10
mov eax, dword [ebp - 0xc]
push eax
push 0x10
call fcn.00415932
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_connect]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x414fbf
push 6
call fcn.00415938
add esp, 4
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.00415bb0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x415016
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x415014
imul eax, dword [edi]
jmp 0x415009
mov ecx, eax
cmp ecx, 8
jle 0x415020
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
call fcn.0041594a
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4150e1
call fcn.00415311
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4150e1
mov ebx, dword [0x4238ff]
call fcn.004010aa
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x415074
push 4
call fcn.00415938
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x415087
push 1
call fcn.00415938
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
push 0
push dword [ebp - 8]
push dword [0x4238ef]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4150c1
push 6
call fcn.00415938
add esp, 4
push 1
push dword [ebp - 0x10]
call fcn.0041547c
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.00402344
mov eax, dword [ebp - 8]
jmp 0x41525a
mov ebx, dword [0x4238ff]
call fcn.004010aa
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x415101
push 4
call fcn.00415938
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x415114
push 1
call fcn.00415938
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x415140
push 6
call fcn.00415938
add esp, 4
mov ebx, dword [0x4238fb]
call fcn.004010aa
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x415160
push 4
call fcn.00415938
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x415173
push 1
call fcn.00415938
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov ebx, dword [0x4238ff]
call fcn.004010aa
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x4151a4
push 4
call fcn.00415938
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4151b7
push 1
call fcn.00415938
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov ebx, dword [0x4238f7]
call fcn.004010aa
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x4151e8
push 4
call fcn.00415938
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4151fb
push 1
call fcn.00415938
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov ebx, dword [0x423903]
call fcn.004010aa
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x41522c
push 4
call fcn.00415938
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x41523f
push 1
call fcn.00415938
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov eax, 0
jmp 0x41525a
push eax
mov ebx, dword [ebp - 0xc]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0041594a
add esp, 4
pop ebx
call fcn.0041594a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10