Function at 0x45a7d0
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 0x48b64f
mov eax, dword fs:[0]
push eax
mov eax, 0x514c
call fcn.004842a0
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 - 0x5148], ebx
mov edi, ecx
mov dword [ebp - 0x5134], edi
mov dword [ebp - 0x5070], edi
mov dword [ebp - 0x5158], 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.00458820
add esp, 0x18
push 0x4983e4
lea ecx, [ebp - 0x5130]
mov dword [ebp - 4], 0
call fcn.0042dad0
mov byte [ebp - 0x512c], 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 - 0x5140], eax
test eax, eax
jne 0x45a953
push str.Tools::Download
push str._s_internet_open_failed_
push 2
push 6
call fcn.00458820
add esp, 0x10
lea ecx, [ebp - 0x502c]
push str.openInternetError
call fcn.0042dad0
lea ecx, [ebp - 0x5028]
mov byte [ebp - 4], 2
call fcn.0045cbc0
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x502c]
call fcn.00444b30
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 0x45a8ed
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 0x45a90e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5130]
lea ecx, [ecx - 0x10]
call fcn.0042f1b0
add eax, 0x10
mov dword [edi], eax
mov al, byte [ebp - 0x512c]
mov byte [edi + 4], al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5130]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45a94c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x45b3cf
call fcn.0040f790
mov ecx, eax
test ecx, ecx
jne 0x45a968
push 0x80004005
call fcn.00420010
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5040], eax
mov byte [ebp - 4], 4
call fcn.0040f790
mov ecx, eax
test ecx, ecx
jne 0x45a98f
push 0x80004005
call fcn.00420010
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5034], eax
lea eax, [ebp - 0x502c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x5034]
mov dword [ebp - 0x502c], 0
push eax
lea edx, [ebp - 0x5040]
mov ecx, ebx
call fcn.0045c520
add esp, 8
test al, al
jne 0x45aad2
push str.Tools::Download
push str._s_internet_crack_url_failed_
push 2
push 6
call fcn.00458820
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x5128], esp
push 0x49a8f4
call fcn.0042dad0
push ebx
mov edx, str.CrackUrl_failed_
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5028]
call fcn.0042d220
add esp, 4
mov byte [ebp - 4], 7
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00444d30
mov byte [ebp - 4], 5
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 0x45aa47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5130]
lea ecx, [ecx - 0x10]
call fcn.0042f1b0
add eax, 0x10
mov dword [edi], eax
mov al, byte [ebp - 0x512c]
mov byte [ebp - 4], 4
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 0x45aa84
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 - 0x5040]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45aaa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5130]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45a94c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x45b3cf
mov esi, dword [ebp - 0x5040]
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x502c]
push esi
push dword [ebp - 0x5140]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x513c], eax
test eax, eax
jne 0x45abd5
push str.Tools::Download
push str._s_internet_connect_failed_
push 2
push 6
call fcn.00458820
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x5128], esp
push 0x49a8f4
call fcn.0042dad0
push ebx
mov edx, str.internet_connect_failed_
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x5028]
call fcn.0042d220
add esp, 4
mov byte [ebp - 4], 0xa
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00444d30
mov byte [ebp - 4], 5
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 0x45ab79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5130]
lea ecx, [ecx - 0x10]
call fcn.0042f1b0
add eax, 0x10
mov dword [edi], eax
mov al, byte [ebp - 0x512c]
mov byte [ebp - 4], 4
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 0x45abb6
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 0x45aaa5
mov ecx, dword [esi]
push esi
jmp 0x45aaa0
push ecx
mov edi, esp
mov byte [ebp - 0x5021], 0
mov dword [ebp - 0x5128], edi
mov ecx, dword [ebx]
sub ecx, 0x10
mov dword [ebp - 0x5028], 0x50
call fcn.0042f1b0
add eax, 0x10
lea edx, [ebp - 0x5028]
lea ecx, [ebp - 0x5021]
mov dword [edi], eax
call fcn.0045c650
add esp, 4
mov dword [ebp - 0x503c], 0
lea ecx, [ebp - 0x503c]
push 0x4a18a8
call fcn.0042dad0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x5038]
push 0x4a18a0
mov dword [ebp - 0x5038], 0
call fcn.0042dad0
mov byte [ebp - 4], 0xd
xor ecx, ecx
mov eax, dword [ebp - 0x5038]
mov edi, 0x8040c200
cmp dword [eax - 0xc], ecx
mov dword [ebp - 0x501c], ecx
cmove eax, ecx
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x5020], eax
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x45ac8e
push ecx
push str.Cookie:
call fcn.0042d640
cmp eax, 0xffffffff
mov ecx, 0x8048c200
cmovne edi, ecx
cmp byte [ebp - 0x5021], 0
je 0x45ac9d
or edi, 0x803000
mov eax, dword [ebx + 0x10]
cmp dword [eax - 0xc], 0
je 0x45acbd
push eax
push str.Tools::Download
push str._s_Opening_HTTP_request_with__referer___s_
push 0
push 6
call fcn.00458820
add esp, 0x14
mov eax, dword [ebx + 0x10]
xor ecx, ecx
push 1
push edi
mov edi, dword [ebp - 0x5034]
cmp dword [eax - 0xc], ecx
cmove eax, ecx
lea ecx, [ebp - 0x5020]
push ecx
push eax
push 0
push edi
push dword [ebp - 0x503c]
push dword [ebp - 0x513c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x5144], eax
test eax, eax
jne 0x45ae54
push str.Tools::Download
push str._s_open_request_failed_
push 2
push 6
call fcn.00458820
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
push dword [ebp - 0x513c]
call ebx
push dword [ebp - 0x5140]
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x5128], esp
push 0x49a8f4
call fcn.0042dad0
mov eax, dword [ebp - 0x5148]
lea ecx, [ebp - 0x5028]
push eax
mov edx, str.open_request_failed_
mov byte [ebp - 4], 0xe
call fcn.0042d220
add esp, 4
mov byte [ebp - 4], 0xf
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.00444d30
mov byte [ebp - 4], 0xd
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 0x45ad8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5130]
lea ecx, [ecx - 0x10]
call fcn.0042f1b0
mov ecx, dword [ebp - 0x5134]
add eax, 0x10
mov dword [ecx], eax
mov al, byte [ebp - 0x512c]
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x5038]
mov byte [ecx + 4], al
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45add2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x503c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45adf3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x45ae0e
mov ecx, dword [edi]
push edi
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 0x45ae29
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5130]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45b3c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45b3c9
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], 0
je 0x45ae74
push eax
push str.Tools::Download
push str._s_Additional_headers___s_
push 0
push 6
call fcn.00458820
add esp, 0x14
cmp dword [ebx + 0x18], 0
movsd xmm0, qword [0x4a2710]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
mov edi, dword [ebp - 0x5144]
movsd qword [ebp - 0x5154], xmm0
mov dword [ebp - 0x5028], 0
jle 0x45af53
push 4
lea eax, [ebp - 0x502c]
mov dword [ebp - 0x502c], 0x7530
push eax
push 6
push edi
call esi
test eax, eax
je 0x45aed4
push dword [ebp - 0x502c]
push str.Tools::Download
push str._s_Set_HttpRequest_InternetSetOption_Rec___d_
push 0
jmp 0x45aee7
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.00458820
add esp, 0x14
lea eax, [ebp - 0x502c]
push 4
push eax
push 5
push edi
call esi
test eax, eax
je 0x45af17
push dword [ebp - 0x502c]
push str.Tools::Download
push str._s_Set_HttpRequest_InternetSetOption_Send___d_
push 0
jmp 0x45af2a
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.00458820
mov eax, dword [ebx + 0x14]
add esp, 0x14
test eax, eax
jle 0x45af53
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x4a2730]
movsd qword [ebp - 0x5154], xmm0
lea eax, [ebp - 0x5074]
mov dword [ebp - 0x5068], 0
push eax
lea eax, [ebp - 0x5068]
mov dword [ebp - 0x5074], 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
push 4
lea eax, [ebp - 0x5068]
push eax
push 0x1f
push edi
call esi
mov ecx, dword [ebx + 0xc]
cmp dword [ecx - 0xc], 0
jne 0x45afab
push 0
lea ecx, [ebp - 0x5128]
call fcn.0042dad0
mov edx, eax
mov ecx, 2
jmp 0x45afc7
add ecx, 0xfffffff0
call fcn.0042f1b0
add eax, 0x10
lea edx, [ebp - 0x514c]
mov dword [ebp - 0x514c], eax
mov ecx, 4
mov eax, dword [ebx + 0xc]
push 0
push 0
mov dword [ebp - 0x502c], ecx
push dword [eax - 0xc]
push dword [edx]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
mov eax, dword [ebp - 0x502c]
test al, 4
je 0x45b006
and eax, 0xfffffffb
lea ecx, [ebp - 0x514c]
mov dword [ebp - 0x502c], eax
call fcn.0042d080
mov eax, dword [ebp - 0x502c]
mov dword [ebp - 4], 0xd
test al, 2
je 0x45b01c
lea ecx, [ebp - 0x5128]
call fcn.0042d080
test esi, esi
jne 0x45b066
push str.Tools::Download
push str._s_send_request_failed_
push 2
push 6
call fcn.00458820
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
push edi
call esi
push dword [ebp - 0x513c]
call esi
push dword [ebp - 0x5140]
call esi
mov ecx, dword [ebp - 0x5134]
lea eax, [ebp - 0x5130]
push eax
call fcn.0045ba70
jmp 0x45b392
cmp byte [ebx + 0x1c], 0
je 0x45b078
push str.Tools::Download
push str._s_No_response_is_needed_so_we_can_exit
jmp 0x45b02a
push 0x2801
lea eax, [ebp - 0x2814]
push 0
push eax
call fcn.00463ce0
add esp, 0xc
mov dword [ebp - 0x5070], 0x2800
lea eax, [ebp - 0x5070]
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 0x45b14b
push str.Tools::Download
push str._s_query_info_status_failed_
push 2
push 6
call fcn.00458820
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
push edi
call esi
push dword [ebp - 0x513c]
call esi
push dword [ebp - 0x5140]
call esi
push ecx
mov ecx, esp
mov dword [ebp - 0x5028], esp
push 0x49a8f4
call fcn.0042dad0
push ebx
mov edx, str.query_info_status_failed_
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x5128]
call fcn.0042d220
add esp, 4
mov byte [ebp - 4], 0x13
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.00444d30
add esp, 4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x5128]
call fcn.0042d080
mov ecx, dword [ebp - 0x5134]
lea eax, [ebp - 0x5130]
push eax
call fcn.0045ba70
jmp 0x45b392
lea eax, [ebp - 0x2814]
mov dword [ebp - 0x5044], 0
push eax
lea ecx, [ebp - 0x5044]
call fcn.0042dad0
mov byte [ebp - 4], 0x15
push dword [ebp - 0x5044]
push str.Tools::Download
push str._s_query_status___s_
push 1
push 6
call fcn.00458820
add esp, 0x14
lea ecx, [ebp - 0x5064]
call fcn.0045c740
lea ecx, [ebp - 0x5064]
mov byte [ebp - 4], 0x16
xor ebx, ebx
call fcn.0044f3b0
test eax, eax
jle 0x45b33b
nop dword [eax + eax]
cmp byte [ebp - 0x505c], 0
jne 0x45b1c3
mov esi, 0x4b75d0
jmp 0x45b259
mov ecx, dword [ebp - 0x5064]
lea eax, [ebp - 0x5030]
push eax
lea eax, [ebp - 0x5128]
xorps xmm0, xmm0
movq qword [ebp - 0x5030], xmm0
push eax
mov dword [ebp - 0x5030], 0
mov dword [ebp - 0x502c], ebx
call fcn.0044fb70
mov ecx, dword [ebp - 0x5064]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x45b22e
mov byte [ebp - 4], 0x17
mov esi, dword [ebp - 0x5030]
test esi, esi
je 0x45b227
cmp dword [ebp - 0x502c], 1
jne 0x45b227
call fcn.0044e9d0
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, 0x4b75d0
jmp 0x45b255
lea esi, [eax + 0x18]
mov byte [ebp - 4], 0x18
mov edi, dword [ebp - 0x5030]
test edi, edi
je 0x45b255
cmp dword [ebp - 0x502c], 1
jne 0x45b255
call fcn.0044e9d0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0x16
cmp byte [esi + 8], 4
jne 0x45b321
cmp byte [ebp - 0x505c], 0
jne 0x45b276
mov esi, 0x4b75d0
jmp 0x45b30c
mov ecx, dword [ebp - 0x5064]
lea eax, [ebp - 0x5030]
push eax
lea eax, [ebp - 0x514c]
xorps xmm0, xmm0
movq qword [ebp - 0x5030], xmm0
push eax
mov dword [ebp - 0x5030], 0
mov dword [ebp - 0x502c], ebx
call fcn.0044fb70
mov ecx, dword [ebp - 0x5064]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x45b2e1
mov byte [ebp - 4], 0x19
mov esi, dword [ebp - 0x5030]
test esi, esi
je 0x45b2da
cmp dword [ebp - 0x502c], 1
jne 0x45b2da
call fcn.0044e9d0
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, 0x4b75d0
jmp 0x45b308
lea esi, [eax + 0x18]
mov byte [ebp - 4], 0x1a
mov edi, dword [ebp - 0x5030]
test edi, edi
je 0x45b308
cmp dword [ebp - 0x502c], 1
jne 0x45b308
call fcn.0044e9d0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0x16
mov edx, dword [esi]
lea ecx, [ebp - 0x5044]
call fcn.0042d160
test al, al
jne 0x45b3eb
lea ecx, [ebp - 0x5064]
inc ebx
call fcn.0044f3b0
cmp ebx, eax
jl 0x45b1b0
mov edi, dword [ebp - 0x5144]
push str.Tools::Download
push str._s_query_status_not_good_
push 2
push 6
call fcn.00458820
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
push edi
call esi
push dword [ebp - 0x513c]
call esi
push dword [ebp - 0x5140]
call esi
mov ecx, dword [ebp - 0x5134]
lea eax, [ebp - 0x5130]
push eax
call fcn.0045ba70
lea ecx, [ebp - 0x5064]
call fcn.0044ee30
lea ecx, [ebp - 0x5044]
call fcn.0042d080
lea ecx, [ebp - 0x5038]
call fcn.0042d080
lea ecx, [ebp - 0x503c]
call fcn.0042d080
lea ecx, [ebp - 0x5034]
call fcn.0042d080
lea ecx, [ebp - 0x5040]
call fcn.0042d080
lea ecx, [ebp - 0x5130]
call fcn.0042a430
mov eax, dword [ebp - 0x5134]
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.0045f41f
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x5048], 0
movq qword [ebp - 0x5050], xmm0
mov dword [ebp - 0x5050], 0
mov dword [ebp - 0x504c], 0
mov dword [ebp - 0x5048], 0
xor ebx, ebx
mov byte [ebp - 4], 0x1b
push 0x2801
lea eax, [ebp - 0x5018]
mov dword [ebp - 0x5054], 0
push ebx
push eax
mov dword [ebp - 0x514c], ebx
call fcn.00463ce0
add esp, 0xc
mov dword [ebp - 0x506c], 0x2800
lea eax, [ebp - 0x506c]
push ebx
push eax
lea eax, [ebp - 0x5018]
push eax
push 0x20000005
push dword [ebp - 0x5144]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x45b4d0
mov edx, dword [ebp - 0x506c]
test edx, edx
jle 0x45b4a7
lea ecx, [edx*8 - 8]
lea esi, [ebp - 0x5018]
nop
movzx eax, byte [esi + edx - 1]
dec edx
shl eax, cl
sub ecx, 8
or ebx, eax
test edx, edx
jg 0x45b490
mov dword [ebp - 0x514c], ebx
movd xmm0, ebx
mov eax, ebx
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4a2760]
mulsd xmm0, qword [ebp - 0x5154]
call fcn.004846b1
mov dword [ebp - 0x5028], eax
mov edi, 1
xor esi, esi
mov dword [ebp - 0x502c], edi
nop dword [eax]
mov ebx, dword [ebp - 0x504c]
lea ecx, [ebp - 0x5050]
sub ebx, dword [ebp - 0x5050]
lea eax, [ebx + 0x2800]
push eax
call fcn.0042c700
mov ecx, dword [ebp - 0x5050]
lea eax, [ebp - 0x5054]
push eax
imul eax, edi, 0x2800
add ecx, ebx
mov dword [ebp - 0x5054], 0
push eax
push ecx
push dword [ebp - 0x5144]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x45b554
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45b693
cmp edi, 0xa
jg 0x45b693
inc edi
mov dword [ebp - 0x5054], 0xffffffff
jmp 0x45b4e0
mov eax, dword [ebp - 0x5054]
lea ecx, [ebp - 0x5050]
add eax, ebx
mov edi, 1
push eax
call fcn.0042c700
mov eax, dword [ebp - 0x5148]
cmp dword [eax + 0x18], 0
jle 0x45b5c4
add esi, dword [ebp - 0x5054]
cmp esi, dword [ebp - 0x5028]
jb 0x45b5c4
push esi
push ecx
mov esi, esp
mov dword [ebp - 0x5128], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0042f1b0
mov ecx, dword [ebp - 0x5148]
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 - 0x5054]
lea ecx, [ebp - 0x5050]
add eax, ebx
push eax
call fcn.0042c700
mov ebx, dword [ebp - 0x5148]
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x45b5f7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45b73a
cmp dword [ebp - 0x5054], 0
jne 0x45b4e0
mov esi, dword [ebp - 0x504c]
mov eax, esi
mov edi, dword [ebp - 0x5050]
sub eax, edi
mov ecx, dword [ebp - 0x514c]
mov dword [ebp - 0x5028], eax
cmp ecx, eax
jbe 0x45b7a6
push ecx
push eax
push str.Tools::Download
push str._s_resp_buffer_size__d__not_correct___d__
push 2
push 6
call fcn.00458820
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x18
push dword [ebp - 0x5144]
call esi
push dword [ebp - 0x513c]
call esi
push dword [ebp - 0x5140]
call esi
push ecx
mov ecx, esp
mov dword [ebp - 0x5028], esp
push 0x49a8f4
call fcn.0042dad0
push ebx
mov edx, str.resp_buffer_size_not_correct_
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x5128]
call fcn.0042d220
add esp, 4
mov byte [ebp - 4], 0x23
mov byte [ebp - 4], 0x24
jmp 0x45b6ff
push dword [ebp - 0x5144]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x513c]
call esi
push dword [ebp - 0x5140]
call esi
push str.Tools::Download
push str._s_internet_read_file_failed_
push 2
push 6
call fcn.00458820
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x5028], esp
push 0x49a8f4
call fcn.0042dad0
mov eax, dword [ebp - 0x5148]
lea ecx, [ebp - 0x5128]
push eax
mov edx, str.internet_read_file_failed_
mov byte [ebp - 4], 0x1c
call fcn.0042d220
add esp, 4
mov byte [ebp - 4], 0x1d
mov byte [ebp - 4], 0x1e
mov ecx, eax
call fcn.00444d30
add esp, 4
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x5128]
call fcn.0042d080
mov ecx, dword [ebp - 0x5134]
lea eax, [ebp - 0x5130]
push eax
call fcn.0045ba70
lea ecx, [ebp - 0x5050]
call fcn.0042dfe0
jmp 0x45b37c
push str.Tools::Download
push str._s_thread_need_to_end_by_kill_
push 2
push 6
call fcn.00458820
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
push dword [ebp - 0x5144]
call esi
push dword [ebp - 0x513c]
call esi
push dword [ebp - 0x5140]
call esi
push ecx
mov ecx, esp
mov dword [ebp - 0x5028], esp
push 0x49a8f4
call fcn.0042dad0
push ebx
mov edx, str.thread_need_to_end_by_kill_
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x5128]
call fcn.0042d220
add esp, 4
mov byte [ebp - 4], 0x20
mov byte [ebp - 4], 0x21
jmp 0x45b6ff
push dword [ebp - 0x5144]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebx + 4]
cmp dword [eax - 0xc], 0
je 0x45b8bf
push 0xb0
lea eax, [ebp - 0x5124]
push 0
push eax
call fcn.00463ce0
add esp, 8
lea ecx, [ebp - 0x5124]
call fcn.0045d110
sub esp, 8
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x5124]
push dword [ebx + 4]
call fcn.0045d0b0
cmp dword [ebp - 0x50d4], 0
je 0x45b831
push 0
push dword [ebp - 0x5028]
lea ecx, [ebp - 0x5124]
push edi
call fcn.0045d1e0
lea ecx, [ebp - 0x5124]
call fcn.0045d040
lea ecx, [ebp - 0x5124]
mov byte [ebp - 4], 0x1b
call fcn.0045baa0
jmp 0x45ba34
push str.Tools::Download
push str._s_write_output_file_failed_
push 2
push 6
call fcn.00458820
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x5028], esp
push 0x49a8f4
call fcn.0042dad0
push ebx
mov edx, str.write_output_file_failed_
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x5128]
call fcn.0042d220
add esp, 4
mov byte [ebp - 4], 0x27
mov ecx, eax
mov byte [ebp - 4], 0x28
call fcn.00444d30
add esp, 4
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x5128]
call fcn.0042d080
mov ecx, dword [ebp - 0x5134]
lea eax, [ebp - 0x5130]
push eax
call fcn.0045ba70
lea ecx, [ebp - 0x5124]
call fcn.0045baa0
lea ecx, [ebp - 0x5050]
call fcn.0042dfe0
jmp 0x45b37c
xor al, al
cmp dword [ebp - 0x5028], 0
mov byte [ebp - 0x5021], al
mov byte [ebp - 0x5135], al
jbe 0x45b95e
lea eax, [ebp - 0x5028]
mov dword [ebp - 0x5028], 0
push eax
lea eax, [ebp - 0x5135]
mov ecx, edi
push eax
lea edx, [ebp - 0x5021]
call fcn.0045be40
mov eax, dword [ebp - 0x5028]
add esp, 8
test eax, eax
jle 0x45b92e
add eax, edi
lea ecx, [ebp - 0x5050]
push eax
push edi
lea eax, [ebp - 0x5128]
push eax
call fcn.0045cfd0
mov esi, dword [ebp - 0x504c]
mov edi, dword [ebp - 0x5050]
cmp byte [ebp - 0x5135], 0
je 0x45b958
mov ecx, edi
cmp edi, esi
je 0x45b958
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 0x45b940
mov ebx, dword [ebp - 0x5148]
mov al, byte [ebp - 0x5021]
sub esi, edi
je 0x45b9a4
cmp byte [edi + esi - 1], 0
je 0x45b9a4
inc esi
lea ecx, [ebp - 0x5050]
push esi
call fcn.0042c700
cmp byte [ebp - 0x5021], 0
mov edi, dword [ebp - 0x5050]
mov byte [edi + esi - 1], 0
je 0x45b9f0
inc esi
lea ecx, [ebp - 0x5050]
push esi
call fcn.0042c700
mov eax, dword [ebp - 0x5050]
mov byte [eax + esi - 1], 0
jmp 0x45b9c3
test al, al
je 0x45b9f0
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x5050]
call fcn.0042c700
mov eax, dword [ebp - 0x5050]
mov word [eax + esi], 0
push eax
lea ecx, [ebp - 0x5128]
call fcn.0042dad0
push eax
lea ecx, [ebp - 0x5130]
mov byte [ebp - 4], 0x29
call fcn.0042eb20
lea ecx, [ebp - 0x5128]
mov byte [ebp - 4], 0x1b
call fcn.0042d080
jmp 0x45ba34
mov eax, dword [ebp - 0x504c]
sub eax, edi
je 0x45ba34
push edi
lea ecx, [ebp - 0x502c]
mov dword [ebp - 0x502c], 0
call fcn.0044a5b0
lea edx, [ebp - 0x5130]
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x502c]
call fcn.0045bb30
lea ecx, [ebp - 0x502c]
mov byte [ebp - 4], 0x1b
call fcn.0042d080
push dword [ebx]
mov byte [ebp - 0x512c], 1
push str.Tools::Download
push str._s_finish_url__s_
push 1
push 6
call fcn.00458820
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x14
push dword [ebp - 0x513c]
call esi
push dword [ebp - 0x5140]
call esi
jmp 0x45b718