Function at 0x490a70
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
test edi, edi
je 0x490cf8
xor eax, eax
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
mov eax, dword [esp + 0x38]
mov byte [esp + 0x17], 0
test eax, eax
je 0x490b7c
push str.https
push eax
call fcn.0057957a
mov esi, eax
add esp, 8
test esi, esi
je 0x490ac3
add esi, 0xc
jmp 0x490adc
push 0x6444c8
push dword [esp + 0x3c]
call fcn.0057957a
add esp, 8
test eax, eax
jne 0x490b4b
mov esi, dword [esp + 0x38]
push 0x6444cc
push esi
call fcn.0057957a
add esp, 8
test eax, eax
lea ecx, [eax + 6]
cmovne esi, ecx
cmp word [esi], 0x20
jne 0x490b09
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0x20
je 0x490b00
movzx eax, word [esi]
test ax, ax
je 0x490b4b
cmp eax, 0x3a
je 0x490b4b
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490b20
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x490b4b
push esi
push 0x100
push edi
call fcn.0058ddd2
add esp, 0xc
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x490b5c
push eax
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x490b67
push eax
call esi
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x490b72
push ecx
call esi
mov al, byte [esp + 0x17]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
mov dword [esp + 0x18], 0
push edi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x3c], edi
push edi
push 0xfde9
movaps xmmword [esp + 0x58], xmm0
movq qword [esp + 0x68], xmm0
movq qword [esp + 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x490c91
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00562e5a
add esp, 4
mov esi, eax
mov dword [esp + 0x18], esi
push dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push edi
push edi
push 1
push str.WinHTTP_AutoProxy
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
je 0x490c91
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x490c22
mov dword [esp + 0x40], 2
mov dword [esp + 0x48], ecx
jmp 0x490c39
cmp dword [esp + 0x30], 0
je 0x490c53
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 3
lea eax, [esp + 0x24]
mov dword [esp + 0x54], 1
push eax
lea eax, [esp + 0x44]
push eax
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x490c91
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490c60
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x490c91
push dword [esp + 0x28]
push 0x100
push dword [esp + 0x28]
call fcn.0058ddd2
add esp, 0xc
mov byte [esp + 0x17], 1
mov ecx, dword [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test ecx, ecx
je 0x490ca2
push ecx
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x490cad
push eax
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x490cb8
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x490cc9
push eax
call fcn.00562e55
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x490cd4
push ecx
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x490cdf
push eax
call esi
test edi, edi
je 0x490b72
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov al, byte [esp + 0x17]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret