Function at 0x408f20
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42add3
mov eax, dword fs:[0]
push eax
sub esp, 0x5ac
mov eax, dword [0x438080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50c], edx
mov edi, ecx
mov dword [ebp - 0x4d8], edi
push edi
lea ecx, [ebp - 0x58]
call fcn.0040c5e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
cmp dword [ebp - 0x44], 0xf
lea eax, [ebp - 0x58]
cmova edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x48]
cmp dword [ebp - 0x44], 0xf
cmova eax, dword [ebp - 0x58]
cmp eax, edx
je 0x408f95
cmp byte [eax], 0x5c
jne 0x408f90
mov byte [eax], 0x2f
inc eax
cmp eax, edx
jne 0x408f88
call dword [sym.imp.libcurl.dll_curl_easy_init]
cmp dword [ebp - 0x44], 0xf
lea ecx, [ebp - 0x58]
push dword [ebp - 0x48]
cmova ecx, dword [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x254], eax
call dword [sym.imp.libcurl.dll_curl_easy_escape]
mov esi, eax
mov dword [ebp - 0x4e0], 0
mov ecx, esi
mov dword [ebp - 0x4dc], 0
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [ebp - 0x4f0], xmm0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408fe0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x4f0]
call fcn.00410940
push esi
call dword [sym.imp.libcurl.dll_curl_free]
push dword [ebp - 0x254]
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
add esp, 8
mov byte [ebp - 4], 1
mov eax, 0x7fffffff
mov edx, dword [0x439138]
sub eax, edx
mov esi, dword [0x439150]
cmp eax, esi
jb 0x409e82
cmp dword [0x43913c], 0xf
mov ecx, 0x439128
push esi
cmova ecx, dword [0x439128]
mov eax, 0x439140
cmp dword [0x439154], 0xf
cmova eax, dword [0x439140]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x4d8]
lea ecx, [ebp - 0x524]
call fcn.00413150
lea eax, [ebp - 0x4f0]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x524]
push eax
push dword [ebp - 0x4d8]
lea ecx, [ebp - 0x78]
call fcn.00412f70
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x510]
cmp ecx, 0xf
jbe 0x4090c5
mov edx, dword [ebp - 0x524]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4090bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409e51
push ecx
push edx
call fcn.004294df
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4dc]
cmp ecx, 0xf
jbe 0x409103
mov edx, dword [ebp - 0x4f0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4090f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409e51
push ecx
push edx
call fcn.004294df
add esp, 8
push 0xe0
lea eax, [ebp - 0x3e4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x53c]
push eax
call fcn.0040c5e0
lea eax, [ebp - 0x524]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x53c]
push eax
push ecx
lea ecx, [ebp - 0x558]
call fcn.00401f70
mov esi, eax
push 0x1c0
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 7
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x250]
call dword [sym.imp.cpr.dll_public:_void___thiscall_cpr::Session::constructor_void_]
push esi
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 8
call dword [sym.imp.cpr.dll_public:_void___thiscall_cpr::Session::SetOption_class_cpr::Url_const__]
lea eax, [ebp - 0x3e4]
push eax
lea ecx, [ebp - 0x250]
call dword [sym.imp.cpr.dll_public:_class_cpr::Response___thiscall_cpr::Session::Head_void_]
lea ecx, [ebp - 0x250]
call fcn.00411d10
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x540]
cmp ecx, 0xf
jbe 0x4091dc
mov edx, dword [ebp - 0x554]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4091d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4091d2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004294df
add esp, 8
mov dword [ebp - 0x544], 0
mov dword [ebp - 0x540], 0xf
mov byte [ebp - 0x554], 0
push fcn.0040c380
push 1
push 0x18
lea eax, [ebp - 0x53c]
mov byte [ebp - 4], 0xb
push eax
call fcn.00429179
cmp dword [ebp - 0x3dc], 0xc8
je 0x409277
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Co_loi_khi_tai_file
call fcn.0040f4e0
cmp dword [edi + 0x14], 0xf
mov ecx, dword [edi + 0x10]
jbe 0x409237
mov edi, dword [edi]
push ecx
mov edx, edi
mov ecx, eax
call fcn.00416730
add esp, 4
mov edx, 0x42e958
mov ecx, eax
call fcn.0040f4e0
push dword [ebp - 0x3dc]
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___long_int_]
push 0x40f700
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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 0x4c5], 0
jmp 0x409df0
push 0xe
xorps xmm0, xmm0
mov dword [ebp - 0x4e0], 0
push str.Content_Length
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x4dc], 0
movups xmmword [ebp - 0x4f0], xmm0
call fcn.00410940
lea eax, [ebp - 0x4f0]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x3c0]
call fcn.0040b6d0
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [esi + 0x14], 0xf
mov dword [ebp - 0x4cc], eax
jbe 0x4092d3
mov esi, dword [esi]
mov dword [eax], 0
lea eax, [ebp - 0x254]
push 0xa
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoll]
add esp, 0xc
mov ecx, eax
cmp esi, dword [ebp - 0x254]
jne 0x409301
push str.invalid_stoll_argument
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__]
mov eax, dword [ebp - 0x4cc]
cmp dword [eax], 0x22
jne 0x409317
push str.stoll_argument_out_of_range
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x5c], edx
cmp ecx, 0xf
jbe 0x40935d
mov edx, dword [ebp - 0x4f0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409353
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409353
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004294df
add esp, 8
mov byte [ebp - 0x4cc], 0
lea ecx, [ebp - 0x524]
push dword [ebp - 0x4cc]
mov edx, edi
call fcn.00416610
mov byte [ebp - 0x4cc], 0
lea ecx, [ebp - 0x4f0]
push dword [ebp - 0x4cc]
mov edx, 0x4390f0
mov byte [ebp - 4], 0xd
call fcn.00416610
lea eax, [ebp - 0x524]
mov byte [ebp - 4], 0xe
push eax
lea edx, [ebp - 0x4f0]
lea ecx, [ebp - 0x40]
call fcn.00402560
add esp, 0xc
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x4dc]
cmp ecx, 7
jbe 0x4093f4
mov edx, dword [ebp - 0x4f0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4093ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409447
push ecx
push edx
call fcn.004294df
add esp, 8
xor eax, eax
mov dword [ebp - 0x4e0], 0
mov dword [ebp - 0x4dc], 7
mov word [ebp - 0x4f0], ax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x510]
cmp ecx, 7
jbe 0x409457
mov edx, dword [ebp - 0x524]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40944d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40944d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004294df
add esp, 8
mov edx, dword [0x439100]
xor eax, eax
mov esi, dword [edi + 0x10]
mov word [ebp - 0x524], ax
mov eax, 0x7fffffff
sub eax, edx
mov dword [ebp - 0x514], 0
mov dword [ebp - 0x510], 7
cmp eax, esi
jb 0x409e87
cmp dword [0x439104], 0xf
mov eax, 0x4390f0
mov ecx, edi
cmova eax, dword [0x4390f0]
cmp dword [edi + 0x14], 0xf
jbe 0x4094a9
mov ecx, dword [edi]
push esi
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x4d8]
lea ecx, [ebp - 0x90]
call fcn.00413150
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x53c]
call fcn.0040bf00
movups xmm1, xmmword [ebp - 0x53c]
movq xmm0, qword [ebp - 0x52c]
movups xmmword [ebp - 0x28], xmm1
movq qword [ebp - 0x18], xmm0
movd eax, xmm1
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x14], 7
cmova esi, eax
lea eax, [ebp - 0x28]
push eax
call fcn.00425140
add esp, 4
mov dword [ebp - 0x4e0], 0
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x4dc], 0
cmova ecx, dword [ebp - 0x28]
lea eax, [esi + eax*2]
movups xmmword [ebp - 0x4f0], xmm0
cmp ecx, eax
jne 0x409557
xor eax, eax
mov dword [ebp - 0x4e0], 0
mov dword [ebp - 0x4dc], 7
mov word [ebp - 0x4f0], ax
jmp 0x409568
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x4f0]
call fcn.004106a0
push 0
lea eax, [ebp - 0x4f0]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x4d4]
push eax
call fcn.00426cf0
mov eax, dword [ebp - 0x4d4]
add esp, 0xc
test eax, eax
je 0x40959a
mov byte [ebp - 0x4c5], 0
cmp eax, 1
jne 0x4095a1
mov byte [ebp - 0x4c5], 1
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x4dc]
cmp ecx, 7
jbe 0x4095e7
mov edx, dword [ebp - 0x4f0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4095dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4095dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004294df
add esp, 8
cmp byte [ebp - 0x4c5], 0
je 0x4096c6
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
lea esi, [ebp - 0x28]
cmova esi, dword [ebp - 0x28]
push eax
call fcn.00425140
add esp, 4
mov dword [ebp - 0x4e0], 0
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x4dc], 0
cmova ecx, dword [ebp - 0x28]
lea eax, [esi + eax*2]
movups xmmword [ebp - 0x4f0], xmm0
cmp ecx, eax
jne 0x40965a
xor eax, eax
mov dword [ebp - 0x4e0], 0
mov dword [ebp - 0x4dc], 7
mov word [ebp - 0x4f0], ax
jmp 0x40966b
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x4f0]
call fcn.004106a0
lea eax, [ebp - 0x4f0]
mov byte [ebp - 4], 0x15
push 0
push eax
call fcn.00425b10
mov byte [ebp - 4], 0x13
add esp, 8
mov ecx, dword [ebp - 0x4dc]
cmp ecx, 7
jbe 0x4096c6
mov edx, dword [ebp - 0x4f0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4096bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4096bc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004294df
add esp, 8
push 0xb0
lea eax, [ebp - 0x304]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x304]
cmova eax, dword [ebp - 0x40]
push eax
call fcn.00412b00
mov eax, dword [ebp - 0x304]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x304]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x308], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x304]
mov eax, dword [ebp - 0x304]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator__void_const]
test al, al
je 0x409767
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error:_Khong_the_tao_file
call fcn.0040f4e0
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.0040fac0
push 0x40f700
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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 0x4c5], 0
jmp 0x409c77
push 0xe0
lea eax, [ebp - 0x4c4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x60]
mov dword [ebp - fcn.00419cd0], 0x430b6c
mov dword [ebp - 0x584], eax
lea ecx, [ebp - 0x588]
add esp, 0xc
mov dword [ebp - 0x5b8], 0
lea eax, [ebp - 0x588]
mov dword [ebp - 0x58c], 0
mov dword [ebp - 0x564], eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.00419cd0
mov ecx, dword [ebp - 0x564]
mov dword [ebp - 0x58c], eax
test ecx, ecx
je 0x4097ef
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x588]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x564], 0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x508]
xorps xmm0, xmm0
mov byte [ebp - 0x4c5], 0
push 0xc
push str.Content_Type
movlpd qword [ebp - 0x560], xmm0
mov dword [ebp - 0x254], 0x400000
movups xmmword [ebp - 0x508], xmm0
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x4f4], 0
call fcn.00410940
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x4f0]
push 0x18
xorps xmm0, xmm0
mov dword [ebp - 0x4e0], 0
push str.application_octet_stream
movups xmmword [ebp - 0x4f0], xmm0
mov dword [ebp - 0x4dc], 0
call fcn.00410940
mov byte [ebp - 4], 0x1a
lea esi, [ebp - 0x508]
push 0x40
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
call fcn.00429149
add esp, 4
mov dword [ebp - 0x4cc], eax
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x4d4], eax
lea eax, [ebp - 0x4d8]
mov byte [ebp - 4], 0x1b
cmp esi, eax
je 0x4098e6
mov edi, dword [ebp - 0x4cc]
push esi
push edi
lea ecx, [ebp - 0x4d4]
call fcn.00417a50
add esi, 0x30
lea eax, [ebp - 0x4d8]
cmp esi, eax
jne 0x4098c6
mov edi, dword [ebp - 0x4d8]
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x53c]
call fcn.0040c5e0
lea eax, [ebp - 0x524]
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x53c]
push eax
push ecx
lea ecx, [ebp - 0x558]
call fcn.00401f70
mov esi, eax
push 0x1c0
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0x1e
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x250]
call dword [sym.imp.cpr.dll_public:_void___thiscall_cpr::Session::constructor_void_]
push esi
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x1f
call dword [sym.imp.cpr.dll_public:_void___thiscall_cpr::Session::SetOption_class_cpr::Url_const__]
lea eax, [ebp - 0x4d4]
push eax
lea ecx, [ebp - 0x250]
call dword [sym.imp.cpr.dll_public:_void___thiscall_cpr::Session::SetOption_class_std::map_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____struct_cpr::CaseInsensitiveCompare__class_std::allocator_struct_std::pair_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______const__]
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x250]
call dword [sym.imp.cpr.dll_public:_void___thiscall_cpr::Session::SetOption_class_cpr::ReserveSize_const__]
lea eax, [ebp - 0x4c5]
push eax
lea ecx, [ebp - 0x250]
call dword [sym.imp.cpr.dll_public:_void___thiscall_cpr::Session::SetOption_class_cpr::VerifySsl_const__]
lea eax, [ebp - 0x560]
push eax
lea ecx, [ebp - 0x250]
call dword [sym.imp.cpr.dll_public:_void___thiscall_cpr::Session::SetOption_class_cpr::Timeout_const__]
lea eax, [ebp - 0x5b8]
push eax
lea ecx, [ebp - 0x250]
call dword [sym.imp.cpr.dll_public:_void___thiscall_cpr::Session::SetOption_class_cpr::ProgressCallback_const__]
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x4c4]
push eax
lea ecx, [ebp - 0x250]
call dword [sym.imp.cpr.dll_public:_class_cpr::Response___thiscall_cpr::Session::Download_class_std::basic_ofstream_char__struct_std::char_traits_char____]
lea ecx, [ebp - 0x250]
call fcn.00411d10
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x540]
cmp ecx, 0xf
jbe 0x409a13
mov edx, dword [ebp - 0x554]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409a09
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409a09
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004294df
add esp, 8
mov dword [ebp - 0x544], 0
mov dword [ebp - 0x540], 0xf
mov byte [ebp - 0x554], 0
push fcn.0040c380
push 1
push 0x18
lea eax, [ebp - 0x53c]
mov byte [ebp - 4], 0x22
push eax
call fcn.00429179
mov eax, dword [ebp - 0x4d4]
push dword [eax + 4]
lea eax, [ebp - 0x4d4]
push eax
mov ecx, eax
call fcn.00417440
push 0x40
push dword [ebp - 0x4d4]
call fcn.004294df
add esp, 8
push fcn.00409ec0
push 1
push 0x30
lea eax, [ebp - 0x508]
mov byte [ebp - 4], 0x24
push eax
call fcn.00429179
mov byte [ebp - 4], 0x25
mov ecx, dword [ebp - 0x58c]
test ecx, ecx
je 0x409ab2
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x5b0]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x58c], 0
cmp dword [ebp - 0x4bc], 0xc8
je 0x409b05
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Co_loi_khi_tai_file
call fcn.0040f4e0
cmp dword [edi + 0x14], 0xf
mov ecx, dword [edi + 0x10]
jbe 0x409ad9
mov edi, dword [edi]
push ecx
mov edx, edi
mov ecx, eax
call fcn.00416730
add esp, 4
mov edx, 0x42e958
mov ecx, eax
call fcn.0040f4e0
push dword [ebp - 0x4bc]
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___long_int_]
jmp 0x409c0e
lea ecx, [ebp - 0x300]
call fcn.0040de30
test eax, eax
jne 0x409b2d
mov eax, dword [ebp - 0x304]
lea ecx, [ebp - 0x304]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push ecx
lea eax, [ebp - 0x524]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040f060
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 0x27
call fcn.0040a170
mov byte [ebp - 4], 0x25
mov esi, eax
mov ecx, dword [ebp - 0x510]
cmp ecx, 0xf
jbe 0x409b8e
mov edx, dword [ebp - 0x524]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409b84
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409b84
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004294df
add esp, 8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.DOWNLOAD_CRC
call fcn.0040f4e0
push esi
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___unsigned_int_]
mov edx, 0x42f08c
mov ecx, eax
call fcn.0040f4e0
mov ecx, dword [ebp - 0x50c]
push dword [ecx]
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___unsigned_int_]
push 0x40f700
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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [ebp - 0x50c]
cmp esi, dword [eax]
je 0x409c24
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.File_tai
call fcn.0040f4e0
cmp dword [edi + 0x14], 0xf
mov ecx, dword [edi + 0x10]
jbe 0x409bf5
mov edi, dword [edi]
push ecx
mov edx, edi
mov ecx, eax
call fcn.00416730
add esp, 4
mov edx, str._da_bi_hong
mov ecx, eax
call fcn.0040f4e0
push 0x40f700
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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 0x4c5], 0
jmp 0x409c6c
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Tai_file
call fcn.0040f4e0
cmp dword [edi + 0x14], 0xf
mov ecx, dword [edi + 0x10]
jbe 0x409c3f
mov edi, dword [edi]
push ecx
mov edx, edi
mov ecx, eax
call fcn.00416730
add esp, 4
mov edx, str._thanh_cong
mov ecx, eax
call fcn.0040f4e0
push 0x40f700
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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 0x4c5], 1
lea ecx, [ebp - 0x4c4]
call fcn.00407a00
mov eax, dword [ebp - 0x304]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x304]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x308], eax
mov byte [ebp - 4], 0x29
cmp dword [ebp - 0x2b4], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x409ce5
mov eax, dword [ebp - 0x2f4]
lea ecx, [ebp - 0x2c4]
cmp dword [eax], ecx
jne 0x409ce5
mov edx, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2b0]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x2e4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2d4]
mov dword [eax], edx
cmp byte [ebp - 0x2b8], 0
je 0x409cf9
lea ecx, [ebp - 0x300]
call fcn.0040de30
lea ecx, [ebp - 0x300]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x2fc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x29c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x409d57
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409d4d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409e51
push ecx
push edx
call fcn.004294df
add esp, 8
mov ecx, dword [ebp - 0x7c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 0xf
jbe 0x409da2
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409d98
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409e51
push ecx
push edx
call fcn.004294df
add esp, 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x409ddc
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409dd2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409e51
push ecx
push edx
call fcn.004294df
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x3e4]
call fcn.00407a00
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x409e2b
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409e51
push ecx
push edx
call fcn.004294df
add esp, 8
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x409e61
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e57
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409e57
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004294df
add esp, 8
mov al, byte [ebp - 0x4c5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429136
mov esp, ebp
pop ebp
ret
call fcn.00401470
call fcn.00401470
int3