Function at 0x470380
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 0x4703ad
cmp eax, 9
jne 0x4703b2
add esi, 2
jmp 0x4703a0
cmp eax, 0x2a
jne 0x470405
add esi, 2
mov ecx, esi
call fcn.00404c80
test al, al
je 0x4703d5
push 0x10
push 0
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wcstoi64]
add esp, 0xc
jmp 0x4703df
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi64]
add esp, 4
mov edx, 0x4d05d4
mov ecx, esi
mov edi, eax
call fcn.00406570
test eax, eax
je 0x470405
mov esi, eax
movzx eax, word [esi]
cmp eax, 0x20
je 0x470400
cmp eax, 9
jne 0x470405
add esi, 2
jmp 0x4703f3
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 0x47044e
mov eax, dword [0x4e30f4]
test byte [eax + 0x100], 1
je 0x4704cf
push 0x4b9c40
push 0
push 0x4d00fc
mov ecx, ebx
call fcn.00447670
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 0x470499
push dword [esp + 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [0x4e30f4]
test byte [eax + 0x100], 1
je 0x4704cf
mov ecx, dword [esp + 0x1c]
push 0x4b9c40
push 0
push 0x4d00fc
call fcn.00447670
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4d9c4c
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4704ee
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [esp + 0x14]
call esi
mov eax, dword [0x4e30f4]
test byte [eax + 0x100], 1
jne 0x47047b
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d00fc
call fcn.004a0a20
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 0x470605
cmp eax, 0x48
je 0x470605
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 0x4706b7
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [eax + eax]
cmp dword [esp + 0x10], 0
je 0x4706b7
call esi
mov ecx, dword [0x4e30f4]
sub eax, dword [0x4e868c]
cmp eax, dword [ecx + 0xd8]
jbe 0x4705c8
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 0x4705c1
mov eax, dword [esp + 0x20]
cmp dword [0x4e72e4], eax
jne 0x4705c1
mov edx, 1
or ecx, 0xffffffff
call fcn.004019f0
call esi
mov dword [0x4e868c], eax
push dword [esp + 0x18]
lea eax, [esp + 0x6c]
push 1
push dword [esp + 0x18]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
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 0x470570
jmp 0x4706b7
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 0x4706b7
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esp + 0x3c], 0
je 0x4706b7
call esi
mov ecx, dword [0x4e30f4]
sub eax, dword [0x4e868c]
cmp eax, dword [ecx + 0xd8]
jbe 0x47067d
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 0x470676
mov eax, dword [esp + 0x20]
cmp dword [0x4e72e4], eax
jne 0x470676
mov edx, 1
or ecx, 0xffffffff
call fcn.004019f0
call esi
mov dword [0x4e868c], eax
push dword [esp + 0x18]
lea eax, [esp + 0x6c]
push 1
push dword [esp + 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
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 0x470625
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [esp + 0x14]
call esi
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
jne 0x4706e2
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.00447710
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8