Function at 0x403e20
Capabilities:
Reference http user-agent string

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446f12
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x457040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebx + 0xc]
push str.Accept:_application_json
mov dword [ebp - 0xd0], 0
mov esi, dword [sym.imp.libcurl.dll_curl_slist_append]
push 0
mov dword [ebp - 0xcc], eax
call esi
push str.Content_Type:_application_json
push eax
call esi
push str.charsets:_utf_8
push eax
call esi
add esp, 0x18
mov dword [ebp - 0xd0], eax
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov edi, eax
test edi, edi
jne 0x403f5f
push 0x24
xorps xmm0, xmm0
mov dword [ebp - 0xdc], eax
push str.Failed_to_initialize_curl_easy_init.
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xd8], eax
movups xmmword [ebp - 0xec], xmm0
call fcn.00401fd0
mov dword [ebp - 4], edi
cmp dword [0x4675b0], edi
je 0x403f1c
cmp dword [ebp - 0xd8], 0xf
lea edx, [ebp - 0xec]
push dword [ebp - 0xdc]
cmova edx, dword [ebp - 0xec]
mov ecx, 0x467560
call fcn.00401de0
add esp, 4
mov ecx, eax
push 0x4404c0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0xd8]
cmp ecx, 0xf
jbe 0x403f58
mov edx, dword [ebp - 0xec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403f4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403f4e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00445a9b
add esp, 8
xor al, al
jmp 0x404199
mov eax, dword [ebp - 0xd4]
cmp dword [eax + 0x14], 0xf
jbe 0x403f6d
mov eax, dword [eax]
mov esi, dword [sym.imp.libcurl.dll_curl_easy_setopt]
push eax
push 0x2712
push edi
call esi
add esp, 0xc
push 0x402e30
push 0x4e2b
push edi
call esi
add esp, 0xc
push dword [ebp - 0xcc]
push 0x2711
push edi
call esi
add esp, 0xc
push dword [ebp - 0xd0]
push 0x2727
push edi
call esi
add esp, 0xc
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_91.0.4472.124_Safari_537.36
push 0x2722
push edi
call esi
add esp, 0xc
push edi
call dword [sym.imp.libcurl.dll_curl_easy_perform]
add esp, 4
mov dword [ebp - 0xcc], eax
test eax, eax
je 0x40418d
push 0xb0
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x44a5d8
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xb8], 0x44a5d0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xd0], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xb0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov edx, str.curl_easy_perform___failed:
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xb8]
call fcn.004019d0
push dword [ebp - 0xcc]
mov esi, eax
call dword [sym.imp.libcurl.dll_curl_easy_strerror]
add esp, 4
mov edx, eax
mov ecx, esi
call fcn.004019d0
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xc8]
call fcn.004016f0
mov byte [ebp - 4], 4
cmp dword [0x4675b0], 0
je 0x4040fc
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x4040df
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x467560
call fcn.00401de0
add esp, 4
mov ecx, eax
push 0x4404c0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0xf0]
cmp ecx, 0xf
jbe 0x404138
mov edx, dword [ebp - 0x104]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40412e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40412e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00445a9b
add esp, 8
push edi
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
mov eax, dword [ebp - 0xc8]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xb0]
call fcn.004027b0
lea ecx, [ebp - 0xa8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
xor al, al
jmp 0x404199
push edi
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00445a3a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8