Function at 0x45a400
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 0x48b394
mov eax, dword fs:[0]
push eax
mov eax, 0x5150
call fcn.00484050
mov eax, dword [0x4b3014]
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 ebx, edx
mov dword [ebp - 0x514c], ebx
mov edi, ecx
mov dword [ebp - 0x5138], edi
mov dword [ebp - 0x5074], edi
mov dword [ebp - 0x515c], 0
push dword [ebx + 4]
push dword [ebx]
push str.Tools::Download
push str._s_url__s___output_file___s_
push 1
push 6
call fcn.00458450
add esp, 0x18
push 0x4983e4
lea ecx, [ebp - 0x5134]
mov dword [ebp - 4], 0
call fcn.0042d680
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 - 0x5148], eax
test eax, eax
jne 0x45a583
push str.Tools::Download
push str._s_internet_open_failed_
push 2
push 6
call fcn.00458450
add esp, 0x10
lea ecx, [ebp - 0x502c]
push str.openInternetError
call fcn.0042d680
lea ecx, [ebp - 0x5028]
mov byte [ebp - 4], 2
call fcn.0045c920
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x502c]
call fcn.00444720
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x5028]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a51d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x502c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a53e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5134]
lea ecx, [ecx - 0x10]
call fcn.0042ed60
add eax, 0x10
mov dword [edi], eax
mov al, byte [ebp - 0x5130]
mov byte [edi + 4], al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5134]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45a57c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x45b03a
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x45a598
push 0x80004005
call fcn.0041ffd0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x5048], esi
mov byte [ebp - 4], 4
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x45a5bf
push 0x80004005
call fcn.0041ffd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5040], eax
mov byte [ebp - 4], 5
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x45a5e6
push 0x80004005
call fcn.0041ffd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5034], eax
lea eax, [ebp - 0x502c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x5034]
mov dword [ebp - 0x502c], 0
push eax
lea edx, [ebp - 0x5040]
mov ecx, ebx
call fcn.0045c280
add esp, 8
test al, al
jne 0x45a6e7
push str.Tools::Download
push str._s_internet_crack_url_failed_
push 2
push 6
call fcn.00458450
mov ecx, dword [ebp - 0x5134]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.0042ed60
add eax, 0x10
or ebx, 0xffffffff
mov dword [edi], eax
mov al, byte [ebp - 0x5130]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x5034]
mov byte [edi + 4], al
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a67e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x5040]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a69f
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 0x45a6ba
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 0x45a57c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x45b03a
mov edi, dword [ebp - 0x5040]
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x502c]
push edi
push dword [ebp - 0x5148]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x5144], eax
test eax, eax
jne 0x45a832
push str.Tools::Download
push str._s_internet_connect_failed_
push 2
push 6
call fcn.00458450
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x512c], esp
push 0x49a8f4
call fcn.0042d680
push ebx
mov edx, str.internet_connect_failed_
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x5028]
call fcn.0042cdd0
add esp, 4
mov byte [ebp - 4], 8
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00444920
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov edx, dword [ebp - 0x5028]
add esp, 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a78e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5134]
lea ecx, [ecx - 0x10]
call fcn.0042ed60
mov ecx, dword [ebp - 0x5138]
add eax, 0x10
mov dword [ecx], eax
mov al, byte [ebp - 0x5130]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x5034]
mov byte [ecx + 4], al
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a7d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 4
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x45a7ec
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45a807
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 0x45b034
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45b034
mov eax, dword [ebp - 0x514c]
push ecx
mov ebx, esp
mov byte [ebp - 0x5021], 0
mov dword [ebp - 0x512c], ebx
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x5028], 0x50
call fcn.0042ed60
add eax, 0x10
lea edx, [ebp - 0x5028]
lea ecx, [ebp - 0x5021]
mov dword [ebx], eax
call fcn.0045c3b0
add esp, 4
mov dword [ebp - 0x503c], 0
lea ecx, [ebp - 0x503c]
push 0x4a1650
call fcn.0042d680
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x5038]
push 0x4a169c
mov dword [ebp - 0x5038], 0
call fcn.0042d680
mov ebx, dword [ebp - 0x514c]
xor ecx, ecx
mov byte [ebp - 4], 0xb
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 0x5038]
mov dword [ebp - 0x5028], edx
cmp dword [eax - 0xc], ecx
mov dword [ebp - 0x501c], ecx
cmove eax, ecx
mov ecx, 0x8040c200
mov dword [ebp - 0x5020], eax
mov eax, dword [edx]
mov dword [ebp - 0x502c], ecx
cmp dword [eax - 0xc], 0
je 0x45a910
push ecx
push str.Cookie:
mov ecx, edx
call fcn.0042d1f0
cmp eax, 0xffffffff
mov ecx, 0x8040c200
mov edx, 0x8048c200
cmovne ecx, edx
mov dword [ebp - 0x502c], ecx
cmp byte [ebp - 0x5021], 0
je 0x45a925
or ecx, 0x803000
mov dword [ebp - 0x502c], ecx
mov eax, dword [ebx + 0x10]
cmp dword [eax - 0xc], 0
je 0x45a945
push eax
push str.Tools::Download
push str._s_Opening_HTTP_request_with__referer___s_
push 0
push 6
call fcn.00458450
add esp, 0x14
mov eax, dword [ebx + 0x10]
xor ecx, ecx
mov ebx, dword [ebp - 0x5034]
push 1
push dword [ebp - 0x502c]
cmp dword [eax - 0xc], ecx
cmove eax, ecx
lea ecx, [ebp - 0x5020]
push ecx
push eax
push 0
push ebx
push dword [ebp - 0x503c]
push dword [ebp - 0x5144]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, eax
mov dword [ebp - 0x513c], ecx
test ecx, ecx
jne 0x45aa93
push str.Tools::Download
push str._s_open_request_failed_
push 2
push 6
call fcn.00458450
add esp, 0x10
push dword [ebp - 0x5144]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x5148]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
mov ecx, esp
mov dword [ebp - 0x512c], esp
push 0x49a8f4
call fcn.0042d680
mov eax, dword [ebp - 0x514c]
lea ecx, [ebp - 0x5028]
push eax
mov edx, str.open_request_failed_
mov byte [ebp - 4], 0xc
call fcn.0042cdd0
add esp, 4
mov byte [ebp - 4], 0xd
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00444920
mov byte [ebp - 4], 0xb
add esp, 4
mov edx, dword [ebp - 0x5028]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45aa1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5134]
lea ecx, [ecx - 0x10]
call fcn.0042ed60
mov ecx, dword [ebp - 0x5138]
add eax, 0x10
mov dword [ecx], eax
mov al, byte [ebp - 0x5130]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x5038]
mov byte [ecx + 4], al
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45aa62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x503c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45aa84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 5
or ebx, 0xffffffff
jmp 0x45a7bd
mov esi, dword [ebp - 0x5028]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x45aabe
push eax
push str.Tools::Download
push str._s_Additional_headers___s_
push 0
push 6
call fcn.00458450
mov ecx, dword [ebp - 0x513c]
add esp, 0x14
mov ebx, dword [ebp - 0x514c]
movsd xmm0, qword [0x4a2500]
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
movsd qword [ebp - 0x5158], xmm0
cmp dword [ebx + 0x18], 0
mov dword [ebp - 0x5028], 0
jle 0x45aba2
push 4
lea eax, [ebp - 0x502c]
mov dword [ebp - 0x502c], 0x7530
push eax
push 6
push ecx
call edi
test eax, eax
je 0x45ab1e
push dword [ebp - 0x502c]
push str.Tools::Download
push str._s_Set_HttpRequest_InternetSetOption_Rec___d_
push 0
jmp 0x45ab31
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.00458450
add esp, 0x14
lea eax, [ebp - 0x502c]
push 4
push eax
push 5
push dword [ebp - 0x513c]
call edi
test eax, eax
je 0x45ab66
push dword [ebp - 0x502c]
push str.Tools::Download
push str._s_Set_HttpRequest_InternetSetOption_Send___d_
push 0
jmp 0x45ab79
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.00458450
mov eax, dword [ebx + 0x14]
add esp, 0x14
test eax, eax
jle 0x45aba2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x4a2520]
movsd qword [ebp - 0x5158], xmm0
lea eax, [ebp - 0x5078]
mov dword [ebp - 0x506c], 0
push eax
lea eax, [ebp - 0x506c]
mov dword [ebp - 0x5078], 4
push eax
push 0x1f
push dword [ebp - 0x513c]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
push 4
lea eax, [ebp - 0x506c]
push eax
push 0x1f
push dword [ebp - 0x513c]
call edi
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x45ac03
push 0
lea ecx, [ebp - 0x512c]
call fcn.0042d680
mov edx, eax
mov ecx, 2
jmp 0x45ac1f
add ecx, 0xfffffff0
call fcn.0042ed60
add eax, 0x10
lea edx, [ebp - 0x5150]
mov dword [ebp - 0x5150], eax
mov ecx, 4
mov eax, dword [esi]
mov edi, dword [ebp - 0x513c]
push 0
push 0
push dword [eax - 0xc]
mov dword [ebp - 0x502c], ecx
push dword [edx]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
mov eax, dword [ebp - 0x502c]
test al, 4
je 0x45ac63
and eax, 0xfffffffb
lea ecx, [ebp - 0x5150]
mov dword [ebp - 0x502c], eax
call fcn.0042cc30
mov eax, dword [ebp - 0x502c]
mov dword [ebp - 4], 0xb
test al, 2
je 0x45ac79
lea ecx, [ebp - 0x512c]
call fcn.0042cc30
test esi, esi
jne 0x45acc3
push str.Tools::Download
push str._s_send_request_failed_
push 2
push 6
call fcn.00458450
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
push edi
call esi
push dword [ebp - 0x5144]
call esi
push dword [ebp - 0x5148]
call esi
mov ecx, dword [ebp - 0x5138]
lea eax, [ebp - 0x5134]
push eax
call fcn.0045b6e0
jmp 0x45aff2
cmp byte [ebx + 0x1c], 0
je 0x45acd5
push str.Tools::Download
push str._s_No_response_is_needed_so_we_can_exit
jmp 0x45ac87
push 0x2801
lea eax, [ebp - 0x2814]
push 0
push eax
call fcn.00463a40
add esp, 0xc
mov dword [ebp - 0x5074], 0x2800
lea eax, [ebp - 0x5074]
push 0
push eax
lea eax, [ebp - 0x2814]
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x45ada8
push str.Tools::Download
push str._s_query_info_status_failed_
push 2
push 6
call fcn.00458450
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
push edi
call esi
push dword [ebp - 0x5144]
call esi
push dword [ebp - 0x5148]
call esi
push ecx
mov ecx, esp
mov dword [ebp - 0x5028], esp
push 0x49a8f4
call fcn.0042d680
push ebx
mov edx, str.query_info_status_failed_
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x512c]
call fcn.0042cdd0
add esp, 4
mov byte [ebp - 4], 0x11
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.00444920
add esp, 4
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x512c]
call fcn.0042cc30
mov ecx, dword [ebp - 0x5138]
lea eax, [ebp - 0x5134]
push eax
call fcn.0045b6e0
jmp 0x45aff2
lea eax, [ebp - 0x2814]
mov dword [ebp - 0x5044], 0
push eax
lea ecx, [ebp - 0x5044]
call fcn.0042d680
mov byte [ebp - 4], 0x13
push dword [ebp - 0x5044]
push str.Tools::Download
push str._s_query_status___s_
push 1
push 6
call fcn.00458450
add esp, 0x14
lea ecx, [ebp - 0x5068]
call fcn.0045c4a0
lea ecx, [ebp - 0x5068]
mov byte [ebp - 4], 0x14
xor ebx, ebx
call fcn.0044ef90
test eax, eax
jle 0x45af9b
nop dword [eax + eax]
cmp byte [ebp - 0x5060], 0
jne 0x45ae23
mov esi, 0x4b75d0
jmp 0x45aeb9
mov ecx, dword [ebp - 0x5068]
lea eax, [ebp - 0x5030]
push eax
lea eax, [ebp - 0x512c]
xorps xmm0, xmm0
movq qword [ebp - 0x5030], xmm0
push eax
mov dword [ebp - 0x5030], 0
mov dword [ebp - 0x502c], ebx
call fcn.0044f750
mov ecx, dword [ebp - 0x5068]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x45ae8e
mov byte [ebp - 4], 0x15
mov esi, dword [ebp - 0x5030]
test esi, esi
je 0x45ae87
cmp dword [ebp - 0x502c], 1
jne 0x45ae87
call fcn.0044e5b0
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, 0x4b75d0
jmp 0x45aeb5
lea esi, [eax + 0x18]
mov byte [ebp - 4], 0x16
mov edi, dword [ebp - 0x5030]
test edi, edi
je 0x45aeb5
cmp dword [ebp - 0x502c], 1
jne 0x45aeb5
call fcn.0044e5b0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0x14
cmp byte [esi + 8], 4
jne 0x45af81
cmp byte [ebp - 0x5060], 0
jne 0x45aed6
mov esi, 0x4b75d0
jmp 0x45af6c
mov ecx, dword [ebp - 0x5068]
lea eax, [ebp - 0x5030]
push eax
lea eax, [ebp - 0x5150]
xorps xmm0, xmm0
movq qword [ebp - 0x5030], xmm0
push eax
mov dword [ebp - 0x5030], 0
mov dword [ebp - 0x502c], ebx
call fcn.0044f750
mov ecx, dword [ebp - 0x5068]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x45af41
mov byte [ebp - 4], 0x17
mov esi, dword [ebp - 0x5030]
test esi, esi
je 0x45af3a
cmp dword [ebp - 0x502c], 1
jne 0x45af3a
call fcn.0044e5b0
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, 0x4b75d0
jmp 0x45af68
lea esi, [eax + 0x18]
mov byte [ebp - 4], 0x18
mov edi, dword [ebp - 0x5030]
test edi, edi
je 0x45af68
cmp dword [ebp - 0x502c], 1
jne 0x45af68
call fcn.0044e5b0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0x14
mov edx, dword [esi]
lea ecx, [ebp - 0x5044]
call fcn.0042cd10
test al, al
jne 0x45b056
lea ecx, [ebp - 0x5068]
inc ebx
call fcn.0044ef90
cmp ebx, eax
jl 0x45ae10
mov edi, dword [ebp - 0x513c]
push str.Tools::Download
push str._s_query_status_not_good_
push 2
push 6
call fcn.00458450
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
push edi
call esi
push dword [ebp - 0x5144]
call esi
push dword [ebp - 0x5148]
call esi
mov ecx, dword [ebp - 0x5138]
lea eax, [ebp - 0x5134]
push eax
call fcn.0045b6e0
lea ecx, [ebp - 0x5068]
call fcn.0044ea10
lea ecx, [ebp - 0x5044]
call fcn.0042cc30
lea ecx, [ebp - 0x5038]
call fcn.0042cc30
lea ecx, [ebp - 0x503c]
call fcn.0042cc30
lea ecx, [ebp - 0x5034]
call fcn.0042cc30
lea ecx, [ebp - 0x5040]
call fcn.0042cc30
lea ecx, [ebp - 0x5048]
call fcn.0042cc30
lea ecx, [ebp - 0x5134]
call fcn.0042a3f0
mov eax, dword [ebp - 0x5138]
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.0045f17f
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x504c], 0
movq qword [ebp - 0x5054], xmm0
mov dword [ebp - 0x5054], 0
mov dword [ebp - 0x5050], 0
mov dword [ebp - 0x504c], 0
xor ebx, ebx
mov byte [ebp - 4], 0x19
push 0x2801
lea eax, [ebp - 0x5018]
mov dword [ebp - 0x5058], 0
push ebx
push eax
mov dword [ebp - 0x5150], ebx
call fcn.00463a40
add esp, 0xc
mov dword [ebp - 0x5070], 0x2800
lea eax, [ebp - 0x5070]
push ebx
push eax
lea eax, [ebp - 0x5018]
push eax
push 0x20000005
push dword [ebp - 0x513c]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x45b140
mov edx, dword [ebp - 0x5070]
test edx, edx
jle 0x45b117
lea ecx, [edx*8 - 8]
lea esi, [ebp - 0x5018]
nop dword [eax]
movzx eax, byte [esi + edx - 1]
dec edx
shl eax, cl
sub ecx, 8
or ebx, eax
test edx, edx
jg 0x45b100
mov dword [ebp - 0x5150], ebx
movd xmm0, ebx
mov eax, ebx
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4a2550]
mulsd xmm0, qword [ebp - 0x5158]
call fcn.00484461
mov dword [ebp - 0x5028], eax
mov edi, 1
xor esi, esi
mov dword [ebp - 0x502c], edi
nop dword [eax]
mov ebx, dword [ebp - 0x5050]
lea ecx, [ebp - 0x5054]
sub ebx, dword [ebp - 0x5054]
lea eax, [ebx + 0x2800]
push eax
call fcn.0042c2b0
mov ecx, dword [ebp - 0x5054]
lea eax, [ebp - 0x5058]
push eax
imul eax, edi, 0x2800
add ecx, ebx
mov dword [ebp - 0x5058], 0
push eax
push ecx
push dword [ebp - 0x513c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x45b1c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45b303
cmp edi, 0xa
jg 0x45b303
inc edi
mov dword [ebp - 0x5058], 0xffffffff
jmp 0x45b150
mov eax, dword [ebp - 0x5058]
lea ecx, [ebp - 0x5054]
add eax, ebx
mov edi, 1
push eax
call fcn.0042c2b0
mov eax, dword [ebp - 0x514c]
cmp dword [eax + 0x18], 0
jle 0x45b234
add esi, dword [ebp - 0x5058]
cmp esi, dword [ebp - 0x5028]
jb 0x45b234
push esi
push ecx
mov esi, esp
mov dword [ebp - 0x512c], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0042ed60
mov ecx, dword [ebp - 0x514c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ecx + 0x14]
imul eax, dword [ebp - 0x502c]
push eax
push dword [ecx + 0x18]
mov eax, dword [ecx + 0x20]
call eax
add esp, 0x10
xor esi, esi
inc dword [ebp - 0x502c]
mov eax, dword [ebp - 0x5058]
lea ecx, [ebp - 0x5054]
add eax, ebx
push eax
call fcn.0042c2b0
mov ebx, dword [ebp - 0x514c]
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x45b267
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45b3aa
cmp dword [ebp - 0x5058], 0
jne 0x45b150
mov esi, dword [ebp - 0x5050]
mov eax, esi
mov edi, dword [ebp - 0x5054]
sub eax, edi
mov ecx, dword [ebp - 0x5150]
mov dword [ebp - 0x5028], eax
cmp ecx, eax
jbe 0x45b416
push ecx
push eax
push str.Tools::Download
push str._s_resp_buffer_size__d__not_correct___d__
push 2
push 6
call fcn.00458450
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x18
push dword [ebp - 0x513c]
call esi
push dword [ebp - 0x5144]
call esi
push dword [ebp - 0x5148]
call esi
push ecx
mov ecx, esp
mov dword [ebp - 0x5028], esp
push 0x49a8f4
call fcn.0042d680
push ebx
mov edx, str.resp_buffer_size_not_correct_
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x512c]
call fcn.0042cdd0
add esp, 4
mov byte [ebp - 4], 0x21
mov byte [ebp - 4], 0x22
jmp 0x45b36f
push dword [ebp - 0x513c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x5144]
call esi
push dword [ebp - 0x5148]
call esi
push str.Tools::Download
push str._s_internet_read_file_failed_
push 2
push 6
call fcn.00458450
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x5028], esp
push 0x49a8f4
call fcn.0042d680
mov eax, dword [ebp - 0x514c]
lea ecx, [ebp - 0x512c]
push eax
mov edx, str.internet_read_file_failed_
mov byte [ebp - 4], 0x1a
call fcn.0042cdd0
add esp, 4
mov byte [ebp - 4], 0x1b
mov byte [ebp - 4], 0x1c
mov ecx, eax
call fcn.00444920
add esp, 4
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x512c]
call fcn.0042cc30
mov ecx, dword [ebp - 0x5138]
lea eax, [ebp - 0x5134]
push eax
call fcn.0045b6e0
lea ecx, [ebp - 0x5054]
call fcn.0042db90
jmp 0x45afdc
push str.Tools::Download
push str._s_thread_need_to_end_by_kill_
push 2
push 6
call fcn.00458450
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
push dword [ebp - 0x513c]
call esi
push dword [ebp - 0x5144]
call esi
push dword [ebp - 0x5148]
call esi
push ecx
mov ecx, esp
mov dword [ebp - 0x5028], esp
push 0x49a8f4
call fcn.0042d680
push ebx
mov edx, str.thread_need_to_end_by_kill_
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x512c]
call fcn.0042cdd0
add esp, 4
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x1f
jmp 0x45b36f
push dword [ebp - 0x513c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebx + 4]
cmp dword [eax - 0xc], 0
je 0x45b52f
push 0xb0
lea eax, [ebp - 0x5128]
push 0
push eax
call fcn.00463a40
add esp, 8
lea ecx, [ebp - 0x5128]
call fcn.0045ce70
sub esp, 8
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x5128]
push dword [ebx + 4]
call fcn.0045ce10
cmp dword [ebp - 0x50d8], 0
je 0x45b4a1
push 0
push dword [ebp - 0x5028]
lea ecx, [ebp - 0x5128]
push edi
call fcn.0045cf40
lea ecx, [ebp - 0x5128]
call fcn.0045cda0
lea ecx, [ebp - 0x5128]
mov byte [ebp - 4], 0x19
call fcn.0045b710
jmp 0x45b6a4
push str.Tools::Download
push str._s_write_output_file_failed_
push 2
push 6
call fcn.00458450
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x5028], esp
push 0x49a8f4
call fcn.0042d680
push ebx
mov edx, str.write_output_file_failed_
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x512c]
call fcn.0042cdd0
add esp, 4
mov byte [ebp - 4], 0x25
mov ecx, eax
mov byte [ebp - 4], 0x26
call fcn.00444920
add esp, 4
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x512c]
call fcn.0042cc30
mov ecx, dword [ebp - 0x5138]
lea eax, [ebp - 0x5134]
push eax
call fcn.0045b6e0
lea ecx, [ebp - 0x5128]
call fcn.0045b710
lea ecx, [ebp - 0x5054]
call fcn.0042db90
jmp 0x45afdc
xor al, al
cmp dword [ebp - 0x5028], 0
mov byte [ebp - 0x5021], al
mov byte [ebp - 0x513d], al
jbe 0x45b5ce
lea eax, [ebp - 0x5028]
mov dword [ebp - 0x5028], 0
push eax
lea eax, [ebp - 0x513d]
mov ecx, edi
push eax
lea edx, [ebp - 0x5021]
call fcn.0045bab0
mov eax, dword [ebp - 0x5028]
add esp, 8
test eax, eax
jle 0x45b59e
add eax, edi
lea ecx, [ebp - 0x5054]
push eax
push edi
lea eax, [ebp - 0x512c]
push eax
call fcn.0045cd30
mov esi, dword [ebp - 0x5050]
mov edi, dword [ebp - 0x5054]
cmp byte [ebp - 0x513d], 0
je 0x45b5c8
mov ecx, edi
cmp edi, esi
je 0x45b5c8
nop dword [eax]
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 0x45b5b0
mov ebx, dword [ebp - 0x514c]
mov al, byte [ebp - 0x5021]
sub esi, edi
je 0x45b614
cmp byte [edi + esi - 1], 0
je 0x45b614
inc esi
lea ecx, [ebp - 0x5054]
push esi
call fcn.0042c2b0
cmp byte [ebp - 0x5021], 0
mov edi, dword [ebp - 0x5054]
mov byte [edi + esi - 1], 0
je 0x45b660
inc esi
lea ecx, [ebp - 0x5054]
push esi
call fcn.0042c2b0
mov eax, dword [ebp - 0x5054]
mov byte [eax + esi - 1], 0
jmp 0x45b633
test al, al
je 0x45b660
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x5054]
call fcn.0042c2b0
mov eax, dword [ebp - 0x5054]
mov word [eax + esi], 0
push eax
lea ecx, [ebp - 0x512c]
call fcn.0042d680
push eax
lea ecx, [ebp - 0x5134]
mov byte [ebp - 4], 0x27
call fcn.0042e6d0
lea ecx, [ebp - 0x512c]
mov byte [ebp - 4], 0x19
call fcn.0042cc30
jmp 0x45b6a4
mov eax, dword [ebp - 0x5050]
sub eax, edi
je 0x45b6a4
push edi
lea ecx, [ebp - 0x502c]
mov dword [ebp - 0x502c], 0
call fcn.0044a190
lea edx, [ebp - 0x5134]
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x502c]
call fcn.0045b7a0
lea ecx, [ebp - 0x502c]
mov byte [ebp - 4], 0x19
call fcn.0042cc30
push dword [ebx]
mov byte [ebp - 0x5130], 1
push str.Tools::Download
push str._s_finish_url__s_
push 1
push 6
call fcn.00458450
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x14
push dword [ebp - 0x5144]
call esi
push dword [ebp - 0x5148]
call esi
jmp 0x45b388