Function at 0x10003780
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
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 0x10003910
ja 0x100037e8
cmp eax, 2
je 0x100038e0
cmp eax, 9
jne 0x100038c0
test byte [0x100471a4], 8
jne 0x10003a70
cmp dword [esi], 3
jbe 0x10003b05
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 0x100038c0
test byte [0x100471a4], 8
jne 0x10003ad0
mov ecx, dword [esi]
mov eax, dword [edi + 0x40]
test edx, edx
jne 0x10003a10
test eax, eax
je 0x10003ce0
mov dword [ebp - 0x10], 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 - 0x10]
mov dword [esi], eax
sub esp, 0x20
test ebx, ebx
je 0x10003b05
mov eax, dword [esi]
cmp eax, ecx
ja 0x10003b05
mov edx, dword [edi + 0x40]
test edx, edx
je 0x10003cb8
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 0x10003903
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 [0x100471a4], 8
jne 0x10003aa0
cmp dword [esi], 3
jbe 0x10003b05
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 0x10003cc0
mov eax, dword [edi + 0x44]
test edx, edx
je 0x10003b18
mov dword [ebp - 0x10], 0xc
test eax, eax
je 0x10003951
cmp word [eax], 0
mov edx, eax
je 0x10003949
lea esi, cs:[esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x10003940
sub edx, eax
lea eax, [edx + 0xe]
mov dword [ebp - 0x10], eax
mov edx, dword [edi + 0x48]
xor eax, eax
test edx, edx
je 0x1000397e
cmp word [edx], 0
je 0x10003d0c
mov eax, edx
lea esi, cs:[esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10003970
sub eax, edx
add eax, 2
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
test ebx, ebx
je 0x10003b00
cmp dword [esi], eax
jb 0x10003b00
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 0x100039d7
lea eax, [ebx + 0xc]
mov dword [ebp - 0x18], eax
xor eax, eax
lea esi, cs:[esi]
nop
movzx edx, word [ecx + eax]
mov word [ebx + eax + 0xc], dx
add eax, 2
test dx, dx
jne 0x100039c0
mov eax, dword [ebp - 0x18]
mov dword [ebx + 4], eax
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x100039fb
mov edi, dword [ebp - 0x10]
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 0x100039e8
mov dword [ebx + 8], edi
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x10003d00
cmp word [eax], 0
mov edx, eax
je 0x10003a29
add edx, 2
cmp word [edx], 0
jne 0x10003a20
sub edx, eax
mov eax, edx
add edx, 2
sar eax, 1
mov dword [esi], edx
cmp ecx, edx
jb 0x10003b05
test ebx, ebx
je 0x10003b05
mov edi, dword [edi + 0x40]
test edi, edi
je 0x10003cd0
xor edx, edx
lea esi, [esi]
movzx ecx, word [edi + edx]
mov word [ebx + edx], cx
add edx, 2
test cx, cx
jne 0x10003a58
jmp 0x100039fe
mov dword [esp + 0xc], str.INTERNET_OPTION_HANDLE_TYPE_n
mov dword [esp + 8], str.APPINFO_QueryOption
mov dword [esp + 4], 0x100471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x100037c2
mov dword [esp + 0xc], str.INTERNET_OPTION_CONNECT_TIMEOUT_n
mov dword [esp + 8], str.APPINFO_QueryOption
mov dword [esp + 4], 0x100471a4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x100038ed
mov dword [esp + 0xc], str.INTERNET_OPTION_USER_AGENT_n
mov dword [esp + 8], str.APPINFO_QueryOption
mov dword [esp + 4], 0x100471a4
mov dword [esp], 3
mov dword [ebp - 0x10], edx
call sym._wine_dbg_log.constprop.0_5
mov edx, dword [ebp - 0x10]
jmp 0x100037fe
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
lea esp, [ebp - 0xc]
mov eax, 0x7a
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x10003ca0
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 - 0x14], eax
add eax, 0xc
sub esp, 0x20
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x48]
xor edx, edx
test eax, eax
je 0x10003bbc
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 - 0x10]
lea ecx, [edx + eax]
test ebx, ebx
je 0x10003cf0
cmp dword [esi], ecx
jb 0x10003cf0
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 0x10003c43
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebx + 0xc]
mov dword [esp + 0x14], edx
mov dword [ebp - 0x14], 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 - 0x14]
mov edx, dword [ebp - 0x18]
sub esp, 0x20
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edi + 0x48]
test eax, eax
je 0x10003c94
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], 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 - 0x14]
sub esp, 0x20
mov dword [esi], ecx
xor eax, eax
jmp 0x10003903
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0x14], 0
jmp 0x10003b6d
mov byte [ebx], 0
jmp 0x100038b8
mov eax, 0x57
jmp 0x10003903
xor edx, edx
mov word [ebx], dx
jmp 0x100039fe
mov dword [esi], 1
jmp 0x1000385f
mov dword [esi], ecx
mov eax, 0x7a
jmp 0x10003903
mov edx, 2
xor eax, eax
jmp 0x10003a32
mov eax, 2
jmp 0x1000397e