Function at 0x65fa70
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x64], esi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
test esi, esi
je 0x6602df
push edi
call fcn.0065da40
mov byte [ebp - 0x5e], al
add esp, 4
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x65fb52
test edi, edi
je 0x65faf4
mov esi, dword [edi]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push str.HTTPConnector
push 0x799430
push 0x28
push edi
jmp 0x65fb4c
cmp dword [0x87d0dc], 0
je 0x65fb26
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push 0x799430
push 0x799430
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x87d0dc]
add esp, 0x1c
jmp 0x65fb52
mov esi, dword [0x87d0e0]
test esi, esi
je 0x65fb52
mov esi, dword [esi]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push str.HTTPConnector
push 0x799430
push 0x28
push dword [0x87d0e0]
call dword [esi + 0x34]
add esp, 0x18
xor eax, eax
mov byte [ebp - 0x5d], 0
push eax
push eax
push 0xffffffffffffffff
push dword [ebp - 0x70]
xorps xmm0, xmm0
mov dword [ebp - 0x68], eax
push eax
push 0xfde9
mov dword [ebp - 0x6c], eax
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x2c], eax
movq qword [ebp - 0x4c], xmm0
movq qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x660271
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006d0f4b
add esp, 4
mov esi, eax
mov dword [ebp - 0x68], esi
push dword [ebp - 0x74]
push esi
push 0xffffffffffffffff
push dword [ebp - 0x70]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0
push 1
push 0x79cd8c
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x660271
mov ecx, esi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x65fc00
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00426d40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push 4
push str.http
push 0
call fcn.00457810
add esp, 0xc
test eax, eax
je 0x65fcdb
lea eax, [ebp - 0x28]
mov edx, str.https:__
push eax
lea ecx, [ebp - 0x8c]
call fcn.00457400
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x65fc92
mov ecx, eax
call fcn.00426ce0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x8c]
call fcn.00426ce0
mov eax, dword [ebp - 0x68]
push eax
call fcn.006d0c28
mov eax, dword [ebp - 0x18]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006d0f4b
add esp, 8
mov esi, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x68], esi
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00426ce0
cmp dword [ebp - 0x44], 0
je 0x65fe1d
test edi, edi
je 0x65fd0e
mov eax, dword [edi]
push str.Proxy_detected:_WPAD
push str.HTTPConnector
push 0x799430
push 0x1e
push edi
jmp 0x65fd57
mov eax, dword [0x87d0dc]
test eax, eax
je 0x65fd39
push str.Proxy_detected:_WPAD
push 0x799430
push 0x799430
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x65fd5d
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x65fd5d
mov eax, dword [ecx]
push str.Proxy_detected:_WPAD
push str.HTTPConnector
push 0x799430
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
lea eax, [ebp - 0x34]
mov dword [ebp - 0x5c], 1
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x58], 3
push eax
push esi
push dword [ebp - 0x6c]
mov dword [ebp - 0x48], 1
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x6601c4
test edi, edi
je 0x65fdae
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [edi]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x799430
push 0x28
push edi
jmp 0x65fe17
cmp dword [0x87d0dc], 0
je 0x65fdec
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push 0x799430
push 0x799430
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x87d0dc]
mov ecx, dword [0x87d0e0]
add esp, 0x1c
jmp 0x65fe29
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x65fe23
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ecx]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x799430
push 0x28
push dword [0x87d0e0]
call dword [esi + 0x34]
add esp, 0x18
mov ecx, dword [0x87d0e0]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x40], 0
je 0x65ff71
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x4c], xmm0
movq qword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x5c], xmm0
test edi, edi
je 0x65fe65
mov eax, dword [edi]
push str.Proxy_detected:_PAC
push str.HTTPConnector
push 0x799430
push 0x1e
push edi
jmp 0x65fea8
mov eax, dword [0x87d0dc]
test eax, eax
je 0x65fe90
push str.Proxy_detected:_PAC
push 0x799430
push 0x799430
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x65feae
test ecx, ecx
je 0x65feae
mov eax, dword [ecx]
push str.Proxy_detected:_PAC
push str.HTTPConnector
push 0x799430
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 2
push eax
mov eax, dword [ebp - 0x68]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 1
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x6601c4
test edi, edi
je 0x65ff08
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [edi]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x799430
push 0x28
push edi
jmp 0x65ff65
cmp dword [0x87d0dc], 0
je 0x65ff3a
call esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push 0x799430
push 0x799430
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x87d0dc]
add esp, 0x1c
jmp 0x65ff6b
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x65ff71
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ecx]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x799430
push 0x28
push dword [0x87d0e0]
call dword [esi + 0x34]
add esp, 0x18
mov ecx, dword [0x87d0e0]
cmp dword [ebp - 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
je 0x660161
test edi, edi
je 0x65ffa4
mov eax, dword [edi]
push str.Proxy_detected:_Direct
push str.HTTPConnector
push 0x799430
push 0x1e
push edi
jmp 0x65ffe7
mov eax, dword [0x87d0dc]
test eax, eax
je 0x65ffcf
push str.Proxy_detected:_Direct
push 0x799430
push 0x799430
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x65ffed
test ecx, ecx
je 0x65ffed
mov eax, dword [ecx]
push str.Proxy_detected:_Direct
push str.HTTPConnector
push 0x799430
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
push str.https
push dword [ebp - 0x3c]
mov byte [ebp - 0x5d], 0
call fcn.006e8537
mov esi, eax
add esp, 8
test esi, esi
je 0x66000c
add esi, 0xc
jmp 0x660023
push 0x79cd84
push dword [ebp - 0x3c]
call fcn.006e8537
add esp, 8
test eax, eax
jne 0x66009f
mov esi, dword [ebp - 0x3c]
push 0x79cdb0
push esi
call fcn.006e8537
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x66003c
add ecx, 6
jmp 0x66003e
mov ecx, esi
movzx eax, word [ecx]
mov edx, eax
cmp eax, 0x20
jne 0x66005e
nop dword [eax + eax]
movzx eax, word [ecx + 2]
add ecx, 2
cmp eax, 0x20
je 0x660050
mov edx, eax
test dx, dx
je 0x66009f
cmp dx, 0x3a
je 0x66009f
mov edx, ecx
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x660070
sub edx, esi
mov esi, dword [ebp - 0x64]
sar edx, 1
cmp edx, 0x100
jg 0x6600a2
push ecx
push 0x100
push esi
call fcn.00703ff1
add esp, 0xc
mov byte [ebp - 0x5d], 1
jmp 0x6600a2
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x40]
mov eax, dword [sym.imp.KERNEL32.dll_GlobalFree]
test ecx, ecx
je 0x6600b6
push ecx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x6600c0
push ecx
call eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x6600ce
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0x5e], 0
je 0x6600dd
push edi
call fcn.0065e070
add esp, 4
test edi, edi
je 0x6600f8
mov eax, dword [edi]
push esi
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x799430
push 0x1e
push edi
jmp 0x660143
mov eax, dword [0x87d0dc]
test eax, eax
je 0x660124
push esi
push str.Proxy_Url:__s
push 0x799430
push 0x799430
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x1c
jmp 0x660149
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x660149
mov eax, dword [ecx]
push esi
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x799430
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x18
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x660159
push eax
call fcn.006d0c28
add esp, 4
mov al, byte [ebp - 0x5d]
jmp 0x66034a
test edi, edi
je 0x66017b
mov eax, dword [edi]
push str.No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x799430
push 0x1e
push edi
jmp 0x6601be
mov eax, dword [0x87d0dc]
test eax, eax
je 0x6601a6
push str.No_default_proxy_present_on_the_user_machine
push 0x799430
push 0x799430
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x6601c4
test ecx, ecx
je 0x6601c4
mov eax, dword [ecx]
push str.No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x799430
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x660271
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6601d2
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x660271
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x64]
push 0x100
push esi
call fcn.00703ff1
add esp, 0xc
test edi, edi
je 0x66021c
mov eax, dword [edi]
push esi
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x799430
push 0x1e
push edi
jmp 0x660267
mov eax, dword [0x87d0dc]
test eax, eax
je 0x660248
push esi
push str.Proxy_Url:__s
push 0x799430
push 0x799430
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x1c
jmp 0x66026d
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x66026d
mov eax, dword [ecx]
push esi
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x799430
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x18
mov byte [ebp - 0x5d], 1
mov eax, dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x660281
push eax
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x66028b
push eax
call esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x660295
push eax
call esi
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x6602a5
push eax
call fcn.006d0c28
add esp, 4
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x6602af
push ecx
call esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x6602b9
push eax
call esi
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x6602c7
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp byte [ebp - 0x5e], 0
je 0x660159
push edi
call fcn.0065e070
mov al, byte [ebp - 0x5d]
add esp, 4
jmp 0x66034a
test edi, edi
je 0x6602f9
mov eax, dword [edi]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x799430
push 0x28
push edi
jmp 0x660342
mov eax, dword [0x87d0dc]
test eax, eax
je 0x660324
push str.GetIEProxyInfo___invalid_arguments
push 0x799430
push 0x799430
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call eax
add esp, 0x18
jmp 0x660348
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x660348
mov eax, dword [ecx]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x799430
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret