Function at 0x10149490
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018915b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x101e42fc]
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 edi, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x101494ea
push 0x18
push str.Input_preference_is_null
lea ecx, [esi + 8]
mov dword [esi], 0xfffffff6
mov byte [esi + 0x24], 1
call fcn.10001c20
xor al, al
jmp 0x1014979e
mov dword [edi + 4], eax
call fcn.10137740
push eax
call fcn.100feb60
push 0xc8
mov byte [ebp - 0xe9], al
lea eax, [ebp - 0xe8]
push 0
push eax
call fcn.10150b00
add esp, 0x10
lea ecx, [ebp - 0xe8]
push 0
push 0
call fcn.10145780
mov eax, dword [edi]
mov dword [ebp - 4], 0
test eax, eax
je 0x1014953d
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [edi], 0
mov eax, dword [edi + 4]
add eax, 0x158
cmp dword [eax + 0x14], 8
jb 0x1014954d
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi], eax
test eax, eax
jne 0x101495aa
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], 0xffffffd8
call ebx
push 0x1b
push str.Failed_to_open_http_session
lea ecx, [esi + 8]
mov dword [esi + 4], eax
mov byte [esi + 0x24], 1
call fcn.10001c20
call fcn.10137740
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.failed_to_open_the_winhttp_session____d
push 0x101a4aec
push esi
call dword [edi + 0x24]
add esp, 0x10
xor bl, bl
jmp 0x10149791
mov ecx, dword [edi + 4]
movzx eax, byte [ecx + 0x194]
push eax
lea eax, [ecx + 0xe0]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xe8]
call fcn.101475b0
test al, al
jne 0x10149661
lea eax, [ebp - 0x118]
mov dword [esi], 0xffffffd8
push eax
lea ecx, [ebp - 0xe8]
call fcn.10146aa0
mov edx, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
cmp edx, 8
jb 0x10149632
mov ecx, dword [ebp - 0x10c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10149628
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101497bc
push edx
push ecx
call fcn.1014d535
add esp, 8
push 0x28
lea ebx, [esi + 8]
mov byte [esi + 0x24], 1
push str.Failed_to_resolve_machine_proxy_settings
mov ecx, ebx
call fcn.10001c20
call fcn.10137740
push str.failed_to_resolve_the_proxy_setting_on_the_machine
push 0x101a4aec
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
jmp 0x10149664
lea ebx, [esi + 8]
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x26
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x101496b8
mov dword [esi], 0xffffffd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x2b
push str.Failed_to_set_proxy_setting_in_http_session
mov ecx, ebx
mov dword [esi + 4], eax
mov byte [esi + 0x24], 1
call fcn.10001c20
call fcn.10137740
push str.failed_to_set_the_proxy_option_in_the_winhttp_session
push 0x101a4aec
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor bl, bl
jmp 0x10149791
cmp byte [ebp - 0xe9], 0
je 0x101496cf
call fcn.10137740
push eax
call fcn.100ff1b0
add esp, 4
push 0xea60
push 0xea60
push 0xea60
push 0
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x10149731
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], 0xffffffd8
call ebx
push 0x22
push str.Failed_to_set_timeout_http_session
lea ecx, [esi + 8]
mov dword [esi + 4], eax
mov byte [esi + 0x24], 1
call fcn.10001c20
call fcn.10137740
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.failed_to_set_the_timeout_for_http_session._Err____d
push 0x101a4aec
push esi
call dword [edi + 0x24]
add esp, 0x10
xor bl, bl
jmp 0x10149791
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 2
push eax
push 0x58
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1014978f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], 0xffffffd8
call ebx
push str.Failed_to_set_redirection_policy
lea ecx, [esi + 8]
mov dword [esi + 4], eax
mov byte [esi + 0x24], 1
call fcn.10001b10
call fcn.10137740
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.failed_to_set_the_redirection_policy_for_http_session._Err____d
push 0x101a4aec
push esi
call dword [edi + 0x24]
add esp, 0x10
xor bl, bl
jmp 0x10149791
mov bl, 1
lea ecx, [ebp - 0xe8]
call fcn.10145870
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.1014d1d5
mov esp, ebp
pop ebp
ret 8
call fcn.10158895
int3