Function at 0x4a8ea0
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 0x4a9128
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 0x4a8fac
push str.https
push eax
call fcn.0054abea
mov esi, eax
add esp, 8
test esi, esi
je 0x4a8ef3
add esi, 0xc
jmp 0x4a8f0c
push 0x5e20c8
push dword [esp + 0x3c]
call fcn.0054abea
add esp, 8
test eax, eax
jne 0x4a8f7b
mov esi, dword [esp + 0x38]
push 0x5e20c0
push esi
call fcn.0054abea
add esp, 8
test eax, eax
lea ecx, [eax + 6]
cmovne esi, ecx
cmp word [esi], 0x20
jne 0x4a8f39
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0x20
je 0x4a8f30
movzx eax, word [esi]
test ax, ax
je 0x4a8f7b
cmp eax, 0x3a
je 0x4a8f7b
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a8f50
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x4a8f7b
push esi
push 0x100
push edi
call fcn.0056326a
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 0x4a8f8c
push eax
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4a8f97
push eax
call esi
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4a8fa2
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 0x4a90c1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054452c
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 0x4a90c1
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4a9052
mov dword [esp + 0x40], 2
mov dword [esp + 0x48], ecx
jmp 0x4a9069
cmp dword [esp + 0x30], 0
je 0x4a9083
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 0x4a90c1
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9090
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x4a90c1
push dword [esp + 0x28]
push 0x100
push dword [esp + 0x28]
call fcn.0056326a
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 0x4a90d2
push ecx
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4a90dd
push eax
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4a90e8
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a90f9
push eax
call fcn.00544527
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4a9104
push ecx
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4a910f
push eax
call esi
test edi, edi
je 0x4a8fa2
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