Function at 0x416da8
Capabilities:
Resolve dns

Disassembly:
push 0x80
mov eax, 0x4706b1
call fcn.00450b66
mov eax, 0x48cfe4
push eax
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x48]
call fcn.00406a3c
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x48cfc4
mov byte [ebp - 4], 1
call fcn.004176ce
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push 0
mov dword [ebp - 0x1c], ecx
push 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
call fcn.00401fd6
mov eax, dword [0x48cfdc]
mov dword [ebp - 0x20], eax
mov eax, dword [0x48cfc4]
lea edi, [ebp - 0x24]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.00417e9d
and dword [ebp - 0x14], 0
test al, al
jne 0x416ef6
or ebx, 0xffffffff
call fcn.004121f8
mov ecx, dword [eax + 0x34]
mov ecx, dword [ecx]
add eax, 0x1c
mov eax, dword [eax]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
lea esi, [ebp - 0x1c]
call fcn.004121f8
mov ecx, dword [eax + 0x34]
mov eax, dword [eax + 0x1c]
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
call fcn.00417e9d
test al, al
jne 0x416ea1
cmp byte [0x48b1d4], al
je 0x416e94
call fcn.004121f8
cmp dword [eax + 4], ebx
ja 0x416e94
call fcn.004121f8
mov ebx, dword [eax + 4]
call fcn.004121f8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
call fcn.004178a4
jmp 0x416e46
lea esi, [ebp - 0x24]
call fcn.004121f8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x416eda
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.00406a3c
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.00417553
pop ecx
mov ebx, eax
call fcn.0041776f
inc dword [eax]
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401fd6
mov esi, dword [ebp - 0x14]
push 0x48cfe4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
lea esp, [ebp - 0x9c]
call fcn.00450bb0
ret
lea eax, [ebp - 0x68]
push eax
call fcn.00417739
lea eax, [ebp - 0x68]
push eax
push ebx
mov byte [ebp - 4], 3
call fcn.00416bc0
pop ecx
pop ecx
test eax, eax
je 0x416f91
cmp dword [ebp - 0x4c], 0
jbe 0x416f91
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x68]
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
call fcn.00417e9d
test al, al
jne 0x416f50
call fcn.004121f8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
call fcn.004121f8
add eax, 4
inc dword [eax]
push ebx
lea ecx, [ebp - 0x48]
call fcn.00406a3c
lea eax, [ebp - 0x68]
push eax
push ecx
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 4
call fcn.00417553
pop ecx
mov esi, eax
call fcn.004170e3
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401fd6
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0
call fcn.0041780d
jmp 0x416eda
test ebx, ebx
je 0x416fa4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x416fa8
xor eax, eax
jmp 0x416fbd
lea edi, [eax + eax]
mov eax, edi
call fcn.00451d90
mov esi, esp
push 3
push edi
push ebx
call fcn.00418d69
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
jne 0x416fcf
and dword [ebp - 0x14], eax
jmp 0x416f7f
lea eax, [ebp - 0x8c]
push eax
call fcn.00417739
mov byte [ebp - 4], 5
mov esi, dword [esi + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x417003
push eax
lea ebx, [ebp - 0x8c]
call fcn.0041776f
and dword [eax], 0
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x416fe8
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [ebp - 0x70], edi
jbe 0x41703f
push ebx
lea ecx, [ebp - 0x48]
call fcn.00406a3c
lea eax, [ebp - 0x8c]
push eax
push ecx
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 6
call fcn.00417553
pop ecx
mov esi, eax
call fcn.004170e3
push edi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.00401fd6
push ebx
lea ecx, [ebp - 0x48]
call fcn.00406a3c
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 7
call fcn.00417553
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx]
mov eax, dword [eax]
push edi
mov dword [ebp - 0x18], ecx
push 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
call fcn.00401fd6
push ebx
lea ecx, [ebp - 0x48]
call fcn.00406a3c
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 8
call fcn.00417553
mov ecx, dword [eax + 0x18]
mov eax, dword [eax]
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
call fcn.00417e9d
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea ecx, [ebp - 0x48]
inc bl
call fcn.00401fd6
test bl, bl
je 0x4170c9
call fcn.004121f8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
call fcn.004121f8
add eax, 4
inc dword [eax]
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 3
call fcn.0041780d
jmp 0x416f7f