Function at 0x1000d4d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
mov esi, dword [ebp + 0xc]
test byte [0x100471d4], 8
jne 0x1000d670
lea ebx, [ebp - 0x2c]
xor eax, eax
mov ecx, 8
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x30]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x28], 2
call sym._GetAddrInfoW_16
sub esp, 0x10
test eax, eax
je 0x1000d5a0
test byte [0x100471d4], 8
jne 0x1000d6a8
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x28], 0x17
call sym._GetAddrInfoW_16
sub esp, 0x10
test eax, eax
je 0x1000d5a0
xor esi, esi
test byte [0x100471d4], 8
je 0x1000d5c7
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0xc], str.failed_to_get_address_of__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.GetAddress
mov dword [esp + 4], 0x100471d4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x30]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebx + 0x10]
cmp dword [edx], eax
jae 0x1000d5d8
test byte [0x100471d4], 4
jne 0x1000d6e0
mov dword [esp], ebx
xor esi, esi
call sym._FreeAddrInfoW_4
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebx + 4]
cmp eax, 2
je 0x1000d710
xor edi, edi
cmp eax, 0x17
jne 0x1000d628
mov eax, dword [ebp + 0x10]
lea edi, [eax + 8]
movzx esi, si
mov dword [esp], esi
call dword [sym.imp.ws2_32.dll_htons]
mov ecx, dword [ebp + 0x10]
sub esp, 4
mov word [ecx + 2], ax
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1000d653
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], 0x41
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._inet_ntop_16
mov ebx, dword [ebp - 0x30]
sub esp, 0x10
mov dword [esp], ebx
mov esi, 1
call sym._FreeAddrInfoW_4
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0xc], 0x1004edb8
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.GetAddress
mov dword [esp + 4], 0x100471d4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x1000d4e9
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0xc], str.failed_to_get_IPv4_address_of__s__retrying_with_IPv6_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.GetAddress
mov dword [esp + 4], 0x100471d4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x1000d530
mov dword [esp + 0xc], str.address_too_small_n
mov dword [esp + 8], str.GetAddress
mov dword [esp + 4], 0x100471d4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_8
mov ebx, dword [ebp - 0x30]
jmp 0x1000d5ba
mov eax, dword [ebp + 0x10]
lea edi, [eax + 4]
jmp 0x1000d60f