Function at 0x500700
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599045
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
movups xmmword [ebp - 0x60], xmm0
mov eax, dword [ebx + 4]
mov dword [ebp - 4], 0
test eax, eax
je 0x500757
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 4], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x50076c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x500781
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 0xc], 0
movzx eax, byte [0x5a2624]
lea ecx, [ebp - 0x11]
push eax
call fcn.0050fa20
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0050fdc0
add esp, 4
cmp byte [ebp - 0x18], 0
je 0x500830
cmp byte [ebp - 0x20], 1
jne 0x5008ad
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x11]
movlpd qword [ebp - 0x28], xmm0
call fcn.0050fa50
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x5008ad
mov edi, dword [ebp - 0x24]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
call dword [0x5a0478]
mov ecx, edi
call esi
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x50]
push eax
push str.Failed_to_impersonate_logged_on_user:__hs
push 0x1de
push str.XMLUpdater::v2::CUpdater::fill_proxy_data_for_specific_url
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterxmlUpdater.cpp
push 1
call fcn.00500ef0
add esp, 0x18
lea ecx, [ebp - 0x50]
call fcn.004248c0
jmp 0x5008ad
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [edi]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
call dword [0x5a0478]
mov ecx, edi
call esi
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x50]
push eax
push str.Unable_to_determine_if_process_is_running_as_a_service:__hs
push 0x1e3
push str.XMLUpdater::v2::CUpdater::fill_proxy_data_for_specific_url
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterxmlUpdater.cpp
push 1
call fcn.00500ef0
mov edx, dword [ebp - 0x3c]
add esp, 0x18
cmp edx, 0x10
jb 0x5008ad
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5008a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x500aff
push edx
push ecx
call fcn.00554242
add esp, 8
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x500988
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x5009ea
mov eax, dword [ebx + 8]
test eax, eax
je 0x5008df
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 8], 0
test esi, esi
je 0x500924
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5008f0
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
lea eax, [edi + edi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 8], eax
test eax, eax
je 0x500988
push esi
push edi
push eax
call fcn.005603eb
add esp, 0xc
test eax, eax
jne 0x500988
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp - 0x54]
test eax, eax
je 0x50093c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 0xc], 0
test esi, esi
je 0x500af8
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x500950
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
lea eax, [edi + edi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x500988
push esi
push edi
push eax
call fcn.005603eb
add esp, 0xc
test eax, eax
je 0x500af8
xor bl, bl
lea ecx, [ebp - 0x11]
call fcn.0050fa30
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x5009a7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x5009bc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x5009ca
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553daa
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x5c]
jne 0x5009fb
test eax, eax
je 0x500af8
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
test eax, eax
je 0x500a18
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x48], eax
jmp 0x500a26
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 3
push 0
push 0
push 0
push 1
push str.Temp
mov dword [ebp - 0x3c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
je 0x500988
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], vtable.XMLUpdater::v2::auto_proxy_info.0
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x34], 1
push eax
push dword [ebp - 0x64]
mov dword [ebp - 0x30], 0
push edi
mov dword [ebp - 0x2c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
push edi
mov esi, eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
jne 0x500ab4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], vtable.XMLUpdater::v2::auto_proxy_info.0
test eax, eax
je 0x500a9d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x500988
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x500988
cmp dword [ebp - 0x34], 3
jne 0x500ace
push dword [ebp - 0x30]
mov ecx, ebx
call fcn.00500b10
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.00500b90
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], vtable.XMLUpdater::v2::auto_proxy_info.0
test eax, eax
je 0x500aea
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x500af8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov bl, 1
jmp 0x50098a
call fcn.0055ec17
int3