Function at 0x5005f0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598b75
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 0x500647
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 4], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x50065c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x500671
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.0050f920
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.0050fcc0
add esp, 4
cmp byte [ebp - 0x18], 0
je 0x500720
cmp byte [ebp - 0x20], 1
jne 0x50079d
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x11]
movlpd qword [ebp - 0x28], xmm0
call fcn.0050f950
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x50079d
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.00500de0
add esp, 0x18
lea ecx, [ebp - 0x50]
call fcn.00424840
jmp 0x50079d
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.00500de0
mov edx, dword [ebp - 0x3c]
add esp, 0x18
cmp edx, 0x10
jb 0x50079d
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x500793
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5009ef
push edx
push ecx
call fcn.00554162
add esp, 8
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x500878
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x5008da
mov eax, dword [ebx + 8]
test eax, eax
je 0x5007cf
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 8], 0
test esi, esi
je 0x500814
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5007e0
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 0x500878
push esi
push edi
push eax
call fcn.0056030b
add esp, 0xc
test eax, eax
jne 0x500878
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp - 0x54]
test eax, eax
je 0x50082c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 0xc], 0
test esi, esi
je 0x5009e8
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x500840
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 0x500878
push esi
push edi
push eax
call fcn.0056030b
add esp, 0xc
test eax, eax
je 0x5009e8
xor bl, bl
lea ecx, [ebp - 0x11]
call fcn.0050f930
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x500897
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x5008ac
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x5008ba
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.00553cca
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x5c]
jne 0x5008eb
test eax, eax
je 0x5009e8
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
test eax, eax
je 0x500908
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x48], eax
jmp 0x500916
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 0x500878
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 0x5009a4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], vtable.XMLUpdater::v2::auto_proxy_info.0
test eax, eax
je 0x50098d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x500878
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x500878
cmp dword [ebp - 0x34], 3
jne 0x5009be
push dword [ebp - 0x30]
mov ecx, ebx
call fcn.00500a00
push dword [ebp - 0x2c]
mov ecx, ebx
call fcn.00500a80
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], vtable.XMLUpdater::v2::auto_proxy_info.0
test eax, eax
je 0x5009da
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5009e8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov bl, 1
jmp 0x50087a
call fcn.0055eb27
int3