Function at 0x41d060
Capabilities:
Resolve dns

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
movzx eax, byte [0x490830]
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
test al, 1
je 0x41d0a0
mov edx, eax
shr al, 2
shr dl, 1
and eax, 1
and edx, 1
mov dword [edi], edx
mov dword [esi], eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x28]
mov dword [esi], 0
mov dword [esp + 0x28], 0
mov dword [edi], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str...localmachine
call dword [sym.imp.WS2_32.dll_getaddrinfo]
sub esp, 0x10
test eax, eax
jne 0x41d270
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x41d148
lea ebp, [esp + 0x32]
jmp 0x41d104
cmp eax, 2
jne 0x41d0fd
mov dword [edi], 1
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
je 0x41d134
mov edx, dword [0x4908d4]
mov eax, dword [ebx + 4]
test edx, edx
jne 0x41d1b0
cmp eax, 0x17
jne 0x41d0f2
mov eax, dword [ebx + 0x18]
cmp byte [eax + 8], 0xfe
je 0x41d235
mov ebx, dword [ebx + 0x1c]
mov dword [esi], 1
test ebx, ebx
jne 0x41d104
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41d148
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
sub esp, 4
mov ecx, dword [0x4908d8]
mov edx, dword [esi]
test ecx, ecx
je 0x41d185
mov eax, dword [edi]
mov ecx, 0x480ee8
test edx, edx
mov edx, str._IPv6
cmove edx, ecx
mov dword [esp], str.detected_interfaces:_s_s_n
test eax, eax
mov eax, str._IPv4
cmove eax, ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.0044da60
mov edx, dword [esi]
movzx eax, byte [0x490830]
mov ecx, dword [edi]
and edx, 1
shl edx, 2
or eax, 1
and ecx, 1
add ecx, ecx
and eax, 0xfffffff9
or eax, ecx
or eax, edx
mov byte [0x490830], al
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], eax
mov dword [esp + 4], str.check_inet_support
mov dword [esp], str._s:__family:__d_n
call fcn.0044ddd0
mov eax, dword [ebx + 4]
cmp eax, 0x17
je 0x41d1d9
cmp eax, 2
jne 0x41d0fd
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x2c], 0x2e
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
sub esp, 0x14
test eax, eax
je 0x41d250
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 4], str.check_inet_support
mov dword [esp + 8], eax
mov dword [esp], str._s:_WSAAddressToString_failed:_ec_u_n
call fcn.0044ddd0
mov eax, dword [ebx + 4]
jmp 0x41d115
movzx eax, byte [eax + 9]
and eax, 0xffffffc0
cmp al, 0x80
jne 0x41d127
jmp 0x41d0fd
mov dword [esp + 8], ebp
mov dword [esp + 4], str.check_inet_support
mov dword [esp], str._s:_____addr:__s_n
call fcn.0044ddd0
jmp 0x41d22d
cmp eax, 0x277d
je 0x41d32c
jg 0x41d2d5
mov edx, 0xa000048
cmp eax, 0x2726
je 0x41d2b0
jle 0x41d303
mov edx, 0xa00807d
cmp eax, 0x273c
je 0x41d2b0
cmp eax, 0x273f
mov edx, 0xa008005
mov eax, 0xa003ffe
cmovne edx, eax
lea esi, [esi]
mov dword [esp], edx
call sub.libgpg_error_0.dll_gpg_strerror
mov dword [esp + 4], str.check_inet_support
mov dword [esp + 8], eax
mov dword [esp], str._s:_getaddrinfo_failed:__s_n
call fcn.0044dbb0
jmp 0x41d148
mov edx, 0xa008006
cmp eax, 0x2afa
je 0x41d2b0
jle 0x41d315
mov edx, 0xa0000db
cmp eax, 0x2afb
je 0x41d2b0
cmp eax, 0x2afc
mov edx, 0xa00003a
mov eax, 0xa003ffe
cmovne edx, eax
jmp 0x41d2b0
cmp eax, 8
mov edx, 0xa008056
mov eax, 0xa003ffe
cmovne edx, eax
jmp 0x41d2b0
cmp eax, 0x2af9
mov edx, 0xa0000dc
mov eax, 0xa003ffe
cmovne edx, eax
jmp 0x41d2b0
mov edx, 0xa00003c
jmp 0x41d2b0