Function at 0x4706e0
Capabilities:
Check for time delay via gettickcount
Delete file
Link many functions at runtime
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
push ebx
push esi
push edi
mov esi, ecx
push str.wininet
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x47073e
mov eax, dword [0x4e30fc]
test byte [eax + 0x100], 1
jne 0x470737
mov ecx, dword [0x4e5b90]
push 1
push 0
push 0xffffffffffffffff
push 0x4cffc4
call fcn.004a05c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
jmp 0x47085f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenW
push ebx
call esi
push str.InternetOpenUrlW
push ebx
mov dword [esp + 0x18], eax
call esi
push str.InternetCloseHandle
push ebx
mov edi, eax
call esi
push str.InternetReadFileExA
push ebx
mov dword [esp + 0x24], eax
call esi
push str.InternetReadFile
push ebx
mov dword [esp + 0x28], eax
call esi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x28], eax
je 0x470842
test edi, edi
je 0x470842
cmp dword [esp + 0x1c], 0
je 0x470842
cmp dword [esp + 0x20], 0
je 0x470842
test eax, eax
je 0x470842
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], 0x84000000
nop word [eax + eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x4707cd
cmp eax, 9
jne 0x4707d2
add esi, 2
jmp 0x4707c0
cmp eax, 0x2a
jne 0x470809
add esi, 2
mov ecx, esi
call fcn.00404b50
mov edx, 0x4d049c
mov dword [esp + 0xc], eax
mov ecx, esi
call fcn.00406300
test eax, eax
je 0x470809
mov esi, eax
movzx eax, word [esi]
cmp eax, 0x20
je 0x470804
cmp eax, 9
jne 0x470809
add esi, 2
jmp 0x4707f7
push 0
push 0
push 0
push 4
push 0x4b9e88
call dword [esp + 0x24]
mov dword [esp + 0x24], eax
test eax, eax
je 0x470842
push 0
push dword [esp + 0x10]
push 0
push 0
push esi
push eax
call edi
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x470879
push dword [esp + 0x24]
call dword [esp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4e30fc]
test byte [eax + 0x100], 1
je 0x470718
mov ecx, dword [esp + 0x18]
push 0x4b9c10
push 0
push 0x4cffc4
call fcn.00447640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4d9714
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4708a1
mov esi, dword [esp + 0x1c]
push edi
call esi
push dword [esp + 0x24]
call esi
jmp 0x470842
lea eax, [esp + 0x78]
mov dword [esp + 0x58], 0
xorps xmm0, xmm0
mov dword [esp + 0x48], eax
mov eax, dword fs:[0x24]
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x50], xmm0
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x4c], 0x400
mov dword [esp + 0x2c], eax
movzx eax, word [esi]
cmp eax, 0x68
je 0x4709b9
cmp eax, 0x48
je 0x4709b9
lea eax, [esp + 0xc]
push eax
push 0x400
lea eax, [esp + 0x80]
push eax
push edi
call dword [esp + 0x38]
mov esi, eax
test esi, esi
je 0x470a78
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [eax]
cmp dword [esp + 0xc], 0
je 0x470a74
call edi
mov ecx, dword [0x4e30fc]
sub eax, dword [0x4e8864]
cmp eax, dword [ecx + 0xd8]
jbe 0x470978
push 0
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x470971
mov eax, dword [esp + 0x2c]
cmp dword [0x4e7484], eax
jne 0x470971
mov edx, 1
or ecx, 0xffffffff
call fcn.00401a20
call edi
mov dword [0x4e8864], eax
push dword [esp + 0x10]
lea eax, [esp + 0x7c]
push 1
push dword [esp + 0x14]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0x400
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x20]
call dword [esp + 0x38]
mov esi, eax
test esi, esi
jne 0x470920
jmp 0x470a74
push 0
push 8
lea eax, [esp + 0x3c]
push eax
push edi
call dword [esp + 0x30]
mov esi, eax
test esi, esi
je 0x470a78
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esp + 0x14]
nop dword [eax + eax]
cmp dword [esp + 0x4c], 0
je 0x470a70
call edi
mov ecx, dword [0x4e30fc]
sub eax, dword [0x4e8864]
cmp eax, dword [ecx + 0xd8]
jbe 0x470a38
push 0
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x470a31
mov eax, dword [esp + 0x2c]
cmp dword [0x4e7484], eax
jne 0x470a31
mov edx, 1
or ecx, 0xffffffff
call fcn.00401a20
call edi
mov dword [0x4e8864], eax
push dword [esp + 0x10]
lea eax, [esp + 0x7c]
push 1
push dword [esp + 0x54]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov dword [esp + 0x4c], 0x400
lea eax, [esp + 0x34]
push 0
push 8
push eax
push ebx
call dword [esp + 0x30]
mov esi, eax
test esi, esi
jne 0x4709e0
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x20]
call edi
push dword [esp + 0x24]
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test esi, esi
jne 0x470aa8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
mov ecx, dword [esp + 0x18]
sete al
movzx eax, al
push eax
call fcn.004476e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8