Function at 0x4524b0
Capabilities:
Connect to http server
Create http request
Get http content length
Make an http request with a cookie
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e5f4
mov eax, dword fs:[0]
push eax
mov eax, 0x514c
call fcn.004581b0
mov eax, dword [0x47800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x5144], edi
mov ebx, ecx
mov dword [ebp - 0x514c], ebx
mov dword [ebp - 0x5138], ebx
mov dword [ebp - 0x5158], 0
push dword [edi + 4]
push dword [edi]
push str.Tools::Download
push str._s_url__s___output_file___s_
push 1
push 6
call fcn.004506f0
add esp, 0x18
push 0x460244
lea ecx, [ebp - 0x5134]
mov dword [ebp - 4], 0
call fcn.0042c540
mov byte [ebp - 0x5130], 0
push 0
push 0
push 0
push 0
push str.WinClient
mov dword [ebp - 4], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x5038], eax
test eax, eax
jne 0x4525bf
push str.Tools::Download
push str._s_internet_open_failed_
push 2
push 6
call fcn.004506f0
mov ecx, dword [ebp - 0x5134]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.0042d8f0
add eax, 0x10
mov dword [ebx], eax
mov al, byte [ebp - 0x5130]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x5134]
mov byte [ebx + 4], al
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x452e52
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x452e52
call fcn.0040f730
mov ecx, eax
test ecx, ecx
jne 0x4525d4
push 0x80004005
call fcn.0041ffc0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x5054], esi
mov byte [ebp - 4], 2
call fcn.0040f730
mov ecx, eax
test ecx, ecx
jne 0x4525fb
push 0x80004005
call fcn.0041ffc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5034], eax
mov byte [ebp - 4], 3
call fcn.0040f730
mov ecx, eax
test ecx, ecx
jne 0x452622
push 0x80004005
call fcn.0041ffc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x502c], eax
lea eax, [ebp - 0x5044]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x502c]
mov dword [ebp - 0x5044], 0
push eax
lea edx, [ebp - 0x5034]
mov ecx, edi
call fcn.00454170
add esp, 8
test al, al
jne 0x452723
push str.Tools::Download
push str._s_internet_crack_url_failed_
push 2
push 6
call fcn.004506f0
mov ecx, dword [ebp - 0x5134]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.0042d8f0
add eax, 0x10
mov dword [ebx], eax
mov al, byte [ebp - 0x5130]
mov byte [ebx + 4], al
or ebx, 0xffffffff
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x502c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4526ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x5034]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4526db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4526f6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5134]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x452718
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x514c]
jmp 0x452e54
push 0x461f54
lea ecx, [ebp - 0x5030]
mov dword [ebp - 0x5030], 0
call fcn.0042c540
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x5030]
test eax, eax
je 0x4527b4
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jl 0x4527b4
push eax
push ecx
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4527b4
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4527b4
mov ecx, dword [ebp - 0x5134]
lea ecx, [ecx - 0x10]
call fcn.0042d8f0
add eax, 0x10
mov dword [ebx], eax
mov al, byte [ebp - 0x5130]
mov byte [ebx + 4], al
or ebx, 0xffffffff
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x5030]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x452699
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x452699
mov edi, dword [ebp - 0x5034]
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x5044]
push edi
push dword [ebp - 0x5038]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x5044], eax
test eax, eax
jne 0x45287b
push str.Tools::Download
push str._s_internet_connect_failed_
push 2
push 6
call fcn.004506f0
mov ecx, dword [ebp - 0x5134]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.0042d8f0
add eax, 0x10
mov dword [ebx], eax
mov al, byte [ebp - 0x5130]
mov byte [ebx + 4], al
or ebx, 0xffffffff
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x5030]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45283b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x502c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45285c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4526db
mov ecx, dword [edi]
push edi
jmp 0x4526d6
mov edi, dword [ebp - 0x5144]
push ecx
mov esi, esp
mov byte [ebp - 0x5021], 0
mov dword [ebp - 0x5138], esi
mov ecx, dword [edi]
sub ecx, 0x10
mov dword [ebp - 0x5038], 0x50
call fcn.0042d8f0
add eax, 0x10
lea edx, [ebp - 0x5038]
lea ecx, [ebp - 0x5021]
mov dword [esi], eax
call fcn.004542a0
add esp, 4
mov dword [ebp - 0x5040], 0
lea ecx, [ebp - 0x5040]
push 0x467534
call fcn.0042c540
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x503c]
push 0x467584
mov dword [ebp - 0x503c], 0
call fcn.0042c540
mov byte [ebp - 4], 7
xor ecx, ecx
mov eax, dword [ebp - 0x503c]
mov esi, 0x8040c200
cmp dword [eax - 0xc], ecx
mov dword [ebp - 0x501c], ecx
cmove eax, ecx
lea ecx, [edi + 0xc]
mov dword [ebp - 0x5020], eax
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x45293a
push ecx
push str.Cookie:
call fcn.0042c0b0
cmp eax, 0xffffffff
mov ecx, 0x8048c200
cmovne esi, ecx
cmp byte [ebp - 0x5021], 0
je 0x452949
or esi, 0x803000
mov eax, dword [edi + 0x10]
cmp dword [eax - 0xc], 0
je 0x452969
push eax
push str.Tools::Download
push str._s_Opening_HTTP_request_with__referer___s_
push 0
push 6
call fcn.004506f0
add esp, 0x14
mov eax, dword [edi + 0x10]
xor ecx, ecx
push 1
push esi
cmp dword [eax - 0xc], ecx
cmove eax, ecx
lea ecx, [ebp - 0x5020]
push ecx
push eax
push 0
push dword [ebp - 0x502c]
push dword [ebp - 0x5040]
push dword [ebp - 0x5044]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x5140], esi
test esi, esi
jne 0x4529ce
push str.Tools::Download
push str._s_open_request_failed_
push 2
push 6
call fcn.004506f0
add esp, 0x10
lea eax, [ebp - 0x5134]
mov ecx, ebx
push eax
call fcn.00453420
jmp 0x452e05
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x4529ee
push eax
push str.Tools::Download
push str._s_Additional_headers___s_
push 0
push 6
call fcn.004506f0
add esp, 0x14
cmp dword [edi + 0x18], 0
movsd xmm0, qword [0x468320]
movsd qword [ebp - 0x5154], xmm0
mov dword [ebp - 0x5148], 0
jle 0x452ad2
push 4
lea eax, [ebp - 0x5028]
mov dword [ebp - 0x5028], 0x7530
push eax
push 6
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
call esi
test eax, eax
je 0x452a48
push dword [ebp - 0x5028]
push str.Tools::Download
push str._s_Set_HttpRequest_InternetSetOption_Rec___d_
push 0
jmp 0x452a5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Tools::Download
push str._s_HttpRequest_InternetSetOption_Rec_error___d_
push 2
push 6
call fcn.004506f0
add esp, 0x14
lea eax, [ebp - 0x5028]
push 4
push eax
push 5
push dword [ebp - 0x5140]
call esi
test eax, eax
je 0x452a90
push dword [ebp - 0x5028]
push str.Tools::Download
push str._s_Set_HttpRequest_InternetSetOption_Send___d_
push 0
jmp 0x452aa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Tools::Download
push str._s_HttpRequest_InternetSetOption_Send_error___d_
push 2
push 6
call fcn.004506f0
mov eax, dword [edi + 0x14]
add esp, 0x14
mov esi, dword [ebp - 0x5140]
test eax, eax
jle 0x452ad2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x468340]
movsd qword [ebp - 0x5154], xmm0
mov ecx, dword [edi + 0xc]
cmp dword [ecx - 0xc], 0
jne 0x452af1
push 0
lea ecx, [ebp - 0x5038]
call fcn.0042c540
mov edx, eax
mov ecx, 2
jmp 0x452b0d
add ecx, 0xfffffff0
call fcn.0042d8f0
add eax, 0x10
lea edx, [ebp - 0x5048]
mov dword [ebp - 0x5048], eax
mov ecx, 4
mov eax, dword [edi + 0xc]
push 0
push 0
mov dword [ebp - 0x5028], ecx
push dword [eax - 0xc]
push dword [edx]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
mov eax, dword [ebp - 0x5028]
test al, 4
je 0x452b4c
and eax, 0xfffffffb
lea ecx, [ebp - 0x5048]
mov dword [ebp - 0x5028], eax
call fcn.0042bbf0
mov eax, dword [ebp - 0x5028]
mov dword [ebp - 4], 7
test al, 2
je 0x452b62
lea ecx, [ebp - 0x5038]
call fcn.0042bbf0
test esi, esi
jne 0x452b75
push str.Tools::Download
push str._s_send_request_failed_
jmp 0x4529af
push 0x2801
lea eax, [ebp - 0x2814]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x507c], 0x2800
lea eax, [ebp - 0x507c]
push 0
push eax
lea eax, [ebp - 0x2814]
push eax
push 0x13
push dword [ebp - 0x5140]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x452bc6
push str.Tools::Download
push str._s_query_info_status_failed_
jmp 0x4529af
lea eax, [ebp - 0x2814]
mov dword [ebp - 0x5050], 0
push eax
lea ecx, [ebp - 0x5050]
call fcn.0042c540
mov byte [ebp - 4], 9
push dword [ebp - 0x5050]
push str.Tools::Download
push str._s_query_status___s_
push 1
push 6
call fcn.004506f0
add esp, 0x14
lea ecx, [ebp - 0x5074]
call fcn.00454390
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x5074]
xor edi, edi
mov dword [ebp - 0x5028], edi
call fcn.00449360
test eax, eax
jle 0x452dcb
nop dword [eax]
cmp byte [ebp - 0x506c], 0
jne 0x452c43
mov esi, 0x47ae10
jmp 0x452ce3
mov ecx, dword [ebp - 0x5074]
lea eax, [ebp - 0x504c]
push eax
lea eax, [ebp - 0x5138]
xorps xmm0, xmm0
movq qword [ebp - 0x504c], xmm0
push eax
mov dword [ebp - 0x504c], 0
mov dword [ebp - 0x5048], edi
call fcn.00449b10
mov ecx, dword [ebp - 0x5074]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x452cb2
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x504c]
test esi, esi
je 0x452ca7
cmp dword [ebp - 0x5048], 1
jne 0x452ca7
call fcn.004489d0
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0xa
mov esi, 0x47ae10
jmp 0x452ce3
lea esi, [eax + 0x18]
mov byte [ebp - 4], 0xc
mov edi, dword [ebp - 0x504c]
test edi, edi
je 0x452cd9
cmp dword [ebp - 0x5048], 1
jne 0x452cd9
call fcn.004489d0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x5028]
cmp byte [esi + 8], 4
jne 0x452db1
cmp byte [ebp - 0x506c], 0
jne 0x452d00
mov esi, 0x47ae10
jmp 0x452d96
mov ecx, dword [ebp - 0x5074]
lea eax, [ebp - 0x504c]
push eax
lea eax, [ebp - 0x5038]
xorps xmm0, xmm0
movq qword [ebp - 0x504c], xmm0
push eax
mov dword [ebp - 0x504c], 0
mov dword [ebp - 0x5048], edi
call fcn.00449b10
mov ecx, dword [ebp - 0x5074]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x452d6b
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x504c]
test esi, esi
je 0x452d64
cmp dword [ebp - 0x5048], 1
jne 0x452d64
call fcn.004489d0
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, 0x47ae10
jmp 0x452d92
lea esi, [eax + 0x18]
mov byte [ebp - 4], 0xe
mov edi, dword [ebp - 0x504c]
test edi, edi
je 0x452d92
cmp dword [ebp - 0x5048], 1
jne 0x452d92
call fcn.004489d0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0xa
mov edx, dword [esi]
lea ecx, [ebp - 0x5050]
call fcn.004549b0
test al, al
jne 0x452e70
mov edi, dword [ebp - 0x5028]
inc edi
lea ecx, [ebp - 0x5074]
mov dword [ebp - 0x5028], edi
call fcn.00449360
cmp edi, eax
jl 0x452c30
push str.Tools::Download
push str._s_query_status_not_good_
push 2
push 6
call fcn.004506f0
add esp, 0x10
lea eax, [ebp - 0x5134]
mov ecx, ebx
push eax
call fcn.00453420
lea ecx, [ebp - 0x5074]
call fcn.00448e30
lea ecx, [ebp - 0x5050]
call fcn.0042bbf0
lea ecx, [ebp - 0x503c]
call fcn.0042bbf0
lea ecx, [ebp - 0x5040]
call fcn.0042bbf0
lea ecx, [ebp - 0x5030]
call fcn.0042bbf0
lea ecx, [ebp - 0x502c]
call fcn.0042bbf0
lea ecx, [ebp - 0x5034]
call fcn.0042bbf0
lea ecx, [ebp - 0x5054]
call fcn.0042bbf0
lea ecx, [ebp - 0x5134]
call fcn.00429e70
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004568f7
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x5058], 0
movq qword [ebp - 0x5060], xmm0
mov dword [ebp - 0x5060], 0
mov dword [ebp - 0x505c], 0
mov dword [ebp - 0x5058], 0
xor edi, edi
mov byte [ebp - 4], 0xf
push 0x2801
lea eax, [ebp - 0x5018]
mov dword [ebp - 0x5064], 0
push edi
push eax
mov dword [ebp - 0x5038], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x5078], 0x2800
lea eax, [ebp - 0x5078]
push edi
push eax
lea eax, [ebp - 0x5018]
push eax
push 0x20000005
push dword [ebp - 0x5140]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x452f53
mov edx, dword [ebp - 0x5078]
test edx, edx
jle 0x452f2a
lea ecx, [edx*8 - 8]
lea esi, [ebp - 0x5018]
movzx eax, byte [esi + edx - 1]
dec edx
shl eax, cl
sub ecx, 8
or edi, eax
test edx, edx
jg 0x452f13
mov dword [ebp - 0x5038], edi
movd xmm0, edi
mov eax, edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x468360]
mulsd xmm0, qword [ebp - 0x5154]
call fcn.004583c1
mov dword [ebp - 0x5148], eax
mov edi, 1
xor ecx, ecx
mov dword [ebp - 0x5048], edi
mov dword [ebp - 0x5028], ecx
nop word [eax + eax]
mov esi, dword [ebp - 0x505c]
lea ecx, [ebp - 0x5060]
sub esi, dword [ebp - 0x5060]
mov dword [ebp - 0x5138], esi
lea eax, [esi + 0x2800]
push eax
call fcn.0044e6c0
mov ecx, dword [ebp - 0x5060]
lea eax, [ebp - 0x5064]
push eax
imul eax, edi, 0x2800
add ecx, esi
mov dword [ebp - 0x5064], 0
push eax
push ecx
push dword [ebp - 0x5140]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x452fea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4530f3
cmp edi, 0xa
jg 0x4530f3
inc edi
mov dword [ebp - 0x5064], 0xffffffff
jmp 0x452f70
mov eax, dword [ebp - 0x5064]
lea ecx, [ebp - 0x5060]
add eax, esi
mov edi, 1
push eax
call fcn.0044e6c0
mov ecx, dword [ebp - 0x5144]
cmp dword [ecx + 0x18], 0
jle 0x453075
mov eax, dword [ebp - 0x5028]
add eax, dword [ebp - 0x5064]
mov dword [ebp - 0x5028], eax
cmp eax, dword [ebp - 0x5148]
jb 0x453075
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x5028], esi
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.0042d8f0
mov ecx, dword [ebp - 0x5144]
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 0x5048]
mov eax, dword [ecx + 0x14]
imul eax, esi
push eax
push dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
call eax
xor ecx, ecx
add esp, 0x10
inc esi
mov dword [ebp - 0x5028], ecx
mov dword [ebp - 0x5048], esi
mov esi, dword [ebp - 0x5138]
mov eax, dword [ebp - 0x5064]
lea ecx, [ebp - 0x5060]
add eax, esi
push eax
call fcn.0044e6c0
mov ecx, dword [ebp - 0x5144]
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x4530a8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45313d
cmp dword [ebp - 0x5064], 0
jne 0x452f70
mov esi, dword [ebp - 0x505c]
mov eax, esi
mov edi, dword [ebp - 0x5060]
sub eax, edi
mov ecx, dword [ebp - 0x5038]
mov dword [ebp - 0x5148], eax
cmp ecx, eax
jbe 0x45316b
push ecx
push eax
push str.Tools::Download
push str._s_resp_buffer_size__d__not_correct___d__
push 2
push 6
call fcn.004506f0
add esp, 0x18
jmp 0x45311f
push dword [ebp - 0x5140]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x5044]
call esi
push str.Tools::Download
push str._s_internet_read_file_failed_
push 2
push 6
call fcn.004506f0
add esp, 0x10
lea eax, [ebp - 0x5134]
mov ecx, ebx
push eax
call fcn.00453420
lea ecx, [ebp - 0x5060]
call fcn.0044e720
jmp 0x452def
push str.Tools::Download
push str._s_thread_need_to_end_by_kill_
push 2
push 6
call fcn.004506f0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
push dword [ebp - 0x5140]
call esi
push dword [ebp - 0x5044]
call esi
jmp 0x45311f
push dword [ebp - 0x5140]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x5144]
mov eax, dword [ecx + 4]
cmp dword [eax - 0xc], 0
je 0x453278
push 0xb0
lea eax, [ebp - 0x512c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0x512c]
call fcn.004548d0
mov eax, dword [ebp - 0x5144]
lea ecx, [ebp - 0x512c]
sub esp, 8
mov byte [ebp - 4], 0x10
push dword [eax + 4]
call fcn.00454890
cmp dword [ebp - 0x50dc], 0
je 0x45322d
push 0
push dword [ebp - 0x5148]
lea ecx, [ebp - 0x512c]
push edi
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__::write_char_const___long_long___int64__]
lea ecx, [ebp - 0x5128]
call fcn.00450000
test eax, eax
jne 0x45320d
push eax
mov eax, dword [ebp - 0x512c]
lea ecx, [ebp - 0x512c]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x50c4]
mov byte [ebp - 4], 0xf
call fcn.004547e0
lea ecx, [ebp - 0x50c4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
jmp 0x4533ea
push str.Tools::Download
push str._s_write_output_file_failed_
push 2
push 6
call fcn.004506f0
add esp, 0x10
lea eax, [ebp - 0x5134]
mov ecx, ebx
push eax
call fcn.00453420
lea ecx, [ebp - 0x50c4]
call fcn.004547e0
lea ecx, [ebp - 0x50c4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x5060]
call fcn.0044e720
jmp 0x452def
xor al, al
cmp dword [ebp - 0x5148], 0
mov byte [ebp - 0x5021], al
mov byte [ebp - 0x5139], al
jbe 0x453314
lea eax, [ebp - 0x5038]
mov dword [ebp - 0x5038], 0
push eax
lea eax, [ebp - 0x5139]
mov ecx, edi
push eax
lea edx, [ebp - 0x5021]
call fcn.00453a90
mov eax, dword [ebp - 0x5038]
add esp, 8
test eax, eax
jle 0x4532e7
add eax, edi
lea ecx, [ebp - 0x5060]
push eax
push edi
lea eax, [ebp - 0x5138]
push eax
call fcn.00454770
mov esi, dword [ebp - 0x505c]
mov edi, dword [ebp - 0x5060]
cmp byte [ebp - 0x5139], 0
je 0x45330e
mov ecx, edi
cmp edi, esi
je 0x45330e
mov dl, byte [ecx]
lea eax, [ecx + 1]
mov bl, byte [eax]
mov byte [eax], dl
mov byte [ecx], bl
lea ecx, [eax + 1]
cmp ecx, esi
jne 0x4532f6
mov ebx, dword [ebp - 0x514c]
mov al, byte [ebp - 0x5021]
sub esi, edi
je 0x45335a
cmp byte [esi + edi - 1], 0
je 0x45335a
inc esi
lea ecx, [ebp - 0x5060]
push esi
call fcn.0044e6c0
cmp byte [ebp - 0x5021], 0
mov edi, dword [ebp - 0x5060]
mov byte [esi + edi - 1], 0
je 0x4533a6
inc esi
lea ecx, [ebp - 0x5060]
push esi
call fcn.0044e6c0
mov eax, dword [ebp - 0x5060]
mov byte [esi + eax - 1], 0
jmp 0x453379
test al, al
je 0x4533a6
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x5060]
call fcn.0044e6c0
mov eax, dword [ebp - 0x5060]
mov word [esi + eax], 0
push eax
lea ecx, [ebp - 0x5138]
call fcn.0042c540
push eax
lea ecx, [ebp - 0x5134]
mov byte [ebp - 4], 0x11
call fcn.0042d300
lea ecx, [ebp - 0x5138]
mov byte [ebp - 4], 0xf
call fcn.0042bbf0
jmp 0x4533ea
mov eax, dword [ebp - 0x505c]
sub eax, edi
je 0x4533ea
push edi
lea ecx, [ebp - 0x5044]
mov dword [ebp - 0x5044], 0
call fcn.00445690
lea edx, [ebp - 0x5134]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x5044]
call fcn.00453880
lea ecx, [ebp - 0x5044]
mov byte [ebp - 4], 0xf
call fcn.0042bbf0
mov eax, dword [ebp - 0x5144]
mov byte [ebp - 0x5130], 1
push dword [eax]
push str.Tools::Download
push str._s_finish_url__s_
push 1
push 6
call fcn.004506f0
add esp, 0x14
jmp 0x45311f