Function at 0x4a08ed
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.00401910
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 8]
inc ecx
push esi
push edi
mov edi, 0x218
mov dword [ebp - 0x2014], eax
mov edx, edi
call fcn.004802d5
mov esi, eax
xor eax, eax
push edi
push eax
push esi
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
mov dword [esi], 1
xor eax, eax
lea edi, [esi + 0xc]
mov dword [edi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
push ebx
mov byte [ebp - 0x200c], al
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x2010], eax
cmp eax, 0xffffffff
jne 0x4a0ad5
push 0x20
lea eax, [ebp - 0x2034]
push 0
push eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
xor eax, eax
push 0x17
pop ecx
push 2
pop edx
cmp dword [ebp + 0x10], edx
push edi
cmove eax, ecx
mov dword [ebp - 0x2034], edx
cmp dword [ebp + 0x10], 1
cmove eax, edx
mov dword [ebp - 0x2030], eax
lea eax, [ebp - 0x2034]
push eax
push 0
push ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4a09b2
mov dword [esi + 8], 1
xor edx, edx
cmp dword [esi + 8], edx
jne 0x4a0a06
cmp eax, 0x2742
jne 0x4a09c7
mov edi, str.Network_is_down
jmp 0x4a09fe
cmp eax, 0x2af9
jne 0x4a09d5
mov edi, str.Host_does_not_exist
jmp 0x4a09fe
cmp eax, 0x2afa
jne 0x4a09e3
mov edi, str.Host_not_found
jmp 0x4a09fe
push edx
mov ecx, 0x400
mov edi, 0x5248f0
push ecx
push edi
push ecx
push eax
push edx
push 0x12ff
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
mov dword [esi + 4], edi
jmp 0x4a0b12
mov eax, dword [edi]
mov dword [esi + 4], edx
test eax, eax
je 0x4a0a47
cmp dword [eax + 4], 2
jne 0x4a0a2e
mov eax, dword [eax + 0x18]
add eax, 4
push 4
push eax
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
mov eax, dword [edi]
push 0x2000
cmp dword [eax + 0x14], 0
je 0x4a0b01
push dword [eax + 0x14]
jmp 0x4a0b02
mov eax, dword [0xc]
mov edi, edx
jmp 0x4a0a54
inc edi
lea eax, [eax + 4]
cmp dword [eax], edx
jne 0x4a0a50
push 4
pop edx
mov ecx, edi
call fcn.004802d5
mov ebx, dword [sym.imp.msvcrt.dll_memcpy]
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], edi
mov edi, eax
cmp dword [esi + 0x14], eax
jle 0x4a0aa8
push 0xc
pop eax
mov eax, dword [eax]
push 4
push dword [eax + edi*4]
lea eax, [ebp - 0x2010]
push eax
call ebx
add esp, 0xc
push dword [ebp - 0x2010]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esi + 0x10]
push 0xc
mov dword [ecx + edi*4], eax
inc edi
pop eax
cmp edi, dword [esi + 0x14]
jl 0x4a0a7a
mov eax, dword [0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x2010]
push eax
call ebx
xor eax, eax
push 0x2000
push dword [eax]
lea eax, [ebp - 0x200c]
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0x18
jmp 0x4a0b12
xor edi, edi
push 4
inc edi
pop edx
mov ecx, edi
call fcn.004802d5
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
push dword [ebp - 0x2010]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esi + 0x10]
push 0x2000
mov dword [ecx], eax
mov dword [esi + 8], edi
push ebx
lea eax, [ebp - 0x200c]
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
xor eax, eax
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x200c]
push eax
call dword [sym.imp.msvcrt.dll_strlen]
xor edx, edx
inc edx
lea ecx, [eax + 1]
call fcn.004802d5
mov ecx, dword [ebp - 0x2014]
mov dword [ecx], eax
lea ecx, [ebp - 0x200c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_strcpy]
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret 0xc