Function at 0x4041d0
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 0x446fe2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a8
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 esi, dword [ebx + 0xc]
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], 0
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov edi, eax
test edi, edi
jne 0x4042e1
push 0x24
xorps xmm0, xmm0
mov dword [ebp - 0x18c], eax
push str.Failed_to_initialize_curl_easy_init.
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x188], eax
movups xmmword [ebp - 0x19c], xmm0
call fcn.00401fd0
mov dword [ebp - 4], edi
cmp dword [0x4675b0], edi
je 0x40429e
cmp dword [ebp - 0x188], 0xf
lea edx, [ebp - 0x19c]
push dword [ebp - 0x18c]
cmova edx, dword [ebp - 0x19c]
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 - 0x188]
cmp ecx, 0xf
jbe 0x4042da
mov edx, dword [ebp - 0x19c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4042d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4042d0
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 0x4047dc
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x4042eb
mov eax, dword [esi]
push 0x44ea64
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov dword [ebp - 0x17c], eax
test eax, eax
jne 0x40457f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 0xb0
push 0
mov eax, dword [eax]
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0xc8]
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 - 0x180], 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.Failed_to_open_file_for_binary_writing:
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xb8]
call fcn.004019d0
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x180], eax
jbe 0x4043f0
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
mov esi, edx
lea ecx, [edx + ecx*2]
jmp 0x4043f6
mov eax, dword [esi + 0x10]
lea ecx, [esi + eax*2]
push ecx
push ecx
push esi
lea ecx, [ebp - 0x19c]
call fcn.00401c10
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x404413
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp - 0x180]
mov edx, eax
call fcn.00401de0
add esp, 4
mov edx, str.._Error_code:
mov ecx, eax
call fcn.004019d0
push dword [ebp - 0x17c]
mov ecx, eax
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___int_]
mov edx, str.__Error_message:
mov ecx, eax
call fcn.004019d0
push dword [ebp - 0x17c]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
mov edx, eax
mov ecx, esi
call fcn.004019d0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x188]
cmp ecx, 0xf
jbe 0x4044a4
mov edx, dword [ebp - 0x19c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40449a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40449a
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
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0xc8]
call fcn.004016f0
mov byte [ebp - 4], 5
cmp dword [0x4675b0], 0
je 0x4044eb
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x4044ce
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 - 0x188]
cmp ecx, 0xf
jbe 0x404527
mov edx, dword [ebp - 0x19c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40451d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40451d
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 0x4047dc
mov eax, dword [ebp - 0x184]
cmp dword [eax + 0x14], 0xf
jbe 0x40458d
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 0x4041c0
push 0x4e2b
push edi
call esi
add esp, 0xc
push dword [ebp - 0x17c]
push 0x2711
push edi
call esi
add esp, 0xc
push 1
push 0x2d
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 - 0x184], eax
test eax, eax
je 0x4047c1
push 0xb0
lea eax, [ebp - 0x178]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x178], 0x44a5d8
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x168], 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 - 0x160]
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x180], 2
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], 7
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x17c], eax
lea ecx, [ebp - 0x160]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov edx, str.curl_easy_perform___failed:
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x168]
call fcn.004019d0
push dword [ebp - 0x184]
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 - 0x1b4]
push eax
lea ecx, [ebp - 0x178]
call fcn.004016f0
mov byte [ebp - 4], 9
cmp dword [0x4675b0], 0
je 0x40471e
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x404701
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 - 0x1a0]
cmp ecx, 0xf
jbe 0x40475a
mov edx, dword [ebp - 0x1b4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404750
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404750
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]
add esp, 4
push dword [ebp - 0x17c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp - 0x178]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x17c], eax
lea ecx, [ebp - 0x160]
call fcn.004027b0
lea ecx, [ebp - 0x158]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x110]
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 0x4047dc
push dword [ebp - 0x17c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
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