Function at 0x6cb24810
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x444
mov ebx, dword [ebp + 8]
test byte [0x6cb2c14c], 8
jne 0x6cb249e0
test ebx, ebx
je 0x6cb249c0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x6cb249c0
mov edx, dword [0x6cb2c148]
movzx eax, byte [0x6cb2c14c]
test edx, edx
jne 0x6cb249a0
test al, 8
jne 0x6cb24c64
test bl, 1
je 0x6cb24877
mov eax, dword [0x6cb32024]
lea edx, [eax + 1]
mov dword [0x6cb32024], edx
test eax, eax
je 0x6cb24a24
and ebx, 2
je 0x6cb24971
mov eax, 7
xor ebx, ebx
call sym._get_computer_name
mov edi, eax
mov dword [ebp - 0x424], eax
test eax, eax
je 0x6cb2498b
mov eax, 6
call sym._get_computer_name
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x6cb24dd0
lea esi, [esi]
mov eax, dword [ebp - 0x420]
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strchr]
mov edi, eax
test eax, eax
je 0x6cb2492d
lea esi, [eax + 1]
mov dword [ebp - 0x420], esi
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strlen]
mov ebx, eax
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strlen]
cmp ebx, eax
jl 0x6cb2492d
mov ecx, dword [ebp - 0x41c]
sub ebx, eax
mov dword [esp + 8], 0xffffffff
add ebx, esi
mov dword [esp], ebx
mov dword [esp + 4], ecx
call dword [sym.imp.msvcrt.dll__strnicmp]
mov ebx, eax
test eax, eax
je 0x6cb24a70
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x41c]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._HeapFree_12
sub esp, 0xc
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x424]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._HeapFree_12
sub esp, 0xc
mov dword [esp], 0x2f94
xor ebx, ebx
call sym._SetLastError_4
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [eax], 0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
test al, 1
jne 0x6cb24ca0
mov dword [0x6cb2c148], 0
jmp 0x6cb2485c
mov dword [esp], 0x57
xor ebx, ebx
call sym._SetLastError_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], str.0x_08x___p_n
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0x594
mov dword [esp + 0xc], str.WinHttpDetectAutoProxyConfigUrl
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x6cb2482c
test byte [0x6cb2c14c], 1
je 0x6cb24877
mov dword [esp + 0x14], str.discovery_via_DHCP_not_supported_n
mov dword [esp + 0x10], 0x5a7
mov dword [esp + 0xc], str.WinHttpDetectAutoProxyConfigUrl
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x6cb24877
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_strlen]
mov esi, eax
call sym._GetProcessHeap_0
add esi, 5
mov dword [esp + 4], 0
mov dword [esp + 8], esi
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6cb24ce0
lea eax, [esi + 4]
mov dword [esi], 0x64617077
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._strcpy
lea eax, [ebp - 0x418]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
sub esp, 0x10
test eax, eax
jne 0x6cb24c43
mov edx, dword [ebp - 0x418]
test edx, edx
je 0x6cb24d30
mov eax, dword [edx + 4]
mov ebx, edx
cmp eax, 2
jne 0x6cb24b14
jmp 0x6cb24b19
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
je 0x6cb24c25
mov eax, dword [ebx + 4]
cmp eax, 2
je 0x6cb24b19
cmp eax, 0x17
jne 0x6cb24b01
lea edi, [ebp - 0x411]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x401
mov dword [esp + 8], edi
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_getnameinfo]
mov edx, edi
sub esp, 0x1c
test eax, eax
je 0x6cb24b61
mov edx, esi
mov dword [ebp - 0x428], edx
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [esp], str.http:__
call edi
mov edx, dword [ebp - 0x428]
mov ebx, eax
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll_strlen]
mov dword [esp], str._wpad.dat
add ebx, eax
call edi
mov dword [esp], 0
lea eax, [ebx + eax + 1]
add eax, eax
mov dword [esp + 4], eax
call sym._GlobalAlloc_8
mov edx, dword [ebp - 0x428]
sub esp, 8
test eax, eax
mov ebx, eax
je 0x6cb24c1f
mov ecx, dword [sym.imp.msvcrt.dll_wcscpy]
mov dword [ebp - 0x42c], edx
mov dword [esp + 4], str.http:__
mov dword [ebp - 0x428], ecx
mov dword [esp], eax
call ecx
mov dword [esp], str.http:__
call edi
mov edx, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x428]
lea edi, [ebx + eax*2]
movsx ax, byte [edx]
test al, al
je 0x6cb24c12
lea esi, [esi]
lea esi, [esi]
add edx, 1
add edi, 2
mov word [edi - 2], ax
movsx ax, byte [edx]
test al, al
jne 0x6cb24c00
mov dword [esp + 4], str._wpad.dat
mov dword [esp], edi
call ecx
mov edx, dword [ebp - 0x418]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov dword [esp], edx
call dword [sym.imp.ws2_32.dll_freeaddrinfo]
mov eax, dword [ebp + 0xc]
sub esp, 4
mov eax, dword [eax]
test eax, eax
jne 0x6cb24d40
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
jmp 0x6cb248c0
mov dword [esp + 0x14], str.no_support_on_this_platform_n
mov dword [esp + 0x10], 0x585
mov dword [esp + 0xc], str.get_system_proxy_autoconfig_url
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x6cb2485c
mov dword [esp + 0x14], str.no_support_on_this_platform_n
mov dword [esp + 0x10], 0x581
mov dword [esp + 0xc], str.get_system_proxy_autoconfig_url
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x6cb249a8
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x424]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._HeapFree_12
sub esp, 0xc
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x41c]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
jmp 0x6cb2498b
xor ebx, ebx
jmp 0x6cb24c25
test byte [0x6cb2c14c], 8
jne 0x6cb24de0
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov ebx, 1
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x41c]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._HeapFree_12
sub esp, 0xc
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x424]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._HeapFree_12
sub esp, 0xc
mov dword [esp], 0
call sym._SetLastError_4
sub esp, 4
jmp 0x6cb2498b
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x424]
jmp 0x6cb24d0d
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 0x14], str.returning__s_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x5c9
mov dword [esp + 0xc], str.WinHttpDetectAutoProxyConfigUrl
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x6cb24d4d