Function at 0x4c2a00
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7158
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x67d070]
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 - 0x70], eax
test esi, esi
je 0x4c31c9
push edi
call fcn.004bc130
mov byte [ebp - 0x5e], al
add esp, 4
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
jne 0x4c2ae2
test edi, edi
je 0x4c2a84
mov esi, dword [edi]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push str.HTTPConnector
push 0x622628
push 0x28
push edi
jmp 0x4c2adc
cmp dword [0x689958], 0
je 0x4c2ab6
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x689958]
add esp, 0x1c
jmp 0x4c2ae2
mov esi, dword [0x68995c]
test esi, esi
je 0x4c2ae2
mov esi, dword [esi]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push str.HTTPConnector
push 0x622628
push 0x28
push dword [0x68995c]
call dword [esi + 0x34]
add esp, 0x18
xor eax, eax
mov byte [ebp - 0x5d], 0
push eax
push eax
push 0xffffffffffffffff
push dword [ebp - 0x70]
xorps xmm0, xmm0
mov dword [ebp - 0x68], eax
push eax
push 0xfde9
mov dword [ebp - 0x6c], eax
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x2c], eax
movq qword [ebp - 0x4c], xmm0
movq qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x4c315f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059a123
add esp, 4
mov esi, eax
mov dword [ebp - 0x68], esi
push dword [ebp - 0x74]
push esi
push 0xffffffffffffffff
push dword [ebp - 0x70]
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 - 0x6c], eax
test eax, eax
je 0x4c315f
push esi
lea ecx, [ebp - 0x28]
call fcn.00406e60
push 0
push str.http
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00450ec0
test eax, eax
je 0x4c2bfb
lea eax, [ebp - 0x28]
mov edx, str.https:__
push eax
lea ecx, [ebp - 0x8c]
call fcn.0042b470
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a8a0
lea ecx, [ebp - 0x8c]
call fcn.00406e20
push esi
call fcn.00599f1f
mov eax, dword [ebp - 0x18]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059a123
add esp, 8
mov esi, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x68], esi
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00406e20
cmp dword [ebp - 0x44], 0
je 0x4c2d3d
test edi, edi
je 0x4c2c2e
mov eax, dword [edi]
push str.Proxy_detected:_WPAD
push str.HTTPConnector
push 0x622628
push 0x1e
push edi
jmp 0x4c2c77
mov eax, dword [0x689958]
test eax, eax
je 0x4c2c59
push str.Proxy_detected:_WPAD
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x4c2c7d
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c2c7d
mov eax, dword [ecx]
push str.Proxy_detected:_WPAD
push str.HTTPConnector
push 0x622628
push 0x1e
push ecx
call dword [eax + 0x34]
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 esi
push dword [ebp - 0x6c]
mov dword [ebp - 0x48], 1
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x4c30b2
test edi, edi
je 0x4c2cce
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [edi]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x622628
push 0x28
push edi
jmp 0x4c2d37
cmp dword [0x689958], 0
je 0x4c2d0c
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x689958]
mov ecx, dword [0x68995c]
add esp, 0x1c
jmp 0x4c2d49
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c2d43
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [ecx]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x622628
push 0x28
push dword [0x68995c]
call dword [esi + 0x34]
add esp, 0x18
mov ecx, dword [0x68995c]
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 0x40], 0
je 0x4c2e91
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 0x4c2d85
mov eax, dword [edi]
push str.Proxy_detected:_PAC
push str.HTTPConnector
push 0x622628
push 0x1e
push edi
jmp 0x4c2dc8
mov eax, dword [0x689958]
test eax, eax
je 0x4c2db0
push str.Proxy_detected:_PAC
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x4c2dce
test ecx, ecx
je 0x4c2dce
mov eax, dword [ecx]
push str.Proxy_detected:_PAC
push str.HTTPConnector
push 0x622628
push 0x1e
push ecx
call dword [eax + 0x34]
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
mov eax, dword [ebp - 0x68]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 1
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x4c30b2
test edi, edi
je 0x4c2e28
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [edi]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x622628
push 0x28
push edi
jmp 0x4c2e85
cmp dword [0x689958], 0
je 0x4c2e5a
call esi
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x689958]
add esp, 0x1c
jmp 0x4c2e8b
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c2e91
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [ecx]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x622628
push 0x28
push dword [0x68995c]
call dword [esi + 0x34]
add esp, 0x18
mov ecx, dword [0x68995c]
cmp dword [ebp - 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
je 0x4c304f
test edi, edi
je 0x4c2ec4
mov eax, dword [edi]
push str.Proxy_detected:_Direct
push str.HTTPConnector
push 0x622628
push 0x1e
push edi
jmp 0x4c2f07
mov eax, dword [0x689958]
test eax, eax
je 0x4c2eef
push str.Proxy_detected:_Direct
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x4c2f0d
test ecx, ecx
je 0x4c2f0d
mov eax, dword [ecx]
push str.Proxy_detected:_Direct
push str.HTTPConnector
push 0x622628
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
push str.https
push dword [ebp - 0x3c]
mov byte [ebp - 0x5d], 0
call fcn.005b38ca
mov esi, eax
add esp, 8
test esi, esi
je 0x4c2f2c
add esi, 0xc
jmp 0x4c2f43
push 0x6226a4
push dword [ebp - 0x3c]
call fcn.005b38ca
add esp, 8
test eax, eax
jne 0x4c2faf
mov esi, dword [ebp - 0x3c]
push 0x643b8c
push esi
call fcn.005b38ca
add esp, 8
test eax, eax
lea ecx, [eax + 6]
cmovne esi, ecx
cmp word [esi], 0x20
jne 0x4c2f69
nop
add esi, 2
cmp word [esi], 0x20
je 0x4c2f60
movzx eax, word [esi]
test ax, ax
je 0x4c2faf
cmp eax, 0x3a
je 0x4c2faf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c2f80
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x4c2faf
push esi
mov esi, dword [ebp - 0x64]
push 0x100
push esi
call fcn.005c9090
add esp, 0xc
mov byte [ebp - 0x5d], 1
jmp 0x4c2fb2
mov esi, dword [ebp - 0x64]
lea ecx, [ebp - 0x44]
call fcn.004c29d0
cmp byte [ebp - 0x5e], 0
je 0x4c2fc9
push edi
call fcn.004bc790
add esp, 4
test edi, edi
je 0x4c2ff0
mov eax, dword [edi]
push esi
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x622628
push 0x1e
push edi
call dword [eax + 0x34]
mov al, byte [ebp - 0x5d]
add esp, 0x18
jmp 0x4c3234
mov eax, dword [0x689958]
test eax, eax
je 0x4c3022
push esi
push str.Proxy_Url:__s
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
mov al, byte [ebp - 0x5d]
add esp, 0x1c
jmp 0x4c3234
mov edx, dword [0x68995c]
test edx, edx
je 0x4c3047
mov ecx, dword [edx]
push esi
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x622628
push 0x1e
push edx
call dword [ecx + 0x34]
add esp, 0x18
mov al, byte [ebp - 0x5d]
jmp 0x4c3234
test edi, edi
je 0x4c3069
mov eax, dword [edi]
push str.No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x622628
push 0x1e
push edi
jmp 0x4c30ac
mov eax, dword [0x689958]
test eax, eax
je 0x4c3094
push str.No_default_proxy_present_on_the_user_machine
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x4c30b2
test ecx, ecx
je 0x4c30b2
mov eax, dword [ecx]
push str.No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x622628
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4c315f
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c30c0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x4c315f
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x64]
push 0x100
push esi
call fcn.005c9090
add esp, 0xc
test edi, edi
je 0x4c310a
mov eax, dword [edi]
push esi
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x622628
push 0x1e
push edi
jmp 0x4c3155
mov eax, dword [0x689958]
test eax, eax
je 0x4c3136
push esi
push str.Proxy_Url:__s
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x1c
jmp 0x4c315b
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c315b
mov eax, dword [ecx]
push esi
push str.Proxy_Url:__s
push str.HTTPConnector
push 0x622628
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x18
mov byte [ebp - 0x5d], 1
mov eax, dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
test eax, eax
je 0x4c316f
push eax
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4c3179
push eax
call esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4c3183
push eax
call esi
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4c3193
push eax
call fcn.00599f1f
add esp, 4
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4c319d
push ecx
call esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4c31a7
push eax
call esi
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4c31b5
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp byte [ebp - 0x5e], 0
je 0x4c31c4
push edi
call fcn.004bc790
add esp, 4
mov al, byte [ebp - 0x5d]
jmp 0x4c3234
test edi, edi
je 0x4c31e3
mov eax, dword [edi]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x622628
push 0x28
push edi
jmp 0x4c322c
mov eax, dword [0x689958]
test eax, eax
je 0x4c320e
push str.GetIEProxyInfo___invalid_arguments
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call eax
add esp, 0x18
jmp 0x4c3232
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c3232
mov eax, dword [ecx]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x622628
push 0x28
push ecx
call dword [eax + 0x34]
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.00599c70
mov esp, ebp
pop ebp
ret