Function at 0x40577d
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push 0xffffffffffffffff
push 0xa
push 0x16010769
push 0x52010619
call fcn.0040a821
add esp, 0x10
test eax, eax
je 0x40599d
push 0
push 0x283fb0e
push 0xffffffffffffffff
push 8
push 0x16010761
push 0x52010619
call fcn.0040a7fd
add esp, 0x18
push dword [0x2979868]
push 0x283fb20
mov ecx, 2
call fcn.004040cc
add esp, 8
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 8
push 0x16010766
push 0x52010619
call fcn.0040a821
add esp, 0x10
mov dword [ebp - 8], eax
push dword [0x29798b0]
push 0x231eab8
push dword [ebp - 8]
mov ecx, 3
call fcn.004040cc
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405823
push ebx
call fcn.0040a7f7
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x405836
mov eax, 0x231ea13
push eax
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40584a
mov eax, 0x231ea13
push eax
push 0x80000301
push 0
push 4
push 3
mov ebx, 0x40caf0
call fcn.0040a803
add esp, 0x28
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405879
push ebx
call fcn.0040a7f7
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405889
push ebx
call fcn.0040a7f7
add esp, 4
cmp dword [0x29798c8], 1
jne 0x40599d
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x40b840
call fcn.0040a803
add esp, 0x10
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 4
push 1
mov ebx, 0x40b840
call fcn.0040a803
add esp, 0x10
mov dword [ebp - 8], eax
push dword [0x2979868]
push 0x283fb20
mov ecx, 2
call fcn.004040cc
add esp, 8
mov dword [ebp - 0xc], eax
push getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x405906
mov eax, 0x231ea13
push eax
push 1
mov ebx, 0x40b840
call fcn.0040a803
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40592c
push ebx
call fcn.0040a7f7
add esp, 4
push 0x231ea8b
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [0x29798dc]
mov ecx, 5
call fcn.004043ef
add esp, 0x14
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405960
push ebx
call fcn.0040a7f7
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405970
push ebx
call fcn.0040a7f7
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x405980
push ebx
call fcn.0040a7f7
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [0x29798dc]
test ebx, ebx
je 0x405997
push ebx
call fcn.0040a7f7
add esp, 4
pop eax
mov dword [0x29798dc], eax
push 0xffffffffffffffff
push 0xa
push 0x16010764
push 0x52010619
call fcn.0040a821
add esp, 0x10
test eax, eax
je 0x40610b
push 0xffffffffffffffff
push 8
push 0x16010766
push 0x52010619
call fcn.0040a821
add esp, 0x10
mov dword [ebp - 4], eax
push dword [0x29798b0]
push 0x231eab8
push dword [ebp - 4]
mov ecx, 3
call fcn.004040cc
add esp, 0xc
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405a02
push ebx
call fcn.0040a7f7
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x405a15
mov eax, 0x231ea13
push eax
push 1
mov ebx, 0x40c290
call fcn.0040a803
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405a3b
push ebx
call fcn.0040a7f7
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x40610b
push 0
push 0x283fb4f
push 0xffffffffffffffff
push 8
push 0x16010761
push 0x52010619
call fcn.0040a7fd
add esp, 0x18
push 0x80000301
push 0
push 3
push 1
mov eax, 6
mov ebx, 0x6dc410
call fcn.0040a809
add esp, 0x10
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 4
push getpeername
push 0
mov eax, dword [0x29798b4]
test eax, eax
jne 0x405aa9
mov eax, 0x231ea13
push eax
push 2
mov ebx, 0x40af50
call fcn.0040a803
add esp, 0x1c
mov dword [ebp - 8], eax
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x405ad2
mov eax, 0x231ea13
push eax
push 1
mov ebx, 0x40b2b0
call fcn.0040a803
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405af8
push ebx
call fcn.0040a7f7
add esp, 4
push 0x283fb5f
push dword [ebp - 0xc]
call fcn.00402a8e
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405b26
push ebx
call fcn.0040a7f7
add esp, 4
push 0x283fb5f
push dword [0x29798b4]
mov ecx, 2
call fcn.004040cc
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x405b6e
mov eax, dword [0x29798b4]
test eax, eax
je 0x405b69
push eax
mov ebx, eax
call fcn.0040135c
inc eax
push eax
call fcn.0040a80f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x405b8a
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x405b8a
push eax
mov ebx, eax
call fcn.0040135c
inc eax
push eax
call fcn.0040a80f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405b9d
push ebx
call fcn.0040a7f7
add esp, 4
push dword [ebp - 0x18]
push dword [ebp - 4]
mov ecx, 2
call fcn.004040cc
add esp, 8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405bc3
push ebx
call fcn.0040a7f7
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x405bd3
push ebx
call fcn.0040a7f7
add esp, 4
push 0xffffffffffffffff
push 8
push 0x16010766
push 0x52010619
call fcn.0040a821
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [0x29798b0]
push 0x231eab8
push dword [ebp - 0x20]
mov ecx, 3
call fcn.004040cc
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x405c1a
push ebx
call fcn.0040a7f7
add esp, 4
push 0x705b43
push dword [0x29798b8]
call fcn.00402a8e
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x28], eax
push 0xffffffffffffffff
push 8
push 0x16010766
push 0x52010619
call fcn.0040a821
add esp, 0x10
mov dword [ebp - 0x2c], eax
push dword [0x29798b0]
push 0x231eab8
push dword [ebp - 0x2c]
mov ecx, 3
call fcn.004040cc
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x405c82
push ebx
call fcn.0040a7f7
add esp, 4
push 0xffffffffffffffff
push 8
push 0x16010766
push 0x52010619
call fcn.0040a821
add esp, 0x10
mov dword [ebp - 0x34], eax
push dword [0x29798b0]
push 0x231eab8
push dword [ebp - 0x34]
mov ecx, 3
call fcn.004040cc
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x405cc9
push ebx
call fcn.0040a7f7
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x405cdc
mov eax, 0x231ea13
push eax
push 1
mov ebx, 0x40ad10
call fcn.0040a803
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x405d02
push ebx
call fcn.0040a7f7
add esp, 4
push 0xffffffffffffffff
push 8
push 0x16010766
push 0x52010619
call fcn.0040a821
add esp, 0x10
mov dword [ebp - 0x40], eax
push dword [0x29798b0]
push 0x231eab8
push dword [ebp - 0x40]
mov ecx, 3
call fcn.004040cc
add esp, 0xc
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x405d49
push ebx
call fcn.0040a7f7
add esp, 4
push closesocket
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push 0x231eab8
push getpeername
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x405d7a
mov eax, 0x231ea13
push eax
push 4
mov ebx, 0x40b120
call fcn.0040a803
add esp, 0x34
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x405da0
push ebx
call fcn.0040a7f7
add esp, 4
fild dword [ebp - 0x3c]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fild dword [ebp - 0x48]
fstp qword [ebp - 0x58]
fsub qword [ebp - 0x58]
fstp qword [ebp - 0x60]
fld qword [ebp - 0x60]
call fcn.00401ef6
push 0x80000301
push 0
push eax
push getpeername
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x405dd8
mov eax, 0x231ea13
push eax
push 2
mov ebx, 0x40af10
call fcn.0040a803
add esp, 0x1c
mov dword [ebp - 0x64], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x405dfe
push ebx
call fcn.0040a7f7
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x405e29
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x405e24
push eax
mov ebx, eax
call fcn.0040135c
inc eax
push eax
call fcn.0040a80f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x405e47
mov eax, dword [0x29798b8]
test eax, eax
je 0x405e47
push eax
mov ebx, eax
call fcn.0040135c
inc eax
push eax
call fcn.0040a80f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x405e5a
push ebx
call fcn.0040a7f7
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x405e6d
mov eax, 0x231ea13
push eax
push getpeername
push 0
mov eax, dword [0x29798c0]
test eax, eax
jne 0x405e83
mov eax, 0x231ea13
push eax
push getpeername
push 0
mov eax, dword [0x29798bc]
test eax, eax
jne 0x405e99
mov eax, 0x231ea13
push eax
push getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x405ead
mov eax, 0x231ea13
push eax
push getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x405ec1
mov eax, 0x231ea13
push eax
push 5
mov eax, 6
mov ebx, 0x6dc280
call fcn.0040a809
add esp, 0x40
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x405ee9
push ebx
call fcn.0040a7f7
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x405ef9
push ebx
call fcn.0040a7f7
add esp, 4
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x405f09
push ebx
call fcn.0040a7f7
add esp, 4
cmp dword [0x29798c8], 1
jne 0x40610b
push 0x80000301
push 0
push 3
push 1
mov eax, 6
mov ebx, 0x6dc410
call fcn.0040a809
add esp, 0x10
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 4
push getpeername
push 0
mov eax, dword [0x29798b4]
test eax, eax
jne 0x405f5d
mov eax, 0x231ea13
push eax
push 2
mov ebx, 0x40af50
call fcn.0040a803
add esp, 0x1c
mov dword [ebp - 8], eax
push getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x405f86
mov eax, 0x231ea13
push eax
push 1
mov ebx, 0x40b2b0
call fcn.0040a803
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405fac
push ebx
call fcn.0040a7f7
add esp, 4
push 0x283fb5f
push dword [ebp - 0xc]
call fcn.00402a8e
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405fda
push ebx
call fcn.0040a7f7
add esp, 4
push 0x283fb5f
push dword [0x29798b4]
mov ecx, 2
call fcn.004040cc
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x406022
mov eax, dword [0x29798b4]
test eax, eax
je 0x40601d
push eax
mov ebx, eax
call fcn.0040135c
inc eax
push eax
call fcn.0040a80f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40603e
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40603e
push eax
mov ebx, eax
call fcn.0040135c
inc eax
push eax
call fcn.0040a80f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406051
push ebx
call fcn.0040a7f7
add esp, 4
push dword [ebp - 0x18]
push dword [ebp - 4]
mov ecx, 2
call fcn.004040cc
add esp, 8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406077
push ebx
call fcn.0040a7f7
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x406087
push ebx
call fcn.0040a7f7
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40609a
mov eax, 0x231ea13
push eax
push 1
mov ebx, 0x40b840
call fcn.0040a803
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4060c0
push ebx
call fcn.0040a7f7
add esp, 4
push 0x231ea8b
push dword [ebp - 0x20]
push dword [0x29798dc]
mov ecx, 3
call fcn.004043ef
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4060ee
push ebx
call fcn.0040a7f7
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0x29798dc]
test ebx, ebx
je 0x406105
push ebx
call fcn.0040a7f7
add esp, 4
pop eax
mov dword [0x29798dc], eax
push 0xffffffffffffffff
push 0xa
push 0x16010763
push 0x52010619
call fcn.0040a821
add esp, 0x10
test eax, eax
je 0x406129
mov esp, ebp
pop ebp
ret