Function at 0x4e2190
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545a78
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x6c], ecx
test eax, eax
je 0x4e27ee
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4e2266
test edi, edi
je 0x4e2208
mov esi, dword [edi]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push str.HTTPConnector
push 0x55c340
push 0x1e
push edi
jmp 0x4e2260
cmp dword [0x599d34], 0
je 0x4e223a
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push 0x55c340
push 0x55c340
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call dword [0x599d34]
add esp, 0x1c
jmp 0x4e2266
mov esi, dword [0x599d38]
test esi, esi
je 0x4e2266
mov esi, dword [esi]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push str.HTTPConnector
push 0x55c340
push 0x1e
push dword [0x599d38]
call dword [esi + 0x34]
add esp, 0x18
xor eax, eax
mov byte [ebp - 0x5d], 0
push eax
push eax
push 0xffffffffffffffff
push dword [ebp - 0x6c]
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
push eax
push 0xfde9
mov dword [ebp - 0x64], eax
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x3c], eax
movq qword [ebp - 0x4c], xmm0
movq qword [ebp - 0x44], xmm0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x4e2793
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050d6bb
add esp, 4
mov esi, eax
mov dword [ebp - 0x68], esi
push dword [ebp - 0x74]
push esi
push 0xffffffffffffffff
push dword [ebp - 0x6c]
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 - 0x64], eax
test eax, eax
je 0x4e2793
push esi
lea ecx, [ebp - 0x28]
call fcn.00412950
push ecx
push str.http
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004c4030
test eax, eax
je 0x4e2382
lea eax, [ebp - 0x28]
mov edx, 0x564550
push eax
lea ecx, [ebp - 0x8c]
call fcn.00414d80
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.004128d0
lea ecx, [ebp - 0x8c]
call fcn.00412890
push esi
call fcn.0050ce9e
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.0050d6bb
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.00412890
cmp dword [ebp - 0x38], 0
je 0x4e2434
lea eax, [ebp - 0x44]
mov dword [ebp - 0x5c], 1
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x58], 3
push eax
mov eax, dword [ebp - 0x64]
push esi
push eax
mov dword [ebp - 0x48], 1
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x4e26e6
test edi, edi
je 0x4e23f6
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 0x55c340
push 0x1e
push edi
call dword [esi + 0x34]
add esp, 0x18
jmp 0x4e26e6
cmp dword [0x599d34], 0
je 0x4e2514
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push 0x55c340
push 0x55c340
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call dword [0x599d34]
add esp, 0x1c
jmp 0x4e26e6
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4e254e
test edi, edi
je 0x4e245a
mov eax, dword [edi]
push ecx
push str.GetIEProxyInfo___autoconfig_url_on_the_machine_is_:_s
push str.HTTPConnector
push 0x55c340
push 0x1e
push edi
jmp 0x4e24a9
mov eax, dword [0x599d34]
test eax, eax
je 0x4e2488
push dword [ebp - 0x34]
push str.GetIEProxyInfo___autoconfig_url_on_the_machine_is_:_s
push 0x55c340
push 0x55c340
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x1c
jmp 0x4e24af
mov ecx, dword [0x599d38]
test ecx, ecx
je 0x4e24af
push dword [ebp - 0x34]
mov eax, dword [ecx]
push str.GetIEProxyInfo___autoconfig_url_on_the_machine_is_:_s
push str.HTTPConnector
push 0x55c340
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x18
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 2
push eax
mov eax, dword [ebp - 0x64]
push esi
push eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 1
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x4e26e6
test edi, edi
je 0x4e23f6
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 0x55c340
push 0x1e
push edi
call dword [esi + 0x34]
add esp, 0x18
jmp 0x4e26e6
mov esi, dword [0x599d38]
test esi, esi
je 0x4e26e6
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi]
call eax
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push str.HTTPConnector
push 0x55c340
push 0x1e
push dword [0x599d38]
call dword [esi + 0x34]
add esp, 0x18
jmp 0x4e26e6
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4e267d
test edi, edi
je 0x4e2574
mov eax, dword [edi]
push ecx
push str.GetIEProxyInfo___proxy_fetched_is_:_s
push str.HTTPConnector
push 0x55c340
push 0x1e
push edi
jmp 0x4e25c3
mov eax, dword [0x599d34]
test eax, eax
je 0x4e25a2
push dword [ebp - 0x30]
push str.GetIEProxyInfo___proxy_fetched_is_:_s
push 0x55c340
push 0x55c340
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x1c
jmp 0x4e25c9
mov ecx, dword [0x599d38]
test ecx, ecx
je 0x4e25c9
push dword [ebp - 0x30]
mov eax, dword [ecx]
push str.GetIEProxyInfo___proxy_fetched_is_:_s
push str.HTTPConnector
push 0x55c340
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x18
push str.https
push dword [ebp - 0x30]
mov byte [ebp - 0x5d], 0
call fcn.0051023d
mov esi, eax
add esp, 8
test esi, esi
je 0x4e25e8
add esi, 0xc
jmp 0x4e25ff
push 0x55c3a0
push dword [ebp - 0x30]
call fcn.0051023d
add esp, 8
test eax, eax
jne 0x4e266d
mov esi, dword [ebp - 0x30]
push 0x575c84
push esi
call fcn.0051023d
add esp, 8
test eax, eax
lea ecx, [eax + 6]
cmovne esi, ecx
cmp word [esi], 0x20
jne 0x4e2629
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0x20
je 0x4e2620
movzx eax, word [esi]
test ax, ax
je 0x4e266d
cmp eax, 0x3a
je 0x4e266d
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e2640
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x4e266d
push esi
mov esi, dword [ebp - 0x70]
push 0x100
push esi
call fcn.00522412
add esp, 0xc
mov byte [ebp - 0x5d], 1
lea ecx, [ebp - 0x38]
call fcn.004e2160
mov al, byte [ebp - 0x5d]
jmp 0x4e2859
test edi, edi
je 0x4e2697
mov eax, dword [edi]
push str.GetIEProxyInfo___No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x55c340
push 0x1e
push edi
jmp 0x4e26e0
mov eax, dword [0x599d34]
test eax, eax
je 0x4e26c2
push str.GetIEProxyInfo___No_default_proxy_present_on_the_user_machine
push 0x55c340
push 0x55c340
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x4e26e6
mov ecx, dword [0x599d38]
test ecx, ecx
je 0x4e26e6
mov eax, dword [ecx]
push str.GetIEProxyInfo___No_default_proxy_present_on_the_user_machine
push str.HTTPConnector
push 0x55c340
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4e2793
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e26f4
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x4e2793
push dword [ebp - 0x40]
mov esi, dword [ebp - 0x70]
push 0x100
push esi
call fcn.00522412
add esp, 0xc
test edi, edi
je 0x4e273e
mov eax, dword [edi]
push esi
push str.GetIEProxyInfo___proxy_Url_is__s
push str.HTTPConnector
push 0x55c340
push 0x1e
push edi
jmp 0x4e2789
mov eax, dword [0x599d34]
test eax, eax
je 0x4e276a
push esi
push str.GetIEProxyInfo___proxy_Url_is__s
push 0x55c340
push 0x55c340
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x1c
jmp 0x4e278f
mov ecx, dword [0x599d38]
test ecx, ecx
je 0x4e278f
mov eax, dword [ecx]
push esi
push str.GetIEProxyInfo___proxy_Url_is__s
push str.HTTPConnector
push 0x55c340
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x18
mov byte [ebp - 0x5d], 1
mov ecx, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test ecx, ecx
je 0x4e27a3
push ecx
call esi
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4e27ad
push ecx
call esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4e27b7
push eax
call esi
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4e27c7
push eax
call fcn.0050ce9e
add esp, 4
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4e27d1
push ecx
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4e27db
push eax
call esi
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4e27e9
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov al, byte [ebp - 0x5d]
jmp 0x4e2859
test edi, edi
je 0x4e2808
mov eax, dword [edi]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x55c340
push 0x28
push edi
jmp 0x4e2851
mov eax, dword [0x599d34]
test eax, eax
je 0x4e2833
push str.GetIEProxyInfo___invalid_arguments
push 0x55c340
push 0x55c340
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call eax
add esp, 0x18
jmp 0x4e2857
mov ecx, dword [0x599d38]
test ecx, ecx
je 0x4e2857
mov eax, dword [ecx]
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnector
push 0x55c340
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.0050ce8d
mov esp, ebp
pop ebp
ret