Function at 0x5f1cd0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dac08
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x7e500c]
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 0x5f25e3
mov ecx, edi
call fcn.005e80c0
mov byte [ebp - 0x5e], al
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
jne 0x5f1dcf
test edi, edi
je 0x5f1d55
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push str.HTTPConnector
push 0x71a27c
push 0x28
push edi
jmp 0x5f1dbf
cmp dword [0x8076a4], 0
je 0x5f1d95
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x8076a4]
mov ecx, esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push 0x71a27c
push 0x71a27c
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x707770]
call esi
add esp, 0x1c
jmp 0x5f1dcf
mov esi, dword [0x8076a8]
test esi, esi
je 0x5f1dcf
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push str.HTTPConnector
push 0x71a27c
push 0x28
push dword [0x8076a8]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
xor esi, esi
mov byte [ebp - 0x5d], 0
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x70]
xorps xmm0, xmm0
mov dword [ebp - 0x6c], esi
push esi
push 0xfde9
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x2c], esi
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 0x5f256c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00651294
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 str.WinHTTP_AutoProxy
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x5f256c
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f1e75
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004271d0
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.0042fe40
add esp, 0xc
test eax, eax
je 0x5f1f4f
lea eax, [ebp - 0x28]
mov edx, str.https:__
push eax
lea ecx, [ebp - 0x8c]
call fcn.00431170
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x5f1f07
mov ecx, eax
call fcn.00427170
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.00427170
push dword [ebp - 0x68]
call fcn.0065109f
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.00651294
add esp, 8
mov ecx, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x68], ecx
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00427170
cmp dword [ebp - 0x44], 0
je 0x5f20ae
test edi, edi
je 0x5f1f82
mov esi, dword [edi]
push str.Proxy_detected:_WPAD
push str.HTTPConnector
push 0x71a27c
push 0x1e
push edi
jmp 0x5f1fd3
mov esi, dword [0x8076a4]
test esi, esi
je 0x5f1fb6
push str.Proxy_detected:_WPAD
push 0x71a27c
push 0x71a27c
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
jmp 0x5f1fe3
mov eax, dword [0x8076a8]
test eax, eax
je 0x5f1fe3
mov esi, dword [eax]
push str.Proxy_detected:_WPAD
push str.HTTPConnector
push 0x71a27c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
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 dword [ebp - 0x68]
mov dword [ebp - 0x48], 1
push dword [ebp - 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x5f24a5
test edi, edi
je 0x5f2035
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x71a27c
push 0x28
push edi
jmp 0x5f209e
cmp dword [0x8076a4], 0
je 0x5f2075
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x8076a4]
mov ecx, esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push 0x71a27c
push 0x71a27c
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x707770]
call esi
add esp, 0x1c
jmp 0x5f20ae
mov eax, dword [0x8076a8]
test eax, eax
je 0x5f20b3
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x71a27c
push 0x28
push dword [0x8076a8]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
mov eax, dword [0x8076a8]
cmp dword [ebp - 0x40], 0
je 0x5f2221
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 0x5f20ef
mov esi, dword [edi]
push str.Proxy_detected:_PAC
push str.HTTPConnector
push 0x71a27c
push 0x1e
push edi
jmp 0x5f213b
mov esi, dword [0x8076a4]
test esi, esi
je 0x5f2123
push str.Proxy_detected:_PAC
push 0x71a27c
push 0x71a27c
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
jmp 0x5f214b
test eax, eax
je 0x5f214b
mov esi, dword [eax]
push str.Proxy_detected:_PAC
push str.HTTPConnector
push 0x71a27c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
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
push dword [ebp - 0x68]
mov dword [ebp - 0x58], 0
push dword [ebp - 0x6c]
mov dword [ebp - 0x48], 1
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x5f24a5
test edi, edi
je 0x5f21a3
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x71a27c
push 0x28
push edi
jmp 0x5f220c
cmp dword [0x8076a4], 0
je 0x5f21e3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x8076a4]
mov ecx, esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push 0x71a27c
push 0x71a27c
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x707770]
call esi
add esp, 0x1c
jmp 0x5f221c
mov eax, dword [0x8076a8]
test eax, eax
je 0x5f2221
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x71a27c
push 0x28
push dword [0x8076a8]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
mov eax, dword [0x8076a8]
cmp dword [ebp - 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
je 0x5f242f
test edi, edi
je 0x5f2254
mov esi, dword [edi]
push str.Proxy_detected:_Direct
push str.HTTPConnector
push 0x71a27c
push 0x1e
push edi
jmp 0x5f22a0
mov esi, dword [0x8076a4]
test esi, esi
je 0x5f2288
push str.Proxy_detected:_Direct
push 0x71a27c
push 0x71a27c
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
jmp 0x5f22b0
test eax, eax
je 0x5f22b0
mov esi, dword [eax]
push str.Proxy_detected:_Direct
push str.HTTPConnector
push 0x71a27c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x14
push str.https
push dword [ebp - 0x3c]
mov byte [ebp - 0x5d], 0
call fcn.00662d66
mov esi, eax
add esp, 8
test esi, esi
je 0x5f22cf
add esi, 0xc
jmp 0x5f22e6
push 0x722754
push dword [ebp - 0x3c]
call fcn.00662d66
add esp, 8
test eax, eax
jne 0x5f235c
mov esi, dword [ebp - 0x3c]
push 0x73a8e4
push esi
call fcn.00662d66
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x5f22ff
add ecx, 6
jmp 0x5f2301
mov ecx, esi
movzx eax, word [ecx]
mov edx, eax
cmp eax, 0x20
jne 0x5f231e
nop dword [eax + eax]
movzx eax, word [ecx + 2]
add ecx, 2
cmp eax, 0x20
je 0x5f2310
mov edx, eax
test dx, dx
je 0x5f235c
cmp dx, 0x3a
je 0x5f235c
mov edx, ecx
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x5f2330
sub edx, esi
sar edx, 1
cmp edx, 0x100
jg 0x5f235c
push ecx
push 0x100
push dword [ebp - 0x64]
call fcn.0066f874
add esp, 0xc
mov byte [ebp - 0x5d], 1
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x5f236a
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x5f2378
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x5f2386
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp byte [ebp - 0x5e], 0
je 0x5f2393
mov ecx, edi
call fcn.005e86f0
test edi, edi
je 0x5f23b0
push dword [ebp - 0x64]
mov esi, dword [edi]
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x71a27c
push 0x1e
push edi
jmp 0x5f2407
mov esi, dword [0x8076a4]
test esi, esi
je 0x5f23e7
push dword [ebp - 0x64]
mov ecx, esi
push str.Proxy_Url:__s
push 0x71a27c
push 0x71a27c
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call dword [0x707770]
call esi
add esp, 0x1c
jmp 0x5f2417
mov eax, dword [0x8076a8]
test eax, eax
je 0x5f2417
push dword [ebp - 0x64]
mov esi, dword [eax]
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x71a27c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x5f2427
push eax
call fcn.0065109f
add esp, 4
mov al, byte [ebp - 0x5d]
jmp 0x5f2660
test edi, edi
je 0x5f2449
mov esi, dword [edi]
push str.No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x71a27c
push 0x1e
push edi
jmp 0x5f2495
mov esi, dword [0x8076a4]
test esi, esi
je 0x5f247d
push str.No_default_proxy_present_on_the_user_machine
push 0x71a27c
push 0x71a27c
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
jmp 0x5f24a5
test eax, eax
je 0x5f24a5
mov esi, dword [eax]
push str.No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x71a27c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x14
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x5f2569
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f24b3
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x5f2569
push dword [ebp - 0x30]
push 0x100
push dword [ebp - 0x64]
call fcn.0066f874
add esp, 0xc
test edi, edi
je 0x5f24fe
push dword [ebp - 0x64]
mov esi, dword [edi]
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x71a27c
push 0x1e
push edi
jmp 0x5f2555
mov esi, dword [0x8076a4]
test esi, esi
je 0x5f2535
push dword [ebp - 0x64]
mov ecx, esi
push str.Proxy_Url:__s
push 0x71a27c
push 0x71a27c
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call dword [0x707770]
call esi
add esp, 0x1c
jmp 0x5f2565
mov eax, dword [0x8076a8]
test eax, eax
je 0x5f2565
push dword [ebp - 0x64]
mov esi, dword [eax]
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x71a27c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
mov byte [ebp - 0x5d], 1
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x5f257a
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x5f2588
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x5f2596
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
test esi, esi
je 0x5f25a3
push esi
call fcn.0065109f
add esp, 4
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x5f25b1
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5f25bf
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x5f25cd
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp byte [ebp - 0x5e], 0
je 0x5f2427
mov ecx, edi
call fcn.005e86f0
mov al, byte [ebp - 0x5d]
jmp 0x5f2660
test edi, edi
je 0x5f25fd
mov esi, dword [edi]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x71a27c
push 0x28
push edi
jmp 0x5f264e
mov esi, dword [0x8076a4]
test esi, esi
je 0x5f2631
push str.GetIEProxyInfo___invalid_arguments
push 0x71a27c
push 0x71a27c
push str.HTTPConnector
push str.OOBEUtils
push 0x28
mov ecx, esi
call dword [0x707770]
call esi
add esp, 0x18
jmp 0x5f265e
mov eax, dword [0x8076a8]
test eax, eax
je 0x5f265e
mov esi, dword [eax]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x71a27c
push 0x28
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x707770]
call esi
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.00650ddc
mov esp, ebp
pop ebp
ret