Function at 0x10152770
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023d10d
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x64], esi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
test esi, esi
je 0x1015320d
mov ecx, edi
call fcn.10173bb0
mov byte [ebp - 0x5e], al
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
jne 0x1015286f
test edi, edi
je 0x101527f5
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push str.HTTPConnector
push 0x1025b044
push 0x28
push edi
jmp 0x1015285f
cmp dword [0x102eec44], 0
je 0x10152835
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x102eec44]
mov ecx, esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push 0x1025b044
push 0x1025b044
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x1024852c]
call esi
add esp, 0x1c
jmp 0x1015286f
mov esi, dword [0x102eec48]
test esi, esi
je 0x1015286f
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push str.HTTPConnector
push 0x1025b044
push 0x28
push dword [0x102eec48]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x18
xor esi, esi
mov byte [ebp - 0x5d], 0
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x74]
xorps xmm0, xmm0
mov dword [ebp - 0x70], esi
push esi
push 0xfde9
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x2c], esi
movq qword [ebp - 0x4c], xmm0
movq qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x101530ee
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101d062a
add esp, 4
mov esi, eax
mov dword [ebp - 0x68], esi
push dword [ebp - 0x6c]
push esi
push 0xffffffffffffffff
push dword [ebp - 0x74]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0
push 1
push str.WinHTTP_AutoProxy
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x101530ee
mov ecx, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10152916
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.1000aef0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
setae byte [ebp - 0x5f]
push 4
push str.http
push 0
call fcn.10028660
add esp, 0xc
test eax, eax
je 0x10152a13
mov ecx, dword [ebp - 0x18]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 8
jb 0x101532a5
cmp byte [ebp - 0x5f], 0
lea eax, [ebp - 0x28]
push ecx
cmovne eax, dword [ebp - 0x28]
push eax
push 8
push str.https:__
push ecx
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x8c]
call fcn.10011120
lea ecx, [ebp - 0x28]
call fcn.1000ae90
movups xmm0, xmmword [ebp - 0x8c]
xor eax, eax
lea ecx, [ebp - 0x8c]
mov word [ebp - 0x8c], ax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x7c]
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
call fcn.1000ae90
push esi
call fcn.101d0625
mov esi, dword [ebp - 0x18]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101d062a
cmp dword [ebp - 0x14], 8
mov ecx, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x68], ecx
cmovae eax, dword [ebp - 0x28]
push eax
push esi
push ecx
call fcn.101dc63d
add esp, 0x14
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ae90
cmp dword [ebp - 0x44], 0
je 0x10152b72
test edi, edi
je 0x10152a46
mov esi, dword [edi]
push str.Proxy_detected:_WPAD
push str.HTTPConnector
push 0x1025b044
push 0x1e
push edi
jmp 0x10152a97
mov esi, dword [0x102eec44]
test esi, esi
je 0x10152a7a
push str.Proxy_detected:_WPAD
push 0x1025b044
push 0x1025b044
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x18
jmp 0x10152aa7
mov eax, dword [0x102eec48]
test eax, eax
je 0x10152aa7
mov esi, dword [eax]
push str.Proxy_detected:_WPAD
push str.HTTPConnector
push 0x1025b044
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x14
lea eax, [ebp - 0x34]
mov dword [ebp - 0x5c], 1
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x58], 3
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x48], 1
push dword [ebp - 0x70]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x10153025
test edi, edi
je 0x10152af9
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x1025b044
push 0x28
push edi
jmp 0x10152b62
cmp dword [0x102eec44], 0
je 0x10152b39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x102eec44]
mov ecx, esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push 0x1025b044
push 0x1025b044
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x1024852c]
call esi
add esp, 0x1c
jmp 0x10152b72
mov eax, dword [0x102eec48]
test eax, eax
je 0x10152b77
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x1025b044
push 0x28
push dword [0x102eec48]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x18
mov eax, dword [0x102eec48]
cmp dword [ebp - 0x40], 0
je 0x10152ce5
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x4c], xmm0
movq qword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x5c], xmm0
test edi, edi
je 0x10152bb3
mov esi, dword [edi]
push str.Proxy_detected:_PAC
push str.HTTPConnector
push 0x1025b044
push 0x1e
push edi
jmp 0x10152bff
mov esi, dword [0x102eec44]
test esi, esi
je 0x10152be7
push str.Proxy_detected:_PAC
push 0x1025b044
push 0x1025b044
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x18
jmp 0x10152c0f
test eax, eax
je 0x10152c0f
mov esi, dword [eax]
push str.Proxy_detected:_PAC
push str.HTTPConnector
push 0x1025b044
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x14
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 2
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x58], 0
push dword [ebp - 0x70]
mov dword [ebp - 0x48], 1
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x10153025
test edi, edi
je 0x10152c67
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x1025b044
push 0x28
push edi
jmp 0x10152cd0
cmp dword [0x102eec44], 0
je 0x10152ca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x102eec44]
mov ecx, esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push 0x1025b044
push 0x1025b044
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x1024852c]
call esi
add esp, 0x1c
jmp 0x10152ce0
mov eax, dword [0x102eec48]
test eax, eax
je 0x10152ce5
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x1025b044
push 0x28
push dword [0x102eec48]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x18
mov eax, dword [0x102eec48]
cmp dword [ebp - 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
je 0x10152faf
test edi, edi
je 0x10152d18
mov esi, dword [edi]
push str.Proxy_detected:_Direct
push str.HTTPConnector
push 0x1025b044
push 0x1e
push edi
jmp 0x10152d64
mov esi, dword [0x102eec44]
test esi, esi
je 0x10152d4c
push str.Proxy_detected:_Direct
push 0x1025b044
push 0x1025b044
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x18
jmp 0x10152d74
test eax, eax
je 0x10152d74
mov esi, dword [eax]
push str.Proxy_detected:_Direct
push str.HTTPConnector
push 0x1025b044
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x14
push str.https
push dword [ebp - 0x3c]
mov byte [ebp - 0x5d], 0
call fcn.101d1fe3
mov esi, eax
add esp, 8
test esi, esi
je 0x10152d93
add esi, 0xc
jmp 0x10152daa
push 0x1027077c
push dword [ebp - 0x3c]
call fcn.101d1fe3
add esp, 8
test eax, eax
jne 0x10152e1c
mov esi, dword [ebp - 0x3c]
push 0x102a5d84
push esi
call fcn.101d1fe3
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x10152dc3
add ecx, 6
jmp 0x10152dc5
mov ecx, esi
movzx eax, word [ecx]
mov edx, eax
cmp eax, 0x20
jne 0x10152dde
nop
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
cmp eax, 0x20
je 0x10152dd0
movzx eax, dx
test ax, ax
je 0x10152e1c
cmp eax, 0x3a
je 0x10152e1c
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10152df0
sub edx, esi
sar edx, 1
cmp edx, 0x100
jg 0x10152e1c
push ecx
push 0x100
push dword [ebp - 0x64]
call fcn.101dc63d
add esp, 0xc
mov byte [ebp - 0x5d], 1
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x10152e2a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x10152e38
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x10152e46
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0x5e], 0
je 0x10152f4a
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x10152f4a
test edi, edi
je 0x10152e92
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push str.In_revertThreadContextToProcessContext._Cant_RevertToSelf._ErrorCode:__d_.
push str.ProcessUtils
push 0x1025b044
push 0x32
push edi
call dword [0x1024852c]
call esi
add esp, 0x18
jmp 0x10152f4e
cmp dword [0x102eec44], 0
je 0x10152f0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x102eec44]
mov ecx, esi
push eax
push str.In_revertThreadContextToProcessContext._Cant_RevertToSelf._ErrorCode:__d_.
push 0x1025b044
push 0x1025b044
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x1024852c]
call esi
add esp, 0x1c
mov esi, dword [0x102eec44]
test esi, esi
je 0x10152f67
push dword [ebp - 0x64]
mov ecx, esi
push str.Proxy_Url:__s
push 0x1025b044
push 0x1025b044
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call dword [0x1024852c]
call esi
add esp, 0x1c
jmp 0x10152f97
mov esi, dword [0x102eec48]
test esi, esi
je 0x10152f97
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push str.In_revertThreadContextToProcessContext._Cant_RevertToSelf._ErrorCode:__d_.
push str.ProcessUtils
push 0x1025b044
push 0x32
push dword [0x102eec48]
call dword [0x1024852c]
call esi
add esp, 0x18
jmp 0x10152ed0
test edi, edi
je 0x10152ed0
push dword [ebp - 0x64]
mov esi, dword [edi]
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x1025b044
push 0x1e
push edi
jmp 0x10152f87
mov eax, dword [0x102eec48]
test eax, eax
je 0x10152f97
push dword [ebp - 0x64]
mov esi, dword [eax]
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x1025b044
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x18
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x10152fa7
push eax
call fcn.101d0625
add esp, 4
mov al, byte [ebp - 0x5d]
jmp 0x1015328a
test edi, edi
je 0x10152fc9
mov esi, dword [edi]
push str.No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x1025b044
push 0x1e
push edi
jmp 0x10153015
mov esi, dword [0x102eec44]
test esi, esi
je 0x10152ffd
push str.No_default_proxy_present_on_the_user_machine
push 0x1025b044
push 0x1025b044
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x18
jmp 0x10153025
test eax, eax
je 0x10153025
mov esi, dword [eax]
push str.No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x1025b044
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x14
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x101530eb
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10153033
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x101530eb
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x64]
push 0x100
push esi
call fcn.101dc63d
add esp, 0xc
test edi, edi
je 0x1015307f
push dword [ebp - 0x64]
mov esi, dword [edi]
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x1025b044
push 0x1e
push edi
jmp 0x101530d7
mov eax, dword [0x102eec44]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x101530b7
push esi
push str.Proxy_Url:__s
push 0x1025b044
push 0x1025b044
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
mov ecx, eax
call dword [0x1024852c]
call dword [ebp - 0x6c]
add esp, 0x1c
jmp 0x101530e7
mov eax, dword [0x102eec48]
test eax, eax
je 0x101530e7
push dword [ebp - 0x64]
mov esi, dword [eax]
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x1025b044
push 0x1e
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x18
mov byte [ebp - 0x5d], 1
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x101530fc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x1015310a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x10153118
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
je 0x10153125
push esi
call fcn.101d0625
add esp, 4
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10153133
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10153141
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x1015314f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp byte [ebp - 0x5e], 0
je 0x10153208
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x10153208
test edi, edi
je 0x10153188
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.In_revertThreadContextToProcessContext._Cant_RevertToSelf._ErrorCode:__d_.
push str.ProcessUtils
push 0x1025b044
push 0x32
push edi
jmp 0x101531f8
cmp dword [0x102eec44], 0
je 0x101531ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x102eec44]
mov ecx, esi
push eax
push str.In_revertThreadContextToProcessContext._Cant_RevertToSelf._ErrorCode:__d_.
push 0x1025b044
push 0x1025b044
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x1024852c]
call esi
mov al, byte [ebp - 0x5d]
add esp, 0x1c
jmp 0x1015328a
mov esi, dword [0x102eec48]
test esi, esi
je 0x10153208
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.In_revertThreadContextToProcessContext._Cant_RevertToSelf._ErrorCode:__d_.
push str.ProcessUtils
push 0x1025b044
push 0x32
push dword [0x102eec48]
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x18
mov al, byte [ebp - 0x5d]
jmp 0x1015328a
test edi, edi
je 0x10153227
mov esi, dword [edi]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x1025b044
push 0x28
push edi
jmp 0x10153278
mov esi, dword [0x102eec44]
test esi, esi
je 0x1015325b
push str.GetIEProxyInfo___invalid_arguments
push 0x1025b044
push 0x1025b044
push str.HTTPConnector
push str.OOBEUtils
push 0x28
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x18
jmp 0x10153288
mov eax, dword [0x102eec48]
test eax, eax
je 0x10153288
mov esi, dword [eax]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x1025b044
push 0x28
push eax
mov esi, dword [esi + 0x34]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
call fcn.1000a360
int3