Function at 0x408d90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x408dd4
mov eax, dword [ebp - 0xc]
jmp 0x408fa9
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
jmp 0x408de5
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x408f5c
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 4], 2
jne 0x408e01
mov dword [ebp - 0x10], 0x10
jmp 0x408e03
jmp 0x408ddc
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x18], 0
je 0x408e15
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x10], 0
ja 0x408e17
jmp 0x408ddc
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp - 0x10]
jae 0x408e24
jmp 0x408ddc
push 0x20
call dword [0x468844]
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x408e44
mov dword [ebp - 0xc], 8
jmp 0x408f5c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x468844]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x18], 0
jne 0x408ece
mov dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x14]
push eax
call dword [0x468848]
add esp, 4
jmp 0x408f5c
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
push edx
call fcn.004468c0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
je 0x408f36
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
push edx
call dword [0x468850]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x14], 0
jne 0x408f36
mov dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x18]
push ecx
call dword [0x468848]
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call dword [0x468848]
add esp, 4
jmp 0x408f5c
cmp dword [ebp - 4], 0
jne 0x408f42
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x18], 0
je 0x408f51
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x408ddc
cmp dword [ebp - 8], 0
je 0x408f6c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0xc], 0
je 0x408f87
mov edx, dword [ebp - 4]
push edx
call fcn.00408d20
add esp, 4
mov dword [ebp - 4], 0
jmp 0x408f9e
cmp dword [ebp - 4], 0
jne 0x408f9e
mov dword [ebp - 0xc], 0x2af9
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret