Function at 0x40648f
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x436acc
call fcn.00436808
sub esp, 0x5c
push ebx
push esi
mov dword [ebp - 0x1c], edx
mov esi, ecx
xor ebx, ebx
call dword [sym.imp.IPHLPAPI.DLL_IcmpCreateFile]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x406750
push edi
mov edi, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
cmp eax, ecx
je 0x40663c
push eax
lea ecx, [ebp - 0x5c]
call fcn.00405c01
mov byte [ebp - 4], 1
push 0x50
call fcn.0041a3cf
push 0x50
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x2c], esi
call fcn.0041d850
lea eax, [esi + 0xc]
mov dword [ebp - 0x30], eax
mov dword [eax + 4], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], 0xf
mov byte [eax + 4], bl
mov byte [ebp - 4], 3
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x24], esi
cmovae eax, dword [ebp - 0x58]
movsx eax, byte [eax]
push eax
call fcn.0041f290
add esp, 0x14
test eax, eax
lea eax, [ebp - 0x58]
je 0x4065cf
cmp dword [ebp - 0x44], 0x10
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x406565
jmp 0x40660d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x30], eax
lock inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [esi + 4], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x2c], eax
push 0x31
pop eax
mov dword [esi + 0x34], 1
push eax
mov dword [esi + 0x3c], eax
call fcn.0041a40d
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x5c]
pop ecx
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x10]
lea eax, [ebp - 0x58]
push eax
call fcn.00405641
mov eax, dword [ebp - 0x40]
mov ecx, esi
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x4c], eax
call fcn.004061f9
test al, al
jne 0x4065e8
lock dec dword [ebp - 0x10]
jmp 0x40660d
cmp dword [ebp - 0x44], 0x10
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x30], eax
cmp eax, 0xffffffff
jne 0x40656f
jmp 0x40660d
mov dword [esi], 1
cmp edi, dword [ebp - 0x34]
je 0x4065fd
mov dword [edi], esi
add edi, 4
mov dword [ebp - 0x38], edi
jmp 0x40660d
lea eax, [ebp - 0x24]
push eax
push edi
lea ecx, [ebp - 0x3c]
call fcn.00405976
mov edi, dword [ebp - 0x38]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x58]
call fcn.004056e1
mov eax, dword [ebp - 0x18]
add eax, 0x20
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x28]
jne 0x4064df
jmp 0x406636
push 1
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SleepEx]
cmp dword [ebp - 0x10], 0
jne 0x40662c
mov eax, dword [ebp - 0x3c]
jmp 0x40672d
mov esi, dword [eax]
cmp dword [esi], 4
je 0x40670d
lea eax, [ebp - 0x68]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x64]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x68], eax
lea eax, [esi + 0x10]
push eax
call fcn.00405641
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
cmp eax, ecx
je 0x4066d8
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x28]
push ebx
cmp eax, dword [ebp - 0x40]
je 0x4066c2
mov ecx, eax
call fcn.00406b1b
mov eax, dword [ebp - 0x44]
add eax, 0x3c
mov dword [ebp - 0x44], eax
jmp 0x4066ce
push eax
lea ecx, [ebp - 0x48]
call fcn.004069aa
mov eax, dword [ebp - 0x44]
add ebx, 0x3c
cmp ebx, dword [ebp - 0x24]
jne 0x4066aa
xor ebx, ebx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4066f8
lea ecx, [ebp - 0x68]
mov edx, eax
push ecx
call fcn.004067df
mov edx, dword [ebp - 0x1c]
pop ecx
add dword [edx + 4], 0x2c
jmp 0x406702
lea edx, [ebp - 0x68]
push edx
push eax
call fcn.00406838
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x68]
call fcn.00405e95
push dword [esi + 0x38]
call fcn.0041a3ca
pop ecx
mov ecx, esi
call fcn.00406760
push 0x50
push esi
call fcn.0041a3ff
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
add eax, 4
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x406644
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00405616
push dword [ebp - 0x20]
call dword [sym.imp.IPHLPAPI.DLL_IcmpCloseHandle]
pop edi
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret