Function at 0x100fb910
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10193cfb
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x101f62b4]
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 ebx, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x100fb96a
push 0x18
push str.Input_preference_is_null
lea ecx, [edi + 8]
mov dword [edi], 0xfffffff6
mov byte [edi + 0x24], 1
call fcn.10001d60
xor al, al
jmp 0x100fbce2
mov ecx, dword [0x101fc26c]
mov dword [ebx + 4], eax
test ecx, ecx
je 0x100fb980
cmp byte [0x101fc262], 0
jne 0x100fb98b
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
call fcn.1010e210
push 0xc8
mov byte [ebp - 0xe9], al
lea eax, [ebp - 0xe8]
push 0
push eax
call fcn.10160450
add esp, 4
lea ecx, [ebp - 0xe8]
call fcn.100eaec0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
test eax, eax
je 0x100fb9d1
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebx], 0
mov eax, dword [ebx + 4]
add eax, 0x158
cmp dword [eax + 0x14], 8
jb 0x100fb9e1
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 0x100fba61
mov dword [edi], 0xffffffd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1b
push str.Failed_to_open_http_session
lea ecx, [edi + 8]
mov dword [edi + 4], eax
mov byte [edi + 0x24], 1
call fcn.10001d60
mov edi, dword [0x101fc26c]
test edi, edi
je 0x100fba2b
cmp byte [0x101fc262], 0
jne 0x100fba36
call fcn.100e0c40
mov edi, dword [0x101fc26c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.failed_to_open_the_winhttp_session____d
push 0x101ace0c
push edi
call dword [0x1019a4f8]
call esi
add esp, 0x10
xor bl, bl
jmp 0x100fbc90
mov ecx, dword [ebx + 4]
movzx eax, byte [ecx + 0x194]
push eax
lea eax, [ecx + 0xe0]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xe8]
call fcn.100ebeb0
test al, al
jne 0x100fbb41
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0xa4]
push eax
mov dword [edi], 0xffffffd8
call fcn.10002700
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x114]
mov dword [edi + 4], eax
call fcn.10001d00
push 0x28
lea ecx, [edi + 8]
mov byte [edi + 0x24], 1
push str.Failed_to_resolve_machine_proxy_settings
call fcn.10001d60
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100fbb19
cmp byte [0x101fc262], 0
jne 0x100fbb24
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.failed_to_resolve_the_proxy_setting_on_the_machine
push 0x101ace0c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x26
push dword [ebx]
lea esi, [edi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x100fbbbb
mov dword [edi], 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 + 4], eax
mov byte [edi + 0x24], 1
call fcn.10001d60
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100fbb8c
cmp byte [0x101fc262], 0
jne 0x100fbb97
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.failed_to_set_the_proxy_option_in_the_winhttp_session
push 0x101ace0c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
xor bl, bl
jmp 0x100fbc90
cmp byte [ebp - 0xe9], 0
je 0x100fbbd0
call fcn.100e0f20
mov ecx, eax
call fcn.1010e840
push 0xea60
push 0xea60
push 0xea60
push 0
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x100fbc25
mov dword [edi], 0xffffffd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x22
push str.Failed_to_set_timeout_http_session
mov ecx, esi
mov dword [edi + 4], eax
mov byte [edi + 0x24], 1
call fcn.10001d60
call fcn.100e0f20
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_set_the_timeout_for_http_session._Err____d
jmp 0x100fbc74
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 0x100fbc8e
mov dword [edi], 0xffffffd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Failed_to_set_redirection_policy
mov ecx, esi
mov dword [edi + 4], eax
mov byte [edi + 0x24], 1
call fcn.10001c70
call fcn.100e0f20
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_set_the_redirection_policy_for_http_session._Err____d
push 0x101ace0c
push esi
mov esi, dword [edi + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x10
xor bl, bl
jmp 0x100fbc90
mov bl, 1
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 1
call fcn.100eda40
lea ecx, [ebp - 0xe8]
call fcn.100eb020
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebp - 0x54]
call fcn.10001d00
lea ecx, [ebp - 0x6c]
call fcn.10001d00
lea ecx, [ebp - 0x84]
call fcn.10001d00
lea ecx, [ebp - 0xa4]
call fcn.10001d00
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.1015c875
mov esp, ebp
pop ebp
ret 8