Function at 0x40e3d4
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], 0
mov eax, 0
sete al
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jne 0x40e4f3
push 0x80000101
push 0
push 0x22
push 1
mov ebx, 0x428fd0
call fcn.0042853b
add esp, 0x10
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40e456
mov eax, 0x535c88
push eax
push 1
mov ebx, 0x4298f0
call fcn.0042853b
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000101
push 0
push 0x22
push 1
mov ebx, 0x428fd0
call fcn.0042853b
add esp, 0x10
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
mov ecx, 3
call fcn.0040106f
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e4b6
push ebx
call fcn.00428529
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40e4c6
push ebx
call fcn.00428529
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40e4d6
push ebx
call fcn.00428529
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e4ea
push ebx
call fcn.00428529
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40e604
push 0x80000101
push 0
push 0x22
push 1
mov ebx, 0x428fd0
call fcn.0042853b
add esp, 0x10
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40e529
mov eax, 0x535c88
push eax
push 1
mov ebx, 0x4298f0
call fcn.0042853b
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000101
push 0
push 0x22
push 1
mov ebx, 0x428fd0
call fcn.0042853b
add esp, 0x10
mov dword [ebp - 0x24], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x40e575
mov eax, 0x535c88
push eax
push 1
mov ebx, 0x4298f0
call fcn.0042853b
add esp, 0x10
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push 0x53a40a
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e5bc
push ebx
call fcn.00428529
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40e5cc
push ebx
call fcn.00428529
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40e5dc
push ebx
call fcn.00428529
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40e5ec
push ebx
call fcn.00428529
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e600
push ebx
call fcn.00428529
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0xc]
push eax
push 0x539aed
push reloc.WS2_32.dll_bind
mov eax, 0xc
call fcn.00428553
cmp dword [ebp - 0x1c], esp
je 0x40e631
push 6
call fcn.00428541
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40ea3a
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x429e10
call fcn.0042853b
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40e673
push ebx
call fcn.00428529
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x100
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push 0
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push dword [ebp - 0xc]
mov eax, 0x26
call fcn.00428553
cmp dword [ebp - 0x1c], esp
je 0x40e6b5
push 6
call fcn.00428541
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e96b
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x428fd0
call fcn.0042853b
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call fcn.00402af2
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e710
push ebx
call fcn.00428529
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x40e89c
fild dword [ebp - 0x14]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x53919e]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.0040139b
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40e74f
mov eax, 0x535c88
push eax
push 2
mov ebx, 0x428ee0
call fcn.0042853b
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
push eax
push dword [ebp - 0x2c]
call fcn.00402af2
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40e792
push ebx
call fcn.00428529
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x40e86b
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40e7af
mov eax, 0x535c88
push eax
push 1
mov ebx, 0x428b20
call fcn.0042853b
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0x1c]
push dword [ebp - 4]
push 1
push 0
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push dword [ebp - 0xc]
mov eax, 0x27
call fcn.00428553
cmp dword [ebp - 0x20], esp
je 0x40e7fc
push 6
call fcn.00428541
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e83a
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov eax, 0xe
call fcn.00428553
cmp dword [ebp - 0x1c], esp
je 0x40e82b
push 6
call fcn.00428541
add esp, 4
mov eax, 2
jmp 0x40ea44
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov eax, 0xe
call fcn.00428553
cmp dword [ebp - 0x1c], esp
je 0x40e85c
push 6
call fcn.00428541
add esp, 4
mov eax, 0xffffffff
jmp 0x40ea44
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov eax, 0xe
call fcn.00428553
cmp dword [ebp - 0x1c], esp
je 0x40e88d
push 6
call fcn.00428541
add esp, 4
mov eax, 0
jmp 0x40ea44
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40e8af
mov eax, 0x535c88
push eax
push 1
mov ebx, 0x428b20
call fcn.0042853b
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0x1c]
push dword [ebp - 4]
push 1
push 0
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push dword [ebp - 0xc]
mov eax, 0x27
call fcn.00428553
cmp dword [ebp - 0x20], esp
je 0x40e8fc
push 6
call fcn.00428541
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e93a
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov eax, 0xe
call fcn.00428553
cmp dword [ebp - 0x1c], esp
je 0x40e92b
push 6
call fcn.00428541
add esp, 4
mov eax, 3
jmp 0x40ea44
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov eax, 0xe
call fcn.00428553
cmp dword [ebp - 0x1c], esp
je 0x40e95c
push 6
call fcn.00428541
add esp, 4
mov eax, 0xfffffffe
jmp 0x40ea44
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40e97e
mov eax, 0x535c88
push eax
push 1
mov ebx, 0x428b20
call fcn.0042853b
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0x1c]
push dword [ebp - 4]
push 1
push 0
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push dword [ebp - 0xc]
mov eax, 0x27
call fcn.00428553
cmp dword [ebp - 0x20], esp
je 0x40e9cb
push 6
call fcn.00428541
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40ea09
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov eax, 0xe
call fcn.00428553
cmp dword [ebp - 0x1c], esp
je 0x40e9fa
push 6
call fcn.00428541
add esp, 4
mov eax, 1
jmp 0x40ea44
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov eax, 0xe
call fcn.00428553
cmp dword [ebp - 0x1c], esp
je 0x40ea2b
push 6
call fcn.00428541
add esp, 4
mov eax, 0xffffffff
jmp 0x40ea44
mov eax, 0xfffffffd
jmp 0x40ea44
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ea55
push ebx
call fcn.00428529
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40ea65
push ebx
call fcn.00428529
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10