Function at 0x465d9e
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 0x38
mov eax, 0x5ba5bc
call fcn.00580b4b
lea eax, [ebp - 0x34]
push eax
call fcn.0046f4e0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x20]
mov dword [esp], 0x678808
push ecx
mov ecx, eax
call fcn.0040fc0a
pop ecx
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.0040856e
lea eax, [ebp - 0x28]
push 0x67881c
push eax
lea ecx, [ebp - 0x20]
call fcn.0040fc0a
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ebx
call fcn.0046e8f0
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
je 0x465e06
mov dword [ebp - 0x24], eax
push ebx
push ebx
push ebx
push ebx
push 0x678828
mov byte [ebp - 0xd], bl
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x465fc6
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0x67882c
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x465faa
push ebx
push 0x8400f200
push ebx
push ebx
push ebx
push str._dbh_heur.db
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x44], esi
mov byte [ebp - 4], 6
cmp esi, ebx
je 0x465f9b
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x465f9b
push 0x13
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
call fcn.0041c44d
pop ecx
cmp eax, 0xc8
jne 0x465f9b
push 5
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
call fcn.0041c44d
cmp eax, ebx
pop ecx
mov dword [ebp - 0x38], eax
jle 0x465f9b
cmp eax, dword [ebp - 0x24]
je 0x465f9b
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x28]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 7
cmp eax, 0xffffffff
je 0x465f59
mov dword [ebp - 0x14], ebx
mov edi, 0x10000
lea ebx, [ebp - 0x2c]
call fcn.00426662
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x465f2e
cmp dword [ebp - 0x14], 0
je 0x465f42
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x465f42
add esi, dword [ebp - 0x14]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push dword [ebp - 0x1c]
call ebx
test eax, eax
jne 0x465f0c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 4], 7
lea ebx, [ebp - 0x2c]
call fcn.004266a7
xor ebx, ebx
cmp esi, dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x465f89
cmp dword [ebp - 0x18], 0xffffffff
je 0x465f6f
push dword [ebp - 0x18]
call esi
or dword [ebp - 0x24], 0xffffffff
push 1
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x465f89
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 6
cmp dword [ebp - 0x24], 0xffffffff
je 0x465f98
push dword [ebp - 0x24]
call esi
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
cmp esi, ebx
je 0x465faa
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x30], ebx
je 0x465fbc
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [ebp - 0xd], bl
je 0x465fc6
call fcn.0042f34b
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], ebx
je 0x465fd8
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0040856e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040856e
call fcn.00580c23
ret