Function at 0x500670
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598fc5
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 0x5006c7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 4], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x5006dc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x5006f1
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.0050f9a0
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.0050fd40
add esp, 4
cmp byte [ebp - 0x18], 0
je 0x5007a0
cmp byte [ebp - 0x20], 1
jne 0x50081d
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x11]
movlpd qword [ebp - 0x28], xmm0
call fcn.0050f9d0
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x50081d
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.00500e60
add esp, 0x18
lea ecx, [ebp - 0x50]
call fcn.00424840
jmp 0x50081d
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.00500e60
mov edx, dword [ebp - 0x3c]
add esp, 0x18
cmp edx, 0x10
jb 0x50081d
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x500813
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x500a6f
push edx
push ecx
call fcn.005541c2
add esp, 8
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x5008f8
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x50095a
mov eax, dword [ebx + 8]
test eax, eax
je 0x50084f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 8], 0
test esi, esi
je 0x500894
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x500860
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 0x5008f8
push esi
push edi
push eax
call fcn.0056036b
add esp, 0xc
test eax, eax
jne 0x5008f8
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp - 0x54]
test eax, eax
je 0x5008ac
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 0xc], 0
test esi, esi
je 0x500a68
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5008c0
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 0x5008f8
push esi
push edi
push eax
call fcn.0056036b
add esp, 0xc
test eax, eax
je 0x500a68
xor bl, bl
lea ecx, [ebp - 0x11]
call fcn.0050f9b0
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x500917
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x50092c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x50093a
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.00553d2a
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x5c]
jne 0x50096b
test eax, eax
je 0x500a68
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
test eax, eax
je 0x500988
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x48], eax
jmp 0x500996
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 0x5008f8
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 0x500a24
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], vtable.XMLUpdater::v2::auto_proxy_info.0
test eax, eax
je 0x500a0d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5008f8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x5008f8
cmp dword [ebp - 0x34], 3
jne 0x500a3e
push dword [ebp - 0x30]
mov ecx, ebx
call fcn.00500a80
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.00500b00
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], vtable.XMLUpdater::v2::auto_proxy_info.0
test eax, eax
je 0x500a5a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x500a68
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov bl, 1
jmp 0x5008fa
call fcn.0055eb97
int3