Function at 0x46fe80
Capabilities:
Check for time delay via gettickcount
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x45c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [esp + 0x1c], ebx
mov edi, 0x84000000
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x46fead
cmp eax, 9
jne 0x46feb2
add esi, 2
jmp 0x46fea0
cmp eax, 0x2a
jne 0x46ff03
add esi, 2
mov ecx, esi
call fcn.00404cf0
test al, al
je 0x46fed4
push 0x10
push 0
push esi
call fcn.004bb5f0
add esp, 0xc
jmp 0x46fedd
push esi
call fcn.004bb74c
add esp, 4
mov edx, 0x4f0cac
mov ecx, esi
mov edi, eax
call fcn.004064f0
test eax, eax
je 0x46ff03
mov esi, eax
movzx eax, word [esi]
cmp eax, 0x20
je 0x46fefe
cmp eax, 9
jne 0x46ff03
add esi, 2
jmp 0x46fef1
push 0
push 0
push 0
push 4
push str.AutoHotkey
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x46ff4c
mov eax, dword [0x50499c]
test byte [eax + 0x100], 1
je 0x46ffcc
push 0x4da3cc
push 0
push 0x4f07d4
mov ecx, ebx
call fcn.004472d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push edi
push 0
push 0
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
jne 0x46ff97
push dword [esp + 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [0x50499c]
test byte [eax + 0x100], 1
je 0x46ffcc
mov ecx, dword [esp + 0x1c]
push 0x4da3cc
push 0
push 0x4f07d4
call fcn.004472d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4fa20c
push dword [ebp + 0xc]
call fcn.004c4de1
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x46ffeb
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [esp + 0x14]
call esi
mov eax, dword [0x50499c]
test byte [eax + 0x100], 1
jne 0x46ff79
mov ecx, dword [0x507a8c]
push 1
push 0
push 0xffffffffffffffff
push 0x4f07d4
call fcn.0049fde0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x68]
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
mov dword [esp + 0x38], eax
mov eax, dword fs:[0x24]
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x24], 0x28
mov dword [esp + 0x3c], 0x400
mov dword [esp + 0x20], eax
movzx eax, word [esi]
cmp eax, 0x68
je 0x4700f9
cmp eax, 0x48
je 0x4700f9
lea eax, [esp + 0x10]
push eax
push 0x400
lea eax, [esp + 0x70]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
test edi, edi
je 0x4701b1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esp + 0x10], 0
je 0x4701b1
call esi
mov ecx, dword [0x50499c]
sub eax, dword [0x50a73c]
cmp eax, dword [ecx + 0xd8]
jbe 0x4700bd
push 0
push 0
push 0
push 0
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4700b6
mov eax, dword [esp + 0x20]
cmp dword [0x50939c], eax
jne 0x4700b6
mov edx, 1
or ecx, 0xffffffff
call fcn.004019f0
call esi
mov dword [0x50a73c], eax
push dword [esp + 0x18]
lea eax, [esp + 0x6c]
push 1
push dword [esp + 0x18]
push eax
call fcn.004c5bd9
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0x400
lea eax, [esp + 0x70]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
test edi, edi
jne 0x470065
jmp 0x4701b1
push 0
push 8
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
mov edi, eax
test edi, edi
je 0x4701b1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [eax]
cmp dword [esp + 0x3c], 0
je 0x4701b1
call esi
mov ecx, dword [0x50499c]
sub eax, dword [0x50a73c]
cmp eax, dword [ecx + 0xd8]
jbe 0x470178
push 0
push 0
push 0
push 0
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x470171
mov eax, dword [esp + 0x20]
cmp dword [0x50939c], eax
jne 0x470171
mov edx, 1
or ecx, 0xffffffff
call fcn.004019f0
call esi
mov dword [0x50a73c], eax
push dword [esp + 0x18]
lea eax, [esp + 0x6c]
push 1
push dword [esp + 0x44]
push eax
call fcn.004c5bd9
add esp, 0x10
mov dword [esp + 0x3c], 0x400
lea eax, [esp + 0x24]
push 0
push 8
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
mov edi, eax
test edi, edi
jne 0x470120
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [esp + 0x14]
call esi
push dword [esp + 0x18]
call fcn.004c5921
add esp, 4
test edi, edi
jne 0x4701db
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
mov ecx, dword [esp + 0x1c]
sete al
movzx eax, al
push eax
call fcn.00447370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8