Function at 0x1019bc10
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023fb00
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x102e91c0]
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
lea eax, [edi + 0x60]
lea ebx, [edi + 0x2dc]
test eax, eax
jne 0x1019bc75
push 0x18
lea ecx, [edi + 0x348]
mov dword [edi + 0x340], 0xfffffff6
push str.Input_preference_is_null
mov byte [edi + 0x364], 1
call fcn.10010360
jmp 0x1019c118
mov ecx, dword [0x102eec4c]
mov dword [edi + 0x2e0], eax
test ecx, ecx
je 0x1019bc8e
cmp byte [0x102eec26], 0
jne 0x1019bc99
call fcn.1018f140
mov ecx, dword [0x102eec4c]
call fcn.10173bb0
push 0xc8
mov byte [ebp - 0xe9], al
lea eax, [ebp - 0xdc]
push 0
push eax
call fcn.101d28f0
add esp, 4
lea ecx, [ebp - 0xdc]
call fcn.10194e00
mov dword [ebp - 4], 0
mov eax, dword [ebx]
test eax, eax
je 0x1019bcdf
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebx], 0
mov eax, dword [edi + 0x2e0]
add eax, 0x158
cmp dword [eax + 0x14], 8
jb 0x1019bcf2
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebx], eax
test eax, eax
jne 0x1019bd67
mov dword [edi + 0x340], 0xffffffd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1b
lea ecx, [edi + 0x348]
mov dword [edi + 0x344], eax
push str.Failed_to_open_http_session
mov byte [edi + 0x364], 1
call fcn.10010360
mov edi, dword [0x102eec4c]
test edi, edi
je 0x1019bd49
cmp byte [0x102eec26], 0
jne 0x1019bd54
call fcn.1018f140
mov edi, dword [0x102eec4c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_open_the_winhttp_session____d
jmp 0x1019c0b5
mov ecx, dword [edi + 0x2e0]
movzx eax, byte [ecx + 0x194]
push eax
lea eax, [ecx + 0xe0]
push eax
push ebx
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xdc]
call fcn.10195c80
test al, al
jne 0x1019be54
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x98]
push eax
mov dword [edi + 0x340], 0xffffffd8
call fcn.1000fe90
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0xf4], ecx
lea ecx, [ebp - 0x110]
mov dword [edi + 0x344], eax
call fcn.1000ae90
push 0x28
lea ecx, [edi + 0x348]
mov byte [edi + 0x364], 1
push str.Failed_to_resolve_machine_proxy_settings
call fcn.10010360
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019be2c
cmp byte [0x102eec26], 0
jne 0x1019be37
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.failed_to_resolve_the_proxy_setting_on_the_machine
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
push 0xc
lea eax, [ebp - 0xe8]
push eax
push 0x26
push dword [ebx]
lea esi, [edi + 0x348]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1019bedc
mov dword [edi + 0x340], 0xffffffd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x2b
push str.Failed_to_set_proxy_setting_in_http_session
mov ecx, esi
mov dword [edi + 0x344], eax
mov byte [edi + 0x364], 1
call fcn.10010360
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019beaf
cmp byte [0x102eec26], 0
jne 0x1019beba
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.failed_to_set_the_proxy_option_in_the_winhttp_session
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
jmp 0x1019c0cb
cmp byte [ebp - 0xe9], 0
je 0x1019bfc1
mov esi, dword [0x102eec4c]
mov dword [ebp - 0xf0], esi
test esi, esi
je 0x1019bf02
cmp byte [0x102eec26], 0
jne 0x1019bf13
call fcn.1018f140
mov esi, dword [0x102eec4c]
mov dword [ebp - 0xf0], esi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x1019bfc1
test esi, esi
je 0x1019bf47
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 [ebp - 0xf0]
jmp 0x1019bfb1
cmp dword [0x102eec44], 0
je 0x1019bf87
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
jmp 0x1019bfc1
mov esi, dword [0x102eec48]
test esi, esi
je 0x1019bfc1
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
push 0xea60
push 0xea60
push 0xea60
push 0
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x1019c03b
mov dword [edi + 0x340], 0xffffffd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x22
push str.Failed_to_set_timeout_http_session
lea ecx, [edi + 0x348]
mov dword [edi + 0x344], eax
mov byte [edi + 0x364], 1
call fcn.10010360
mov edi, dword [0x102eec4c]
test edi, edi
je 0x1019c020
cmp byte [0x102eec26], 0
jne 0x1019c02b
call fcn.1018f140
mov edi, dword [0x102eec4c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_set_the_timeout_for_http_session._Err____d
jmp 0x1019c0b5
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 2
push eax
push 0x58
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1019c157
mov dword [edi + 0x340], 0xffffffd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x20
push str.Failed_to_set_redirection_policy
lea ecx, [edi + 0x348]
mov dword [edi + 0x344], eax
mov byte [edi + 0x364], 1
call fcn.10010360
mov edi, dword [0x102eec4c]
test edi, edi
je 0x1019c09c
cmp byte [0x102eec26], 0
jne 0x1019c0a7
call fcn.1018f140
mov edi, dword [0x102eec4c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_set_the_redirection_policy_for_http_session._Err____d
mov esi, dword [esi + 0x24]
mov ecx, esi
push 0x1025b044
push edi
call dword [0x1024852c]
call esi
add esp, 0x10
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], 0xffffffff
call fcn.10197730
lea ecx, [ebp - 0xdc]
call fcn.10194f10
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebp - 0x48]
call fcn.1000ae90
lea ecx, [ebp - 0x60]
call fcn.1000ae90
lea ecx, [ebp - 0x78]
call fcn.1000ae90
lea ecx, [ebp - 0x98]
call fcn.1000ae90
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019c12b
cmp byte [0x102eec26], 0
jne 0x1019c136
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.failed_to_re_initialize_the_http_session
push 0x1025b044
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
xor al, al
jmp 0x1019c19d
lea ecx, [ebp - 0xdc]
call fcn.10197730
lea ecx, [ebp - 0xdc]
call fcn.10194f10
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebp - 0x48]
call fcn.1000ae90
lea ecx, [ebp - 0x60]
call fcn.1000ae90
lea ecx, [ebp - 0x78]
call fcn.1000ae90
lea ecx, [ebp - 0x98]
call fcn.1000ae90
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.101cff65
mov esp, ebp
pop ebp
ret