Function at 0x100844a0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x18], 0
push edi
mov edi, 0x1015ddcd
mov dword [esp + 0x14], 0
mov ebx, edi
mov dword [esp + 0x3c], edi
mov ebp, dword [esi + 0x18]
mov ecx, ebp
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0
lea edx, [ecx + 1]
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x18], 0x2a80
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10084514
sub ecx, edx
lea eax, [esp + 0x24]
push 0xa
push eax
push ecx
mov edx, ebp
lea ecx, [esp + 0x34]
call fcn.1003e9c0
add esp, 0xc
test eax, eax
js 0x100846e9
mov eax, dword [esp + 0x28]
cdq
cmp eax, dword [esp + 0x28]
jne 0x100846d2
cmp edx, dword [esp + 0x2c]
jne 0x100846d2
push 0x3a
push dword [esi + 0x14]
call fcn.100f6a80
mov edx, dword [esi + 0x14]
add esp, 8
test eax, eax
je 0x10084589
push edx
lea eax, [esp + 0x40]
push str.__s_
push eax
call fcn.1002a160
mov edi, dword [esp + 0x48]
add esp, 0xc
test eax, eax
js 0x100846e9
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.1008bbd0
test eax, eax
js 0x100846c1
mov eax, dword [0x1015ddd0]
mov ecx, str.libgit2_1.4.2
test eax, eax
cmovne ecx, eax
lea eax, [esp + 0x30]
push ecx
push str.git_2.0___s_
push eax
call fcn.1002a160
mov ebx, dword [esp + 0x3c]
add esp, 0xc
test eax, eax
js 0x100846e9
mov edx, ebx
lea ecx, [esp + 0x14]
call fcn.1008bbd0
test eax, eax
js 0x100846c1
mov ebp, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x60], eax
test eax, eax
jne 0x10084609
push str.failed_to_init_WinHTTP
push 2
call fcn.10028180
add esp, 8
jmp 0x100846ed
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x54
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x10084637
and dword [esp + 0x18], 0xffffdfff
lea eax, [esp + 0x18]
push 4
push eax
push 0x54
push dword [esi + 0x60]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xea60
push 0xffffffffffffffff
push dword [esi + 0x60]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x10084663
push str.failed_to_set_timeouts_for_WinHTTP
push 2
call fcn.10028180
add esp, 8
jmp 0x100846ed
push 0
push dword [esp + 0x2c]
push dword [esp + 0x24]
push dword [esi + 0x60]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 0x64], eax
test eax, eax
jne 0x1008468e
push str.failed_to_connect_to_host
push 2
call fcn.10028180
add esp, 8
jmp 0x100846ed
push 0
push 0x10030
push 0x100843c0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x100846b7
push str.failed_to_set_status_callback
push 2
call fcn.10028180
add esp, 8
jmp 0x100846ed
mov dword [esp + 0x20], 0
jmp 0x1008473d
push str.unable_to_convert_host_to_wide_characters
push 2
call fcn.10028180
add esp, 8
jmp 0x100846e9
mov eax, dword [esp + 0x24]
push ebp
sub eax, ebp
push eax
push str.failed_to_convert:__.s_is_too_large
push 3
call fcn.10028180
add esp, 0x10
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 0x64]
test eax, eax
je 0x10084715
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
jne 0x1008470e
push str.unable_to_close_connection
push 2
call fcn.10028180
add esp, 8
mov dword [esi + 0x64], 0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x1008473d
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
jne 0x10084736
push str.unable_to_close_session
push 2
call fcn.10028180
add esp, 8
mov dword [esi + 0x60], 0
cmp dword [esp + 0x34], 0
jbe 0x10084764
test ebx, ebx
je 0x10084764
cmp ebx, 0x1015ddcc
je 0x10084764
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push ebx
call dword [0x101182f8]
call esi
add esp, 4
cmp dword [esp + 0x40], 0
jbe 0x1008478b
test edi, edi
je 0x1008478b
cmp edi, 0x1015ddcc
je 0x1008478b
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push edi
call dword [0x101182f8]
call esi
add esp, 4
push dword [esp + 0x1c]
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182f8]
call esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
add esp, 4
mov ecx, esi
push ebp
call dword [0x101182f8]
call esi
mov eax, dword [esp + 0x24]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret