Function at 0x10083a10
Capabilities:
Prepare http request
Set http header

Disassembly:
sub esp, 0x114
mov eax, dword [0x10156440]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x38], 0x10145dd0
push ebp
push esi
xor eax, eax
mov dword [esp + 0x38], 2
mov esi, dword [ebx]
or ebp, 0xffffffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], 2
mov ecx, dword [esi + 0x1c]
push edi
mov edi, dword [ebx + 0x14]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], esi
lea edx, [ecx + 1]
mov dword [esp + 0x18], 0x1015ddcd
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10083a82
sub ecx, edx
cmp ecx, 1
jb 0x10083af4
mov eax, dword [esi + 0x1c]
mov edx, 0x1013ffcc
dec eax
add eax, ecx
nop dword [eax + eax]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x10083ac0
test cl, cl
je 0x10083abc
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x10083ac0
add eax, 2
add edx, 2
test cl, cl
jne 0x10083aa0
xor eax, eax
jmp 0x10083ac5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10083af4
mov bl, byte [edi]
lea edx, [edi + 1]
mov al, 0x2f
mov ecx, 0x1013ffcd
cmp bl, al
jne 0x10083ae5
mov al, byte [ecx]
inc ecx
mov bl, byte [edx]
inc edx
test al, al
jne 0x10083ad5
jmp 0x10083aef
movzx ecx, bl
movzx eax, al
sub ecx, eax
jne 0x10083af0
inc edi
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
push edi
push eax
lea eax, [esp + 0x20]
push str._s_s
push eax
call fcn.1002a160
mov edi, dword [esp + 0x28]
add esp, 0x10
cmp edi, 0x1015ddcc
je 0x1008420a
mov edx, edi
lea ecx, [ebx + 0x20]
call fcn.1008bbd0
test eax, eax
jns 0x10083b48
push str.failed_to_convert_string_to_wide_form
push 2
call fcn.10028180
mov ecx, dword [esp + 0x18]
add esp, 8
xor esi, esi
call fcn.10083770
jmp 0x10083ed1
mov eax, dword [esi + 0x10]
add esi, 0x10
mov ecx, str.https
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10083b73
test dl, dl
je 0x10083b6f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10083b73
add eax, 2
add ecx, 2
test dl, dl
jne 0x10083b53
xor ecx, ecx
jmp 0x10083b78
sbb ecx, ecx
or ecx, 1
xor eax, eax
mov edx, 0x800000
test ecx, ecx
cmove eax, edx
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push dword [ebx + 0x20]
mov ebx, dword [esp + 0x3c]
push dword [eax + 0x18]
push dword [ebx + 0x64]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x1c], eax
test eax, eax
jne 0x10083bcf
push str.failed_to_open_request
push 2
call fcn.10028180
mov ecx, dword [esp + 0x18]
add esp, 8
xor esi, esi
call fcn.10083770
jmp 0x10083ed1
push 4
lea ecx, [esp + 0x3c]
push ecx
push 0x4d
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x1008420a
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xea60
push 0xffffffffffffffff
push dword [eax + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x10083c22
push str.failed_to_set_timeouts_for_WinHTTP
push 2
call fcn.10028180
mov ecx, dword [esp + 0x18]
add esp, 8
xor esi, esi
call fcn.10083770
jmp 0x10083ed1
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x7c]
cmp ecx, 1
jne 0x10083c4f
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x24]
push esi
call fcn.100200e0
mov esi, dword [esp + 0x28]
add esp, 4
test eax, eax
js 0x10083d40
mov dword [esp + 0x14], esi
jmp 0x10083c89
cmp ecx, 2
jne 0x10083f50
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_52]
mov ecx, esi
push 0x1b4
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_src_transportswinhttp.c
push dword [eax + 0x80]
call dword [0x101182f8]
call esi
mov esi, eax
add esp, 0xc
mov dword [esp + 0x14], esi
test esi, esi
je 0x1008420a
test esi, esi
je 0x10083f50
lea ecx, [ebx + 0x38]
mov dword [esp + 0x2c], 0x1015ddcd
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.100581a0
mov edx, esi
lea ecx, [ebx + 0x38]
call fcn.100575f0
mov ebp, eax
test ebp, ebp
js 0x10083d3c
mov ebx, dword [ebx + 0x38]
mov ecx, str.http
mov eax, ebx
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10083cf0
test dl, dl
je 0x10083cec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10083cf0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10083cd0
xor eax, eax
jmp 0x10083cf5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10083d4e
mov ecx, str.https
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10083d20
test dl, dl
je 0x10083d1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10083d20
add eax, 2
add ecx, 2
test dl, dl
jne 0x10083d00
xor eax, eax
jmp 0x10083d25
sbb eax, eax
or eax, 1
test eax, eax
je 0x10083d4e
push esi
push str.invalid_URL:__s
push 0x22
call fcn.10028180
add esp, 0xc
or ebp, 0xffffffff
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
call fcn.10083770
jmp 0x10083ed1
test ebx, ebx
jne 0x10083d6d
push str.string
push str.invalid_argument
push 0x1013afe8
push 3
call fcn.10028180
add esp, 0x10
jmp 0x10083d8a
mov ecx, ebx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10083d72
sub ecx, esi
mov edx, ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.10029b30
add esp, 4
push 3
mov edx, 0x10143128
lea ecx, [esp + 0x30]
call fcn.10029b30
mov ebx, dword [esp + 0x2c]
push 0x3a
push dword [ebx + 0x3c]
call fcn.100f6a80
add esp, 0xc
test eax, eax
je 0x10083dba
mov dl, 0x5b
lea ecx, [esp + 0x2c]
call fcn.10029a40
mov edx, dword [ebx + 0x3c]
test edx, edx
jne 0x10083ddc
push str.string
push str.invalid_argument
push 0x1013afe8
push 3
call fcn.10028180
add esp, 0x10
jmp 0x10083df7
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10083de1
sub ecx, esi
push ecx
lea ecx, [esp + 0x30]
call fcn.10029b30
add esp, 4
push 0x3a
push dword [ebx + 0x3c]
call fcn.100f6a80
add esp, 8
test eax, eax
je 0x10083e13
mov dl, 0x5d
lea ecx, [esp + 0x2c]
call fcn.10029a40
lea ecx, [ebx + 0x38]
call fcn.10057fa0
test al, al
jne 0x10083e34
push dword [ebx + 0x40]
lea eax, [esp + 0x30]
push 0x10145e9c
push eax
call fcn.1002a160
add esp, 0xc
mov esi, dword [esp + 0x2c]
cmp esi, 0x1015ddcc
je 0x10083d39
mov edx, esi
lea ecx, [esp + 0x24]
call fcn.1008bbd0
cmp dword [esp + 0x30], 0
mov ebp, eax
jbe 0x10083e70
test esi, esi
je 0x10083e70
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182f8]
call esi
add esp, 4
test ebp, ebp
js 0x10083d3c
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x4c]
push 0xc
push eax
mov eax, dword [esp + 0x18]
push 0x26
mov dword [esp + 0x58], 3
mov dword [esp + 0x5c], esi
push dword [eax + 0x1c]
mov dword [esp + 0x64], 0
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x10083f13
push str.failed_to_set_proxy
push 2
call fcn.10028180
add esp, 8
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182f8]
call esi
add esp, 4
mov esi, dword [esp + 0x14]
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182f8]
call esi
add esp, 4
cmp dword [esp + 0x1c], 0
jbe 0x10083f0c
test edi, edi
je 0x10083f0c
cmp edi, 0x1015ddcc
je 0x10083f0c
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
mov eax, ebp
jmp 0x1008420d
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182f8]
call esi
push dword [ebx + 0x58]
mov esi, dword [esp + 0x18]
push dword [ebx + 0x54]
push 1
mov ecx, dword [esi + 0x1c]
call fcn.100837f0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jns 0x10083f54
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
call fcn.10083770
jmp 0x10083ed1
mov esi, dword [esp + 0x10]
push 4
lea eax, [esp + 0x40]
push eax
push 0x3f
push dword [esi + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x10083f8e
push str.failed_to_disable_redirects
push 2
call fcn.10028180
mov ecx, dword [esp + 0x18]
add esp, 8
mov esi, dword [esp + 0x14]
or ebp, 0xffffffff
call fcn.10083770
jmp 0x10083ed1
push 4
lea eax, [esp + 0x44]
push eax
push 0x6d
push dword [esi + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0x20000000
push 0xffffffffffffffff
push str.Pragma:_no_cache
push dword [esi + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10083fc3
push str.failed_to_add_a_header_to_the_request
jmp 0x100841e6
cmp dword [esi + 0x18], str.POST
jne 0x100840ab
lea ecx, [esp + 0x18]
call fcn.10029970
push dword [esi + 0x10]
mov eax, ecx
push str.Content_Type:_application_x_git__s_request
push eax
call fcn.1002a160
add esp, 0xc
test eax, eax
js 0x100840a2
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x58]
push edi
mov edx, 0x64
call fcn.1008bb30
add esp, 4
test eax, eax
jns 0x10084018
push str.failed_to_convert_content_type_to_wide_characters
jmp 0x100841e6
push 0xa0000000
push 0xffffffffffffffff
lea eax, [esp + 0x60]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1008403b
push str.failed_to_add_a_header_to_the_request
jmp 0x100841e6
lea ecx, [esp + 0x18]
call fcn.10029970
push dword [esi + 0x10]
mov eax, ecx
push str.Accept:_application_x_git__s_result
push eax
call fcn.1002a160
add esp, 0xc
test eax, eax
js 0x100840a2
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x58]
push edi
mov edx, 0x64
call fcn.1008bb30
add esp, 4
test eax, eax
jns 0x1008407f
push str.failed_to_convert_accept_header_to_wide_characters
jmp 0x100841e6
push 0xa0000000
push 0xffffffffffffffff
lea eax, [esp + 0x60]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x100840ab
push str.failed_to_add_a_header_to_the_request
jmp 0x100841e6
mov edi, dword [esp + 0x18]
jmp 0x100841f0
mov eax, dword [ebx + 0xc]
xor esi, esi
cmp dword [eax + 0x98], esi
jbe 0x10084196
nop dword [eax]
mov eax, dword [eax + 0x94]
cmp dword [eax + esi*4], 0
je 0x10084186
mov dword [esp + 0x20], 0
test edi, edi
jne 0x100840ef
mov edi, 0x1015ddcd
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edi
jmp 0x100840f9
cmp dword [esp + 0x1c], 0
jbe 0x100840f9
mov byte [edi], 0
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x94]
mov edx, dword [eax + esi*4]
test edx, edx
jne 0x10084124
push str.string
push str.invalid_argument
push 0x1013afe8
push 3
call fcn.10028180
add esp, 0x10
jmp 0x1008414a
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10084130
sub ecx, edi
push ecx
lea ecx, [esp + 0x1c]
call fcn.10029b30
mov edi, dword [esp + 0x1c]
add esp, 4
push 0x64
lea eax, [esp + 0x5c]
push eax
push 0xffffffffffffffff
push edi
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x100841be
push 0xa0000000
push 0xffffffffffffffff
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x10083fb9
mov eax, dword [ebx + 0xc]
inc esi
cmp esi, dword [eax + 0x98]
jb 0x100840c0
push dword [ebx + 0x30]
mov eax, dword [esp + 0x14]
push dword [ebx + 0x2c]
push 0
mov ecx, dword [eax + 0x1c]
call fcn.100837f0
mov ebp, eax
add esp, 0xc
test ebp, ebp
js 0x10083d3c
xor ebp, ebp
jmp 0x10083ecd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100841d6
call fcn.100fe80a
mov dword [eax], 0x26
jmp 0x100841e1
call fcn.100fe80a
mov dword [eax], 0x16
push str.failed_to_convert_custom_header_to_wide_characters
push 2
call fcn.10028180
add esp, 8
test ebp, ebp
jns 0x10083ecd
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
call fcn.10083770
jmp 0x10083ed1
or eax, 0xffffffff
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100f4277
add esp, 0x114
ret