Function at 0x6c103780
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp eax, 0x26
je 0x6c103910
ja 0x6c1037e8
cmp eax, 2
je 0x6c1038e0
cmp eax, 9
jne 0x6c1038c0
test byte [0x6c1471a4], 8
jne 0x6c103a70
cmp dword [esi], 3
jbe 0x6c103b05
mov dword [esi], 4
xor eax, eax
mov dword [ebx], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x29
jne 0x6c1038c0
test byte [0x6c1471a4], 8
jne 0x6c103ad0
mov ecx, dword [esi]
mov eax, dword [edi + 0x40]
test edx, edx
jne 0x6c103a10
test eax, eax
je 0x6c103ce0
mov dword [ebp - 0x1c], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x1c]
mov dword [esi], eax
sub esp, 0x20
test ebx, ebx
je 0x6c103b05
mov eax, dword [esi]
cmp eax, ecx
ja 0x6c103b05
mov edx, dword [edi + 0x40]
test edx, edx
je 0x6c103cb8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
dec dword [esi]
xor eax, eax
jmp 0x6c103903
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], edi
mov dword [ebp + 0x18], edx
mov dword [ebp + 0xc], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym._INET_QueryOption
test byte [0x6c1471a4], 8
jne 0x6c103aa0
cmp dword [esi], 3
jbe 0x6c103b05
mov eax, dword [edi + 0x58]
mov dword [ebx], eax
xor eax, eax
mov dword [esi], 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, esi
je 0x6c103cc0
mov eax, dword [edi + 0x44]
test edx, edx
je 0x6c103b18
mov dword [ebp - 0x1c], 0xc
test eax, eax
je 0x6c103951
cmp word [eax], 0
mov edx, eax
je 0x6c103949
lea esi, [esi]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6c103940
sub edx, eax
lea eax, [edx + 0xe]
mov dword [ebp - 0x1c], eax
mov edx, dword [edi + 0x48]
xor eax, eax
test edx, edx
je 0x6c10397e
cmp word [edx], 0
je 0x6c103d0c
mov eax, edx
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6c103970
sub eax, edx
add eax, 2
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x6c103b00
cmp dword [esi], eax
jb 0x6c103b00
mov eax, dword [edi + 0x54]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], eax
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x6c1039d7
lea eax, [ebx + 0xc]
mov dword [ebp - 0x24], eax
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [ebx + eax + 0xc], dx
add eax, 2
test dx, dx
jne 0x6c1039c0
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x6c1039fb
mov edi, dword [ebp - 0x1c]
xor eax, eax
add edi, ebx
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x6c1039e8
mov dword [ebx + 8], edi
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x6c103d00
cmp word [eax], 0
mov edx, eax
je 0x6c103a29
add edx, 2
cmp word [edx], 0
jne 0x6c103a20
sub edx, eax
mov eax, edx
add edx, 2
sar eax, 1
mov dword [esi], edx
cmp ecx, edx
jb 0x6c103b05
test ebx, ebx
je 0x6c103b05
mov edi, dword [edi + 0x40]
test edi, edi
je 0x6c103cd0
xor edx, edx
lea esi, [esi]
movzx ecx, word [edi + edx]
mov word [ebx + edx], cx
add edx, 2
test cx, cx
jne 0x6c103a58
jmp 0x6c1039fe
mov dword [esp + 0xc], str.INTERNET_OPTION_HANDLE_TYPE_n
mov dword [esp + 8], str.APPINFO_QueryOption
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x6c1037c2
mov dword [esp + 0xc], str.INTERNET_OPTION_CONNECT_TIMEOUT_n
mov dword [esp + 8], str.APPINFO_QueryOption
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x6c1038ed
mov dword [esp + 0xc], str.INTERNET_OPTION_USER_AGENT_n
mov dword [esp + 8], str.APPINFO_QueryOption
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0_5
mov edx, dword [ebp - 0x1c]
jmp 0x6c1037fe
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
lea esp, [ebp - 0xc]
mov eax, 0x7a
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x6c103ca0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
add eax, 0xc
sub esp, 0x20
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x48]
xor edx, edx
test eax, eax
je 0x6c103bbc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
mov edx, eax
mov eax, dword [ebp - 0x1c]
lea ecx, [edx + eax]
test ebx, ebx
je 0x6c103cf0
cmp dword [esi], ecx
jb 0x6c103cf0
mov eax, dword [edi + 0x54]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], eax
mov eax, dword [edi + 0x44]
test eax, eax
je 0x6c103c43
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
lea ecx, [ebx + 0xc]
mov dword [esp + 0x14], edx
mov dword [ebp - 0x20], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
sub esp, 0x20
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x28]
mov eax, dword [edi + 0x48]
test eax, eax
je 0x6c103c94
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov dword [esp + 0x1c], 0
add edi, ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebx + 8], edi
mov ecx, dword [ebp - 0x20]
sub esp, 0x20
mov dword [esi], ecx
xor eax, eax
jmp 0x6c103903
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x20], 0
jmp 0x6c103b6d
mov byte [ebx], 0
jmp 0x6c1038b8
mov eax, 0x57
jmp 0x6c103903
xor edx, edx
mov word [ebx], dx
jmp 0x6c1039fe
mov dword [esi], 1
jmp 0x6c10385f
mov dword [esi], ecx
mov eax, 0x7a
jmp 0x6c103903
mov edx, 2
xor eax, eax
jmp 0x6c103a32
mov eax, 2
jmp 0x6c10397e