Function at 0x41a4b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5382f0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x592dc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 1
test ecx, ecx
je 0x41a4f2
mov dword [ecx], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x41a961
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x41a961
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
jne 0x41a630
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a532
mov eax, dword [ebp + 8]
jmp 0x41a96b
mov ecx, dword [ebp + 0x14]
push 4
imul ecx, ecx, 0x3e8
lea edx, [ebp - 0x28]
push edx
push 0x1006
push 0xffff
push esi
mov dword [ebp - 0x28], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.00401330
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00419e50
add esp, 4
push ecx
test al, al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], esp
mov edi, esp
je 0x41a59c
add eax, 0xfffffff0
push eax
call fcn.00401330
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00419f30
jmp 0x41a5b2
add eax, 0xfffffff0
push eax
call fcn.00401330
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00419e00
add esp, 4
test eax, eax
jne 0x41a5e2
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41a5c6
mov dword [eax], 2
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp + 8]
call fcn.004013a0
lea ecx, [ebp + 0x10]
call fcn.004013a0
jmp 0x41a9ad
mov ecx, 2
push ebx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x20]
push edx
push esi
mov word [ebp - 0x1e], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x41a619
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41a5c6
mov dword [eax], 3
jmp 0x41a5c6
lea ecx, [ebp + 8]
call fcn.004013a0
lea ecx, [ebp + 0x10]
call fcn.004013a0
mov eax, esi
jmp 0x41a9b0
call fcn.0041ec06
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41a64a
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx - 0xc]
mov byte [ebp - 4], 2
test eax, eax
jle 0x41a703
push 0x40
push ecx
call fcn.0051e92d
add esp, 8
test eax, eax
je 0x41a703
sub eax, dword [ebp + 0x10]
mov esi, eax
cmp esi, 0xffffffff
je 0x41a703
push esi
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp + 0x10]
call fcn.00401fa0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00402190
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a6c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
push esi
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp + 0x10]
call fcn.00402380
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 4
call fcn.00402190
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a703
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
mov edi, 0x438
jl 0x41a7ae
push 0x546f10
push eax
call fcn.0051dbe5
add esp, 8
test eax, eax
je 0x41a7ae
sub eax, dword [ebp + 0x10]
mov esi, eax
cmp esi, 0xffffffff
je 0x41a7ae
lea ecx, [esi + 1]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp + 0x10]
call fcn.00402380
mov eax, dword [eax]
push eax
call fcn.0051e144
mov edi, eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a771
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp + 0x10]
call fcn.00401fa0
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.00402190
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a7ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x14]
push ebx
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x547168
call fcn.00401680
mov eax, dword [ebp + 0x10]
push edi
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x34], esp
mov esi, esp
push eax
mov byte [ebp - 4], 6
call fcn.00401330
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 2
call fcn.0041a4b0
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
jne 0x41a875
test ebx, ebx
je 0x41a802
mov dword [ebx], 0x67
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a825
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a848
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a86e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41a9b0
mov ebx, dword [ebp - 0x28]
push ecx
add ebx, 0xfffffff0
mov dword [ebp - 0x34], esp
mov edi, esp
push ebx
call fcn.00401330
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov edi, esp
push eax
mov byte [ebp - 4], 7
call fcn.00401330
add eax, 0x10
add esp, 4
mov dword [edi], eax
push esi
mov byte [ebp - 4], 2
call fcn.00419f70
mov edi, eax
add esp, 0x10
test edi, edi
je 0x41a8f7
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x2c]
cmp edi, 2
jne 0x41a8eb
test eax, eax
je 0x41a8e6
mov dword [eax], 3
or esi, 0xffffffff
jmp 0x41a8f7
test eax, eax
je 0x41a8f5
mov dword [eax], 0x68
xor esi, esi
mov byte [ebp - 4], 1
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41a914
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a937
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a95d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x41a9b0
test ecx, ecx
je 0x41a96b
mov dword [ecx], 1
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a98b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a9ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051d5c4
mov esp, ebp
pop ebp
ret