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 esi
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], esi
jne 0x10085c6
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
jmp 0x100866a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
xor edi, edi
inc edi
test eax, eax
jne 0x10085ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp eax, 2
jne 0x10085ff
mov dword [ebp - 0x28], edi
jmp 0x10085ff
cmp dword [ebp - 0x20], ebx
je 0x10085ff
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 8], esi
test eax, eax
je 0x10085ff
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 0x28], ecx
je 0x100860c
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x24]
cmp eax, ecx
je 0x1008622
cmp word [eax], cx
je 0x1008622
or dword [ebp - 0x40], 2
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x28], ecx
je 0x100866a
push ecx
push ecx
push ecx
push edi
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
test esi, esi
je 0x100866a
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 0x1008663
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
and dword [ebp - 0xc], 0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x1008676
push ebx
call sub.cmutil.dll_CmStrCpyAllocW
jmp 0x1008678
xor eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
cmp dword [ebp - 4], eax
je 0x100868c
push dword [ebp - 4]
call sub.cmutil.dll_CmStrCpyAllocW
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 0x10086aa
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x24], 0
je 0x10086b5
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x1c], 0
je 0x10086c0
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x14], 0
je 0x10086cb
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], 0
je 0x10086d6
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x14