Function at 0x5fb760
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c2fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x7ca00c]
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 0x5fc073
mov ecx, edi
call fcn.005f15b0
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 0x5fb85f
test edi, edi
je 0x5fb7e5
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 0x701e7c
push 0x28
push edi
jmp 0x5fb84f
cmp dword [0x7eb9f0], 0
je 0x5fb825
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
mov ecx, esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push 0x701e7c
push 0x701e7c
push str.HTTPConnector
push 0x7721a4
push 0x28
call dword [0x6ef350]
call esi
add esp, 0x1c
jmp 0x5fb85f
mov esi, dword [0x7eb9f4]
test esi, esi
je 0x5fb85f
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 0x701e7c
push 0x28
push dword [0x7eb9f4]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
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 0x5fbffc
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063e329
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 0x5fbffc
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 0x5fb905
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00428800
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.004313b0
add esp, 0xc
test eax, eax
je 0x5fb9df
lea eax, [ebp - 0x28]
mov edx, str.https:__
push eax
lea ecx, [ebp - 0x8c]
call fcn.004326c0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x5fb997
mov ecx, eax
call fcn.00428770
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.00428770
push dword [ebp - 0x68]
call fcn.0063e134
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.0063e329
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.00428770
cmp dword [ebp - 0x44], 0
je 0x5fbb3e
test edi, edi
je 0x5fba12
mov esi, dword [edi]
push str.Proxy_detected:_WPAD
push str.HTTPConnector
push 0x701e7c
push 0x1e
push edi
jmp 0x5fba63
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x5fba46
push str.Proxy_detected:_WPAD
push 0x701e7c
push 0x701e7c
push str.HTTPConnector
push 0x7721a4
push 0x1e
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
jmp 0x5fba73
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5fba73
mov esi, dword [eax]
push str.Proxy_detected:_WPAD
push str.HTTPConnector
push 0x701e7c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
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 0x5fbf35
test edi, edi
je 0x5fbac5
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 0x701e7c
push 0x28
push edi
jmp 0x5fbb2e
cmp dword [0x7eb9f0], 0
je 0x5fbb05
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
mov ecx, esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push 0x701e7c
push 0x701e7c
push str.HTTPConnector
push 0x7721a4
push 0x28
call dword [0x6ef350]
call esi
add esp, 0x1c
jmp 0x5fbb3e
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5fbb43
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 0x701e7c
push 0x28
push dword [0x7eb9f4]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
mov eax, dword [0x7eb9f4]
cmp dword [ebp - 0x40], 0
je 0x5fbcb1
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 0x5fbb7f
mov esi, dword [edi]
push str.Proxy_detected:_PAC
push str.HTTPConnector
push 0x701e7c
push 0x1e
push edi
jmp 0x5fbbcb
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x5fbbb3
push str.Proxy_detected:_PAC
push 0x701e7c
push 0x701e7c
push str.HTTPConnector
push 0x7721a4
push 0x1e
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
jmp 0x5fbbdb
test eax, eax
je 0x5fbbdb
mov esi, dword [eax]
push str.Proxy_detected:_PAC
push str.HTTPConnector
push 0x701e7c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
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 0x5fbf35
test edi, edi
je 0x5fbc33
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 0x701e7c
push 0x28
push edi
jmp 0x5fbc9c
cmp dword [0x7eb9f0], 0
je 0x5fbc73
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x7eb9f0]
mov ecx, esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push 0x701e7c
push 0x701e7c
push str.HTTPConnector
push 0x7721a4
push 0x28
call dword [0x6ef350]
call esi
add esp, 0x1c
jmp 0x5fbcac
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5fbcb1
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 0x701e7c
push 0x28
push dword [0x7eb9f4]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
mov eax, dword [0x7eb9f4]
cmp dword [ebp - 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
je 0x5fbebf
test edi, edi
je 0x5fbce4
mov esi, dword [edi]
push str.Proxy_detected:_Direct
push str.HTTPConnector
push 0x701e7c
push 0x1e
push edi
jmp 0x5fbd30
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x5fbd18
push str.Proxy_detected:_Direct
push 0x701e7c
push 0x701e7c
push str.HTTPConnector
push 0x7721a4
push 0x1e
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
jmp 0x5fbd40
test eax, eax
je 0x5fbd40
mov esi, dword [eax]
push str.Proxy_detected:_Direct
push str.HTTPConnector
push 0x701e7c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x14
push str.https
push dword [ebp - 0x3c]
mov byte [ebp - 0x5d], 0
call fcn.0064feba
mov esi, eax
add esp, 8
test esi, esi
je 0x5fbd5f
add esi, 0xc
jmp 0x5fbd76
push 0x70a26c
push dword [ebp - 0x3c]
call fcn.0064feba
add esp, 8
test eax, eax
jne 0x5fbdec
mov esi, dword [ebp - 0x3c]
push 0x723628
push esi
call fcn.0064feba
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x5fbd8f
add ecx, 6
jmp 0x5fbd91
mov ecx, esi
movzx eax, word [ecx]
mov edx, eax
cmp eax, 0x20
jne 0x5fbdae
nop dword [eax + eax]
movzx eax, word [ecx + 2]
add ecx, 2
cmp eax, 0x20
je 0x5fbda0
mov edx, eax
test dx, dx
je 0x5fbdec
cmp dx, 0x3a
je 0x5fbdec
mov edx, ecx
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x5fbdc0
sub edx, esi
sar edx, 1
cmp edx, 0x100
jg 0x5fbdec
push ecx
push 0x100
push dword [ebp - 0x64]
call fcn.00656e94
add esp, 0xc
mov byte [ebp - 0x5d], 1
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x5fbdfa
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x5fbe08
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x5fbe16
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp byte [ebp - 0x5e], 0
je 0x5fbe23
mov ecx, edi
call fcn.005f1be0
test edi, edi
je 0x5fbe40
push dword [ebp - 0x64]
mov esi, dword [edi]
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x701e7c
push 0x1e
push edi
jmp 0x5fbe97
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x5fbe77
push dword [ebp - 0x64]
mov ecx, esi
push str.Proxy_Url:__s
push 0x701e7c
push 0x701e7c
push str.HTTPConnector
push 0x7721a4
push 0x1e
call dword [0x6ef350]
call esi
add esp, 0x1c
jmp 0x5fbea7
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5fbea7
push dword [ebp - 0x64]
mov esi, dword [eax]
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x701e7c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x5fbeb7
push eax
call fcn.0063e134
add esp, 4
mov al, byte [ebp - 0x5d]
jmp 0x5fc0f0
test edi, edi
je 0x5fbed9
mov esi, dword [edi]
push str.No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x701e7c
push 0x1e
push edi
jmp 0x5fbf25
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x5fbf0d
push str.No_default_proxy_present_on_the_user_machine
push 0x701e7c
push 0x701e7c
push str.HTTPConnector
push 0x7721a4
push 0x1e
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
jmp 0x5fbf35
test eax, eax
je 0x5fbf35
mov esi, dword [eax]
push str.No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x701e7c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x14
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x5fbff9
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5fbf43
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x5fbff9
push dword [ebp - 0x30]
push 0x100
push dword [ebp - 0x64]
call fcn.00656e94
add esp, 0xc
test edi, edi
je 0x5fbf8e
push dword [ebp - 0x64]
mov esi, dword [edi]
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x701e7c
push 0x1e
push edi
jmp 0x5fbfe5
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x5fbfc5
push dword [ebp - 0x64]
mov ecx, esi
push str.Proxy_Url:__s
push 0x701e7c
push 0x701e7c
push str.HTTPConnector
push 0x7721a4
push 0x1e
call dword [0x6ef350]
call esi
add esp, 0x1c
jmp 0x5fbff5
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5fbff5
push dword [ebp - 0x64]
mov esi, dword [eax]
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x701e7c
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
mov byte [ebp - 0x5d], 1
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x5fc00a
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x5fc018
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x5fc026
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
test esi, esi
je 0x5fc033
push esi
call fcn.0063e134
add esp, 4
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x5fc041
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5fc04f
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x5fc05d
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp byte [ebp - 0x5e], 0
je 0x5fbeb7
mov ecx, edi
call fcn.005f1be0
mov al, byte [ebp - 0x5d]
jmp 0x5fc0f0
test edi, edi
je 0x5fc08d
mov esi, dword [edi]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x701e7c
push 0x28
push edi
jmp 0x5fc0de
mov esi, dword [0x7eb9f0]
test esi, esi
je 0x5fc0c1
push str.GetIEProxyInfo___invalid_arguments
push 0x701e7c
push 0x701e7c
push str.HTTPConnector
push 0x7721a4
push 0x28
mov ecx, esi
call dword [0x6ef350]
call esi
add esp, 0x18
jmp 0x5fc0ee
mov eax, dword [0x7eb9f4]
test eax, eax
je 0x5fc0ee
mov esi, dword [eax]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x701e7c
push 0x28
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x6ef350]
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.0063de71
mov esp, ebp
pop ebp
ret