Function at 0x52b6f0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf728
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x64a070]
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 0x52beb9
push edi
call fcn.005296e0
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 0x52b7d2
test edi, edi
je 0x52b774
mov esi, dword [edi]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push str.HTTPConnector
push 0x5f8398
push 0x28
push edi
jmp 0x52b7cc
cmp dword [0x656c44], 0
je 0x52b7a6
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x28
call dword [0x656c44]
add esp, 0x1c
jmp 0x52b7d2
mov esi, dword [0x656c48]
test esi, esi
je 0x52b7d2
mov esi, dword [esi]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push str.HTTPConnector
push 0x5f8398
push 0x28
push dword [0x656c48]
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 0x52be4f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057653d
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 0x52be4f
push esi
lea ecx, [ebp - 0x28]
call fcn.00408810
push 0
push str.http
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00428450
test eax, eax
je 0x52b8eb
lea eax, [ebp - 0x28]
mov edx, str.https:__
push eax
lea ecx, [ebp - 0x8c]
call fcn.004220d0
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.0040d2b0
lea ecx, [ebp - 0x8c]
call fcn.004087d0
push esi
call fcn.00576339
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.0057653d
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.004087d0
cmp dword [ebp - 0x44], 0
je 0x52ba2d
test edi, edi
je 0x52b91e
mov eax, dword [edi]
push str.Proxy_detected:_WPAD
push str.HTTPConnector
push 0x5f8398
push 0x1e
push edi
jmp 0x52b967
mov eax, dword [0x656c44]
test eax, eax
je 0x52b949
push str.Proxy_detected:_WPAD
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x1e
call eax
add esp, 0x18
jmp 0x52b96d
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52b96d
mov eax, dword [ecx]
push str.Proxy_detected:_WPAD
push str.HTTPConnector
push 0x5f8398
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 0x52bda2
test edi, edi
je 0x52b9be
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 0x5f8398
push 0x28
push edi
jmp 0x52ba27
cmp dword [0x656c44], 0
je 0x52b9fc
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 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x28
call dword [0x656c44]
mov ecx, dword [0x656c48]
add esp, 0x1c
jmp 0x52ba39
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52ba33
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 0x5f8398
push 0x28
push dword [0x656c48]
call dword [esi + 0x34]
add esp, 0x18
mov ecx, dword [0x656c48]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x40], 0
je 0x52bb81
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 0x52ba75
mov eax, dword [edi]
push str.Proxy_detected:_PAC
push str.HTTPConnector
push 0x5f8398
push 0x1e
push edi
jmp 0x52bab8
mov eax, dword [0x656c44]
test eax, eax
je 0x52baa0
push str.Proxy_detected:_PAC
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x1e
call eax
add esp, 0x18
jmp 0x52babe
test ecx, ecx
je 0x52babe
mov eax, dword [ecx]
push str.Proxy_detected:_PAC
push str.HTTPConnector
push 0x5f8398
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 0x52bda2
test edi, edi
je 0x52bb18
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 0x5f8398
push 0x28
push edi
jmp 0x52bb75
cmp dword [0x656c44], 0
je 0x52bb4a
call esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x28
call dword [0x656c44]
add esp, 0x1c
jmp 0x52bb7b
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52bb81
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 0x5f8398
push 0x28
push dword [0x656c48]
call dword [esi + 0x34]
add esp, 0x18
mov ecx, dword [0x656c48]
cmp dword [ebp - 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
je 0x52bd3f
test edi, edi
je 0x52bbb4
mov eax, dword [edi]
push str.Proxy_detected:_Direct
push str.HTTPConnector
push 0x5f8398
push 0x1e
push edi
jmp 0x52bbf7
mov eax, dword [0x656c44]
test eax, eax
je 0x52bbdf
push str.Proxy_detected:_Direct
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x1e
call eax
add esp, 0x18
jmp 0x52bbfd
test ecx, ecx
je 0x52bbfd
mov eax, dword [ecx]
push str.Proxy_detected:_Direct
push str.HTTPConnector
push 0x5f8398
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.0058f290
mov esi, eax
add esp, 8
test esi, esi
je 0x52bc1c
add esi, 0xc
jmp 0x52bc33
push 0x5f83b4
push dword [ebp - 0x3c]
call fcn.0058f290
add esp, 8
test eax, eax
jne 0x52bc9f
mov esi, dword [ebp - 0x3c]
push 0x61fd34
push esi
call fcn.0058f290
add esp, 8
test eax, eax
lea ecx, [eax + 6]
cmovne esi, ecx
cmp word [esi], 0x20
jne 0x52bc59
nop
add esi, 2
cmp word [esi], 0x20
je 0x52bc50
movzx eax, word [esi]
test ax, ax
je 0x52bc9f
cmp eax, 0x3a
je 0x52bc9f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52bc70
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x52bc9f
push esi
mov esi, dword [ebp - 0x64]
push 0x100
push esi
call fcn.005a5850
add esp, 0xc
mov byte [ebp - 0x5d], 1
jmp 0x52bca2
mov esi, dword [ebp - 0x64]
lea ecx, [ebp - 0x44]
call fcn.0052b6c0
cmp byte [ebp - 0x5e], 0
je 0x52bcb9
push edi
call fcn.00529d40
add esp, 4
test edi, edi
je 0x52bce0
mov eax, dword [edi]
push esi
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x5f8398
push 0x1e
push edi
call dword [eax + 0x34]
mov al, byte [ebp - 0x5d]
add esp, 0x18
jmp 0x52bf24
mov eax, dword [0x656c44]
test eax, eax
je 0x52bd12
push esi
push str.Proxy_Url:__s
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x1e
call eax
mov al, byte [ebp - 0x5d]
add esp, 0x1c
jmp 0x52bf24
mov edx, dword [0x656c48]
test edx, edx
je 0x52bd37
mov ecx, dword [edx]
push esi
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x5f8398
push 0x1e
push edx
call dword [ecx + 0x34]
add esp, 0x18
mov al, byte [ebp - 0x5d]
jmp 0x52bf24
test edi, edi
je 0x52bd59
mov eax, dword [edi]
push str.No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x5f8398
push 0x1e
push edi
jmp 0x52bd9c
mov eax, dword [0x656c44]
test eax, eax
je 0x52bd84
push str.No_default_proxy_present_on_the_user_machine
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x1e
call eax
add esp, 0x18
jmp 0x52bda2
test ecx, ecx
je 0x52bda2
mov eax, dword [ecx]
push str.No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x5f8398
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x52be4f
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52bdb0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x52be4f
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x64]
push 0x100
push esi
call fcn.005a5850
add esp, 0xc
test edi, edi
je 0x52bdfa
mov eax, dword [edi]
push esi
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x5f8398
push 0x1e
push edi
jmp 0x52be45
mov eax, dword [0x656c44]
test eax, eax
je 0x52be26
push esi
push str.Proxy_Url:__s
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x1e
call eax
add esp, 0x1c
jmp 0x52be4b
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52be4b
mov eax, dword [ecx]
push esi
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x5f8398
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 0x52be5f
push eax
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x52be69
push eax
call esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x52be73
push eax
call esi
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x52be83
push eax
call fcn.00576339
add esp, 4
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x52be8d
push ecx
call esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x52be97
push eax
call esi
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x52bea5
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp byte [ebp - 0x5e], 0
je 0x52beb4
push edi
call fcn.00529d40
add esp, 4
mov al, byte [ebp - 0x5d]
jmp 0x52bf24
test edi, edi
je 0x52bed3
mov eax, dword [edi]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x5f8398
push 0x28
push edi
jmp 0x52bf1c
mov eax, dword [0x656c44]
test eax, eax
je 0x52befe
push str.GetIEProxyInfo___invalid_arguments
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x28
call eax
add esp, 0x18
jmp 0x52bf22
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52bf22
mov eax, dword [ecx]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x5f8398
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.0057608a
mov esp, ebp
pop ebp
ret