Function at 0x461065
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56c0ee
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov ebx, ecx
push 1
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
test eax, eax
jne 0x4610cc
push str.Cannot_SetThreadAffinityMask_for_ping_thread
push 2
pop ecx
call fcn.00492b4d
pop ecx
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c8], eax
mov esi, dword [ebx + 8]
push dword [esi]
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x1c8], 1
mov eax, dword [ebx + 8]
add eax, 4
lea ecx, [esp + 0x3c]
call fcn.0040dd42
lea eax, [ebx + 0xc]
push eax
call fcn.00461c53
mov byte [esp + 0x1c8], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp edi, eax
jne 0x46114d
push str.PingManagerThread:_no_targets_to_check.
push 2
pop ecx
call fcn.00492b4d
xor edi, edi
pop ecx
inc edi
lea esi, [esp + 0x3c]
call fcn.0040f00f
mov eax, edi
jmp 0x461589
sub eax, edi
push 0x1c
cdq
pop ecx
idiv ecx
and dword [esp + 0x28], 0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4613cc
mov dword [esp + 0x14], edi
jmp 0x461170
mov edi, dword [esp + 0x14]
mov esi, dword [ebx + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
cmp byte [eax + 0x14], 0
push dword [esi]
jne 0x4613fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0x14], 8
jb 0x461198
mov edi, dword [edi]
lea eax, [esp + 0x140]
push edi
push eax
call fcn.0048f00a
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x4611b0
mov eax, dword [eax]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
or esi, 0xffffffff
mov dword [esp + 0x34], eax
cmp eax, esi
je 0x461320
call dword [sym.imp.IPHLPAPI.DLL_IcmpCreateFile]
mov dword [esp + 0x20], eax
cmp eax, esi
je 0x461320
mov dword [esp + 0x2c], eax
mov byte [esp + 0x1c8], 3
mov esi, str.PING_DATA_
lea edi, [esp + 0x15c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [esp + 0x167]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x3b
stosb byte es:[edi], al
lea eax, [esp + 0x181]
push 0
push eax
mov byte [esp + 0x188], 0
call fcn.00517e90
add esp, 0xc
lea esi, [esp + 0xe4]
call fcn.004948a9
call fcn.004948cf
push 0x2710
push 0x3c
lea eax, [esp + 0x184]
push eax
push 0
push 0x20
lea eax, [esp + 0x170]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x3c]
call dword [sym.imp.IPHLPAPI.DLL_IcmpSendEcho]
mov edi, eax
call fcn.004948eb
push 0
push 0x3e8
push edx
push eax
call fcn.00526e30
mov esi, eax
mov dword [esp + 0x38], edx
test edi, edi
jne 0x461316
lea eax, [esp + 0x4c]
push eax
call fcn.004036c8
mov esi, eax
push str.IcmpSendEcho_failed_for
push esi
mov byte [esp + 0x1d0], 4
call fcn.00405d7d
push dword [esp + 0x2c]
push esi
call fcn.00405f31
add esp, 0x10
lea eax, [esp + 0x104]
push eax
mov eax, esi
call fcn.00403732
mov byte [esp + 0x1c8], 5
cmp dword [esp + 0x118], 8
mov eax, dword [esp + 0x104]
jae 0x4612dc
lea eax, [esp + 0x104]
push eax
push 4
pop ecx
call fcn.00492b4d
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x108]
call fcn.00404145
lea eax, [esp + 0x4c]
mov byte [esp + 0x1c8], 3
call fcn.00402669
push dword [esp + 0x20]
call dword [sym.imp.IPHLPAPI.DLL_IcmpCloseHandle]
or esi, 0xffffffff
jmp 0x461320
push dword [esp + 0x20]
call dword [sym.imp.IPHLPAPI.DLL_IcmpCloseHandle]
push 0
push 1
lea ecx, [esp + 0x148]
call fcn.00403ff6
mov ebx, dword [ebx + 8]
push dword [ebx]
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esp + 0x130], 0
xor eax, eax
mov dword [esp + 0x134], 7
mov word [esp + 0x120], ax
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x128]
mov byte [esp + 0x1d0], 7
call fcn.00404082
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x120]
add edi, 0xc
mov dword [esp + 0x13c], esi
call fcn.00461bd9
push 1
xor edi, edi
lea esi, [esp + 0x124]
call fcn.00404145
mov byte [esp + 0x1c8], 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
add dword [esp + 0x14], 0x1c
mov ebx, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jb 0x46116c
mov esi, dword [ebx + 8]
push dword [esi]
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x1c8], 8
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
cmp ecx, eax
jne 0x461409
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor bl, bl
jmp 0x461579
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
jmp 0x46113d
xor edx, edx
xor esi, esi
mov dword [esp + 0xf8], 7
mov dword [esp + 0xf4], edx
mov word [esp + 0xe4], si
sub eax, ecx
sar eax, 5
mov byte [esp + 0x1c8], 9
mov dword [esp + 0x14], edx
test eax, eax
je 0x4614fd
mov dword [esp + 0x18], edx
cmp dword [esp + 0x14], 0
je 0x461459
push 0x3b
lea eax, [esp + 0xe8]
call fcn.0040d9a1
lea eax, [esp + 0x4c]
push eax
call fcn.004036c8
mov edi, eax
mov byte [esp + 0x1c8], 0xa
mov esi, dword [ebx + 0xc]
add esi, dword [esp + 0x18]
push edi
mov ecx, esi
call fcn.0041193b
pop ecx
push 0x3b
push edi
call fcn.00411d4f
pop ecx
pop ecx
push dword [esi + 0x1c]
push edi
call fcn.0041056c
lea eax, [esp + 0x104]
push eax
mov eax, edi
call fcn.00403732
push 0
lea eax, [esp + 0x108]
push eax
or eax, 0xffffffff
lea esi, [esp + 0xec]
mov byte [esp + 0x1d0], 0xb
call fcn.0040eb3e
push 1
xor edi, edi
lea esi, [esp + 0x108]
call fcn.00404145
lea eax, [esp + 0x4c]
mov byte [esp + 0x1c8], 9
call fcn.00402669
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
inc dword [esp + 0x14]
add dword [esp + 0x18], 0x20
sar eax, 5
cmp dword [esp + 0x14], eax
jb 0x461444
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
lea esi, [esp + 0x2c]
call fcn.00461050
lea eax, [esp + 0xe4]
push eax
push str.Pings
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x1d4], 0xc
push dword [esp + 0x3c]
call fcn.0040685d
mov eax, dword [esp + 0x1c]
test eax, eax
setne bl
test eax, eax
je 0x46154d
dec dword [eax + 4]
cmp dword [eax + 4], 0
mov ecx, eax
jg 0x46154d
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x46155d
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
xor edi, edi
lea esi, [esp + 0xe8]
call fcn.00404145
mov eax, dword [esp + 0x34]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [esp + 0x3c]
call fcn.0040f00f
xor eax, eax
test bl, bl
sete al
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.0051497f
mov esp, ebp
pop ebp
ret