Function at 0x413280
Capabilities:
Initialize winhttp library
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x69f000]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
test edi, edi
je 0x41360e
xor eax, eax
mov word [edi], ax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
jne 0x4132eb
call fcn.00408570
mov edi, dword [eax + 0xf4]
lea esi, [eax + 0xf4]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_setting_for_current_user_:_d
push esi
call dword [edi + 0x14]
mov edi, dword [esp + 0x24]
add esp, 0xc
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x2c], 0
je 0x4133f7
call fcn.00408570
push dword [esp + 0x2c]
mov ecx, dword [eax + 0xf4]
add eax, 0xf4
push str.GetIEProxyInfo___proxy_fetched_is_:_s
push eax
call dword [ecx + 0x14]
push str.https
push dword [esp + 0x3c]
mov byte [esp + 0x27], 0
call fcn.005d4a47
mov esi, eax
add esp, 0x14
test esi, esi
je 0x413334
add esi, 0xc
jmp 0x41334d
push 0x66325c
push dword [esp + 0x30]
call fcn.005d4a47
add esp, 8
test eax, eax
jne 0x4133bb
mov esi, dword [esp + 0x2c]
push 0x663260
push esi
call fcn.005d4a47
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x413366
add ecx, 6
jmp 0x413368
mov ecx, esi
movzx eax, word [ecx]
mov edx, eax
cmp eax, 0x20
jne 0x413380
movzx eax, word [ecx + 2]
add ecx, 2
cmp eax, 0x20
je 0x413372
mov edx, eax
test dx, dx
je 0x4133bb
cmp dx, 0x3a
je 0x4133bb
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x413390
sub edx, esi
sar edx, 1
cmp edx, 0x100
jg 0x4133bb
push ecx
push 0x100
push edi
call fcn.005d894d
add esp, 0xc
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
test eax, eax
je 0x4133cc
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4133d7
push eax
call esi
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4133e2
push ecx
call esi
mov al, byte [esp + 0x13]
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.005d077b
mov esp, ebp
pop ebp
ret
call fcn.00408570
mov ecx, dword [eax + 0xf4]
add eax, 0xf4
push 0x663268
push eax
call dword [ecx + 0xc]
add esp, 8
mov byte [esp + 0x13], 0
xor edi, edi
mov dword [esp + 0x1c], 0
xorps xmm0, xmm0
mov dword [esp + 0x3c], edi
movaps xmmword [esp + 0x40], xmm0
push edi
push edi
push 0xffffffffffffffff
push esi
push edi
push 0xfde9
movq qword [esp + 0x68], xmm0
movq qword [esp + 0x4c], xmm0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov dword [esp + 0x20], eax
test eax, eax
je 0x41359c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049ce4b
add esp, 4
mov esi, eax
mov dword [esp + 0x1c], esi
push dword [esp + 0x20]
push esi
push 0xffffffffffffffff
push dword [esp + 0x20]
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push edi
push edi
push edi
push 1
push str.WinHTTP_AutoProxy
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x41359c
cmp dword [esp + 0x28], 0
je 0x4134e4
call fcn.00408570
push dword [esp + 0x28]
mov ecx, dword [eax + 0xf4]
add eax, 0xf4
push str.GetIEProxyInfo___autoconfig_url_on_the_machine_is_:_s
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x40], 2
mov dword [esp + 0x48], eax
jmp 0x4134fb
cmp dword [esp + 0x24], 0
je 0x413541
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 3
lea eax, [esp + 0x34]
mov dword [esp + 0x54], 1
push eax
lea eax, [esp + 0x44]
push eax
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x413541
call fcn.00408570
mov edi, dword [eax + 0xf4]
lea esi, [eax + 0xf4]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetIEProxyInfo___Failed_to_get_proxy_for_the_url__error:_d
push esi
call dword [edi + 0x14]
mov edi, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x41359c
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413550
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x41359c
push dword [esp + 0x38]
mov esi, dword [esp + 0x1c]
push 0x100
push esi
call fcn.005d894d
call fcn.00408570
mov ecx, dword [eax + 0xf4]
add eax, 0xf4
push esi
push str.GetIEProxyInfo___proxy_Url_is__s
push eax
call dword [ecx + 0x14]
add esp, 0x18
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
test eax, eax
je 0x4135ad
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4135b8
push eax
call esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4135c3
push eax
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4135d4
push eax
call fcn.0048deb8
add esp, 4
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4135df
push ecx
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4135ea
push eax
call esi
test edi, edi
je 0x4133e2
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.005d077b
mov esp, ebp
pop ebp
ret
call fcn.00408570
mov ecx, dword [eax + 0xf4]
add eax, 0xf4
push str.GetIEProxyInfo___invalid_arguments
push str.HTTPConnectorError
push eax
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x78]
add esp, 0xc
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.005d077b
mov esp, ebp
pop ebp
ret