Function at 0x4ae5a0
Capabilities:
Check http status code
Connect to http server
Create http request
Create thread
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 0xffffffffffffffff
push 0x611cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
push eax
call fcn.004c12a0
mov dword [esp + 0x58], 0
push eax
lea ecx, [esp + 0x24]
push ecx
mov ebx, str._vdam.db
call fcn.0041e2b0
add esp, 0xc
mov byte [esp + 0x54], 2
lea ecx, [esp + 0x38]
call fcn.0040ba40
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
mov ebx, str..tmp
call fcn.0041e2b0
add esp, 8
mov byte [esp + 0x54], 3
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
call fcn.004c0a10
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
je 0x4ae634
mov dword [esp + 0x20], eax
push 0
push 0
push 0
push 0
push 0x6ca128
mov byte [esp + 0x2b], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], ebp
mov byte [esp + 0x54], 4
test ebp, ebp
je 0x4ae883
push 0
push 0
push 3
push 0
push 0
push 0
push str.update.vibranium.co.in
push ebp
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x54], 5
test ebx, ebx
je 0x4ae84d
push 0
push 0x8400f200
push 0
push 0
push 0
push str._dbh_vdam.db
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], esi
mov byte [esp + 0x54], 6
test esi, esi
je 0x4ae83d
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4ae83d
lea edx, [esp + 0x30]
push 0x13
push edx
mov dword [esp + 0x38], esi
call fcn.004ab4a0
add esp, 8
cmp eax, 0xc8
jne 0x4ae83d
lea eax, [esp + 0x30]
push 5
push eax
mov dword [esp + 0x38], esi
call fcn.004ab4a0
mov edi, eax
add esp, 8
mov dword [esp + 0x3c], edi
test edi, edi
jle 0x4ae83d
cmp edi, dword [esp + 0x20]
je 0x4ae83d
mov ecx, dword [esp + 0x24]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ecx
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov ebx, ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x54], 7
cmp ebp, 0xffffffff
je 0x4ae7f2
mov edi, 0x10000
lea ebx, [esp + 0x28]
mov dword [esp + 0x18], 0
call fcn.004438c0
mov byte [esp + 0x54], 8
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [esp + 0x2c]
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push ebx
call edi
test eax, eax
je 0x4ae7d1
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4ae7d1
mov eax, dword [esi]
push 0
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ae7d1
mov eax, dword [esp + 0x18]
add dword [esp + 0x20], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push ebx
call edi
test eax, eax
jne 0x4ae798
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0x54], 7
lea ebx, [esp + 0x28]
call fcn.004c2420
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x20], edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x4ae828
cmp ebp, 0xffffffff
je 0x4ae806
push ebp
call edi
or ebx, 0xffffffff
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4ae828
mov byte [esp + 0x17], 1
mov byte [esp + 0x54], 6
cmp ebx, 0xffffffff
je 0x4ae835
push ebx
call edi
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov byte [esp + 0x54], 5
test esi, esi
je 0x4ae84d
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [esp + 0x54], 4
test ebx, ebx
je 0x4ae85d
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [esp + 0x17], 0
je 0x4ae883
push 0
push 0
push 0x72af90
push 0x459fb0
push 0
push 0
call fcn.005c4af6
add esp, 0x18
mov dword [0x72b25c], eax
mov byte [esp + 0x54], 3
test ebp, ebp
je 0x4ae893
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [esp + 0x54], 2
lea ecx, [esp + 0x24]
call fcn.0040ba40
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0040ba40
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret