Function at 0x100aa830
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0xe0
push 0xffffffffffffffff
push 0x10254848
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x1030fff4]
xor eax, ebp
mov dword [ebp + 0xdc], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x10
xor ebx, ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp + 0xac], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0xbc], ebx
mov dword [ebp + 0xc0], 7
mov word [ebp + 0xac], ax
inc eax
lea ecx, [ebp]
mov byte [ebp - 4], al
call fcn.10098718
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.1009eef5
mov ebx, eax
mov eax, dword [ebx + 0xbc]
cmp eax, 2
jne 0x100aa8d2
xor eax, eax
inc eax
xor esi, esi
jmp 0x100aaada
test eax, eax
je 0x100aaa03
cmp eax, 1
je 0x100aaa03
lea esi, [ebx + 0x10]
push esi
lea ecx, [ebp]
call fcn.10237091
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp + 0x18]
call fcn.1009ce46
lea ecx, [ebp]
call fcn.100a727a
test al, al
je 0x100aa917
cmp dword [ebp + 0x44], 8
lea esi, [ebp + 0x30]
cmovae esi, dword [ebp + 0x30]
jmp 0x100aa9fb
cmp dword [ebp + 0xa8], 0
jle 0x100aa9d1
push 1
lea ecx, [ebp - 0xc8]
call fcn.100982c4
mov byte [ebp - 4], 4
call sub.msvcp140.dll_public:_static_class_std::locale_const____cdecl_std::locale::classic_void_
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.msvcp140.dll_public:_class_std::locale___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const__]
lea ecx, [ebp - 0x1c]
call fcn.100514de
push dword [ebp + 0xa8]
lea eax, [ebp + 0x30]
push 0x1026cad0
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.1009729e
pop ecx
pop ecx
push eax
call fcn.10097123
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.msvcp140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea eax, [ebp + 0xc4]
push eax
lea ecx, [ebp - 0xc4]
call fcn.1009ca89
lea eax, [ebp + 0xc4]
push eax
lea ecx, [ebp + 0xac]
call fcn.100954e3
lea ecx, [ebp + 0xc4]
call fcn.100486a0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.100988c9
lea ecx, [ebp - 0x78]
call dword [sym.imp.msvcp140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x100aa9e7
mov byte [ebp - 0x10], 0
lea eax, [ebp + 0x30]
push dword [ebp - 0x10]
lea ecx, [ebp + 0xac]
push eax
call fcn.1008124d
cmp dword [ebp + 0xc0], 8
lea esi, [ebp + 0xac]
cmovae esi, dword [ebp + 0xac]
push 3
pop eax
jmp 0x100aaada
and dword [ebp - 0x10], 0
xor esi, esi
push esi
push 3
push 6
call fcn.100475fa
add esp, 0xc
test al, al
je 0x100aaa22
push 4
pop eax
jmp 0x100aaac9
push 0xc
lea eax, [ebp + 0xd0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0xd0]
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetDefaultProxyConfiguration]
test eax, eax
je 0x100aaa53
cmp dword [ebp + 0xd0], 1
jne 0x100aaab7
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x100aaab7
cmp dword [ebp - 0x2c], 0
je 0x100aaa70
mov byte [edi + 0x299], 1
jmp 0x100aaab7
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100aaa9a
push eax
mov byte [edi + 0x299], 1
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push dword [ebp - 0x18]
lea ecx, [edi + 0x29c]
call fcn.10237091
jmp 0x100aaab7
cmp dword [ebp - 0x24], 0
je 0x100aaab7
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x24]
cmovne eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 0xd0]
mov byte [ebp - 4], 2
call fcn.100a8833
mov eax, dword [ebp - 0x10]
xor ecx, ecx
inc ecx
cmp dword [ebx + 0xbc], ecx
jne 0x100aaada
mov byte [edi + 0x299], cl
push 0x10000000
push dword [ebp - 0x14]
push esi
push eax
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [edi + 0x290], esi
test esi, esi
jne 0x100aab02
push str.Error_opening_session
jmp 0x100aac23
push 0
push 0x3e8
push dword [ebx + 0x11c]
push dword [ebx + 0x118]
call fcn.10236230
xor ecx, ecx
inc ecx
cmp eax, ecx
cmovl eax, ecx
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x100aab3b
push str.Error_setting_timeouts
jmp 0x100aac23
cmp byte [ebx + 0x110], 0
je 0x100aab6c
xor eax, eax
inc eax
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x49
push dword [edi + 0x290]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x100aab6c
push str.Error_setting_options
jmp 0x100aac23
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0xaa0
push eax
push 0x54
push dword [edi + 0x290]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x100aab95
push str.Error_setting_session_options
jmp 0x100aac23
cmp dword [ebx + 0x174], 0
je 0x100aabaf
push dword [edi + 0x290]
lea ecx, [ebx + 0x150]
call fcn.1005112e
push 0
push 0x17f0c00
push 0x100a97c0
push dword [edi + 0x290]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x100aabd3
push str.Error_registering_callback
jmp 0x100aac23
lea ecx, [edi + 0x14]
call fcn.100a727a
test al, al
je 0x100aabf3
cmp byte [edi + 0x298], 0
mov ecx, 0x1bb
push 0x50
pop eax
cmovne eax, ecx
jmp 0x100aabf9
mov eax, dword [edi + 0xbc]
lea ecx, [edi + 0x44]
cmp dword [ecx + 0x14], 8
jb 0x100aac04
mov ecx, dword [ecx]
push 0
push eax
push ecx
push dword [edi + 0x290]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [edi + 0x294], eax
test eax, eax
jne 0x100aac43
push str.Error_opening_connection
lea ecx, [ebp + 0xc4]
call fcn.10045d6c
call dword [sym.imp.kernel32.dll_GetLastError]
lea ecx, [ebp + 0xc4]
mov esi, eax
call fcn.100486a0
jmp 0x100aac45
xor esi, esi
lea ecx, [ebp + 0x18]
call fcn.1007878f
lea ecx, [ebp]
call fcn.100486a0
mov eax, dword [ebp + 0xc0]
cmp eax, 8
jb 0x100aac98
mov ecx, dword [ebp + 0xac]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x100aac8f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10006a87
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.10237091
pop ecx
pop ecx
and dword [ebp + 0xbc], 0
lea ecx, [ebp - 0x2c]
xor eax, eax
mov dword [ebp + 0xc0], 7
mov word [ebp + 0xac], ax
call fcn.100a8801
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
call fcn.10236000
add ebp, 0xe0
leave
ret