Function at 0x40d04c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 8
call fcn.0041adea
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push reloc.WS2_32.dll_connect
push 0
push 0x4f32ec
push 1
mov ebx, 0x41b300
call fcn.0041ade4
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d0c5
push ebx
call fcn.0041adf0
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x4f32f5
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x4f30a9
push dword [ebp - 4]
push 0x4f32f7
mov ecx, 5
call fcn.00404536
add esp, 0x14
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40d104
push ebx
call fcn.0041adf0
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 8]
mov eax, 0x16
call fcn.0041adfc
cmp dword [ebp - 0x18], esp
je 0x40d12a
push 6
call fcn.0041adf6
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40d1d4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40d14a
mov eax, 0x4f2c57
push eax
push 1
mov ebx, 0x41b7f0
call fcn.0041ade4
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x4f32f5
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x4f30a9
push dword [ebp - 0x18]
push 0x4f32f7
mov ecx, 5
call fcn.00404536
add esp, 0x14
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40d197
push ebx
call fcn.0041adf0
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40d1ab
push ebx
call fcn.0041adf0
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 8]
mov eax, 0x16
call fcn.0041adfc
cmp dword [ebp - 0x18], esp
je 0x40d1d1
push 6
call fcn.0041adf6
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 1
jne 0x40d37f
push connect
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4f32ff
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40d211
mov eax, 0x4f2c57
push eax
push 4
mov ebx, 0x41b640
call fcn.0041ade4
add esp, 0x34
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x4f2f8f]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00409152
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40d25e
mov eax, 0x4f2c57
push eax
push 2
mov ebx, 0x41b3a0
call fcn.0041ade4
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40d288
push ebx
call fcn.0041adf0
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4f3301
push 0x80000301
push 0
push 3
push 3
mov ebx, 0x41d0e0
call fcn.0041ade4
add esp, 0x28
mov dword [ebp - 0x18], eax
push 0x4f334a
push dword [ebp - 8]
push 0x4f30a9
push dword [ebp - 4]
push 0x4f2d16
push dword [ebp - 0x18]
mov ecx, 6
call fcn.00404536
add esp, 0x18
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40d2f7
push ebx
call fcn.0041adf0
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40d30b
push ebx
call fcn.0041adf0
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4f3350
push 0x10030
push 0
push dword [ebp - 0x14]
push 3
mov ebx, 0x41eb20
call fcn.0041ade4
add esp, 0x28
test eax, eax
je 0x40d37f
push 0xa0000004
push 0
lea eax, [ebp - 0x10]
push eax
push reloc.WS2_32.dll_connect
push 0
push 0x4f336b
push 0x10030
push 0
push dword [ebp - 0x14]
push 3
mov ebx, 0x41d740
call fcn.0041ade4
add esp, 0x28
mov dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
jmp 0x40d387
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d398
push ebx
call fcn.0041adf0
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40d3a8
push ebx
call fcn.0041adf0
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40d3b8
push ebx
call fcn.0041adf0
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x41eaf0
call fcn.0041ade4
add esp, 0x10
call fcn.0041adf0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc