Function at 0x1008561
Capabilities:
Check if file exists
Initialize winhttp library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
xor eax, eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x40], ebx
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x18], ebx
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
call sub.cmutil.dll_IsLogonAsSystem
push 3
pop edi
test eax, eax
je 0x10085c6
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetDefaultProxyConfiguration]
test eax, eax
je 0x10085c6
cmp dword [ebp - 0x18], edi
jne 0x10085c6
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
jmp 0x1008669
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
xor esi, esi
inc esi
test eax, eax
jne 0x10085ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp eax, 2
jne 0x1008603
mov dword [ebp - 0x28], esi
jmp 0x1008603
xor ecx, ecx
cmp dword [ebp - 0x20], ecx
je 0x1008603
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 8], edi
cmp eax, ecx
je 0x1008603
mov dword [ebp - 4], eax
cmp dword [ebp - 0x28], ecx
je 0x100860e
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], esi
mov eax, dword [ebp - 0x24]
cmp eax, ecx
je 0x1008624
cmp word [eax], cx
je 0x1008624
or dword [ebp - 0x40], 2
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x28], ecx
je 0x1008669
push ecx
push ecx
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
test esi, esi
je 0x1008669
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x1008662
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
and dword [ebp - 0xc], 0
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x1008675
push ebx
call sub.cmutil.dll_CmStrCpyAllocW
jmp 0x1008677
xor eax, eax
cmp dword [ebp - 4], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
je 0x100868c
push dword [ebp - 4]
call sub.cmutil.dll_CmStrCpyAllocW
jmp 0x100868e
xor eax, eax
cmp dword [ebp - 0x20], 0
mov ecx, dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
je 0x10086ac
push dword [ebp - 0x20]
call esi
xor edi, edi
cmp dword [ebp - 0x24], edi
je 0x10086b8
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x1c], edi
je 0x10086c2
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x14], edi
je 0x10086cc
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], edi
je 0x10086d6
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x14