Function at 0x466047
Capabilities:
Check http status code
Connect to http server
Create http request
Download and write a file
Move file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b858f
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
lea eax, [esp + 0x24]
push eax
call fcn.0040f9cd
xor ebx, ebx
mov dword [esp + 0x64], ebx
lea eax, [esp + 0x30]
mov dword [esp], str..tmp
push eax
lea ecx, [esp + 0x2c]
call fcn.0040fc0a
pop ecx
pop ecx
mov byte [esp + 0x60], 1
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
call fcn.0046e8f0
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
je 0x4660b9
mov dword [esp + 0x28], eax
push ebx
push ebx
push ebx
push 1
push 0x6788d0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], eax
mov byte [esp + 0x60], 2
cmp eax, ebx
je 0x4662e8
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push str.update.vibranium.co.in
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x60], 3
cmp eax, ebx
je 0x4662d3
push ebx
push 0x8400f200
push ebx
push ebx
push ebx
push str._cure_curescanner.dll
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x50], esi
mov byte [esp + 0x60], 4
cmp esi, ebx
je 0x4662c3
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4662c3
push 0x13
lea edi, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.0041c44d
pop ecx
cmp eax, 0xc8
jne 0x4662c3
push 5
lea edi, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.0041c44d
cmp eax, ebx
pop ecx
mov dword [esp + 0x3c], eax
jle 0x4662c3
cmp eax, dword [esp + 0x28]
je 0x4662c3
push ebx
push ebx
push 2
push ebx
push 1
push 0x10000000
push dword [esp + 0x44]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov byte [esp + 0x60], 5
cmp eax, 0xffffffff
je 0x46622b
mov dword [esp + 0x18], ebx
mov edi, 0x10000
lea ebx, [esp + 0x30]
call fcn.00426662
mov byte [esp + 0x60], 6
mov edi, dword [esp + 0x30]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4661fb
cmp dword [esp + 0x18], 0
je 0x466211
mov eax, dword [edi]
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x20]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x466211
add esi, dword [esp + 0x18]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push dword [esp + 0x2c]
call ebx
test eax, eax
jne 0x4661d4
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0x60], 5
lea ebx, [esp + 0x30]
call fcn.004266a7
xor ebx, ebx
cmp esi, dword [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x4662ad
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1a]
push eax
push dword [esp + 0x24]
lea ecx, [esp + 0x23]
lea edx, [esp + 0x3c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x23], bl
mov byte [esp + 0x22], bl
call fcn.004a3120
add esp, 0xc
mov byte [esp + 0x60], 7
mov eax, dword [esp + 0x30]
cmp dword [eax - 0xc], ebx
je 0x46629f
cmp dword [esp + 0x1c], 0xffffffff
je 0x466280
push dword [esp + 0x1c]
call esi
or dword [esp + 0x28], 0xffffffff
call fcn.0040fabb
push 1
push dword [esp + 0x28]
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.0040fa17
mov byte [esp + 0x60], 5
lea ecx, [esp + 0x30]
call fcn.0040856e
mov byte [esp + 0x60], 4
cmp dword [esp + 0x28], 0xffffffff
je 0x4662bf
push dword [esp + 0x28]
call esi
mov esi, dword [esp + 0x20]
mov byte [esp + 0x60], 3
cmp esi, ebx
je 0x4662d3
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [esp + 0x60], 2
cmp dword [esp + 0x34], ebx
je 0x4662e8
push dword [esp + 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [esp + 0x60], 1
cmp dword [esp + 0x38], ebx
je 0x4662fd
push dword [esp + 0x38]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [esp + 0x60], bl
lea ecx, [esp + 0x2c]
call fcn.0040856e
or dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0040856e
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret