Function at 0x1019b5e0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023fac0
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 0x14], 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]
lea esi, [edi + 0x60]
push eax
mov ecx, esi
call fcn.101a1a20
test al, al
jne 0x1019b687
push 0x3f
push str.Input_parameter_structure_contains_invalid_values_as_preference
lea ecx, [edi + 0x348]
mov dword [edi + 0x340], 0xfffffff6
mov byte [edi + 0x364], 1
call fcn.10010360
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019b658
cmp byte [0x102eec26], 0
jne 0x1019b663
call fcn.1018f140
mov ecx, dword [0x102eec4c]
push str.failed_to_init_the_pref_of_GDE
mov eax, dword [ecx]
push 0x1025b044
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
xor al, al
jmp 0x1019bbd9
lea ebx, [edi + 0x2dc]
test esi, esi
jne 0x1019b6b9
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 0x1019bb62
mov ecx, dword [0x102eec4c]
mov dword [edi + 0x2e0], esi
test ecx, ecx
je 0x1019b6d2
cmp byte [0x102eec26], 0
jne 0x1019b6dd
call fcn.1018f140
mov ecx, dword [0x102eec4c]
call fcn.10173bb0
push 0xc8
mov byte [ebp - 0xf1], al
lea eax, [ebp - 0xe4]
push 0
push eax
call fcn.101d28f0
add esp, 4
lea ecx, [ebp - 0xe4]
call fcn.10194e00
mov dword [ebp - 4], 0
mov eax, dword [ebx]
test eax, eax
je 0x1019b723
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 0x1019b736
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 0x1019b7ab
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 0x1019b78d
cmp byte [0x102eec26], 0
jne 0x1019b798
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 0x1019baff
mov ecx, dword [edi + 0x2e0]
movzx eax, byte [ecx + 0x194]
push eax
lea eax, [ecx + 0xe0]
push eax
push ebx
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0xe4]
call fcn.10195c80
test al, al
jne 0x1019b89e
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [edi + 0x340], 0xffffffd8
call fcn.1000fe90
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0xfc], ecx
lea ecx, [ebp - 0x118]
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 0x1019b876
cmp byte [0x102eec26], 0
jne 0x1019b881
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 - 0xf0]
push eax
push 0x26
push dword [ebx]
lea esi, [edi + 0x348]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1019b926
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 0x1019b8f9
cmp byte [0x102eec26], 0
jne 0x1019b904
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 0x1019bb15
cmp byte [ebp - 0xf1], 0
je 0x1019ba0b
mov esi, dword [0x102eec4c]
mov dword [ebp - 0xf8], esi
test esi, esi
je 0x1019b94c
cmp byte [0x102eec26], 0
jne 0x1019b95d
call fcn.1018f140
mov esi, dword [0x102eec4c]
mov dword [ebp - 0xf8], esi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x1019ba0b
test esi, esi
je 0x1019b991
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 - 0xf8]
jmp 0x1019b9fb
cmp dword [0x102eec44], 0
je 0x1019b9d1
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 0x1019ba0b
mov esi, dword [0x102eec48]
test esi, esi
je 0x1019ba0b
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 0x1019ba85
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 0x1019ba6a
cmp byte [0x102eec26], 0
jne 0x1019ba75
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 0x1019baff
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 2
push eax
push 0x58
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1019bb8a
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 0x1019bae6
cmp byte [0x102eec26], 0
jne 0x1019baf1
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 - 0xe4]
mov dword [ebp - 4], 0xffffffff
call fcn.10197730
lea ecx, [ebp - 0xe4]
call fcn.10194f10
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebp - 0x50]
call fcn.1000ae90
lea ecx, [ebp - 0x68]
call fcn.1000ae90
lea ecx, [ebp - 0x80]
call fcn.1000ae90
lea ecx, [ebp - 0xa0]
call fcn.1000ae90
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019bb75
cmp byte [0x102eec26], 0
jne 0x1019bb80
call fcn.1018f140
mov ecx, dword [0x102eec4c]
push str.failed_to_init_the_http_session
jmp 0x1019b668
lea ecx, [ebp - 0xe4]
call fcn.10197730
lea ecx, [ebp - 0xe4]
call fcn.10194f10
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebp - 0x50]
call fcn.1000ae90
lea ecx, [ebp - 0x68]
call fcn.1000ae90
lea ecx, [ebp - 0x80]
call fcn.1000ae90
lea ecx, [ebp - 0xa0]
call fcn.1000ae90
mov byte [edi + 0x2d8], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 4