Function at 0x10016c0a
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a8b5
mov eax, dword fs:[0]
push eax
mov eax, 0x1058
call fcn.10041a80
mov eax, dword [0x10090590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push ebx
mov dword [ebp - 0x1064], ebx
call fcn.10018787
test eax, eax
jne 0x10016c5b
xor eax, eax
jmp 0x10016f00
push ebx
call fcn.1000e750
pop ecx
test eax, eax
je 0x10016c54
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
push 7
push str.http:__
push esi
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x10016d9a
push 8
push str.https:__
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x10016d9a
push 8
push str.pdown:__
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x10016d87
push esi
lea ecx, [ebp - 0x105c]
call fcn.10001735
push ebx
push str.http:__
lea ecx, [ebp - 0x105c]
mov dword [ebp - 4], ebx
call fcn.10017339
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x10016d15
push ebx
push str.https:__
lea ecx, [ebp - 0x105c]
call fcn.10017339
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x10016d15
mov ecx, dword [ebp - 0x105c]
lea ecx, [ecx - 0x10]
call fcn.10002163
jmp 0x10016c54
mov eax, dword [ebp - 0x105c]
mov eax, dword [eax - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x105c]
push eax
lea eax, [ebp - 0x1060]
push eax
call fcn.1000e236
push eax
lea ecx, [ebp - 0x105c]
mov byte [ebp - 4], 1
call fcn.1000a687
mov ecx, dword [ebp - 0x1060]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.10002163
push dword [ebp - 0x1064]
mov ecx, edi
push dword [ebp - 0x105c]
call fcn.100187c0
mov ecx, dword [ebp - 0x105c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
mov dword [ebp - 0x1060], eax
call fcn.10002163
mov eax, dword [ebp - 0x1060]
jmp 0x10016da8
push dword [ebp - 0x1064]
mov ecx, edi
push esi
call fcn.10018319
jmp 0x10016f00
push dword [ebp - 0x1064]
mov ecx, edi
push esi
call fcn.100187c0
test eax, eax
jne 0x10016f00
cmp dword [edi + 0x10], ebx
jne 0x10016c54
push 8
push str.pdown:__
push esi
mov dword [edi + 0x20], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x10016df5
push 0x824
lea eax, [ebp - 0x1058]
mov ecx, edi
push eax
push esi
call fcn.10017401
test eax, eax
lea ecx, [ebp - 0x1058]
cmove ecx, esi
mov esi, ecx
call fcn.10001ccc
push eax
lea ecx, [ebp - 0x105c]
call fcn.1000170c
push 0x3f
push esi
mov dword [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
jne 0x10016e39
push 0x1007082c
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x10016e55
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._s_t_d
jmp 0x10016e46
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._st_d
lea eax, [ebp - 0x105c]
push eax
call fcn.1000d383
add esp, 0x10
mov esi, dword [ebp - 0x105c]
cmp dword [edi + 0x10], ebx
jne 0x10016ef6
cmp dword [esi - 0xc], 0x824
jb 0x10016eac
push 0x823
lea eax, [ebp - 0x1060]
push eax
lea ecx, [ebp - 0x105c]
call fcn.1000f7bd
push eax
lea ecx, [ebp - 0x105c]
mov byte [ebp - 4], 3
call fcn.1000a687
mov ecx, dword [ebp - 0x1060]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.10002163
mov esi, dword [ebp - 0x105c]
push edi
push ebx
push dword [ebp - 0x1064]
push esi
push ebx
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jne 0x10016ed8
cmp dword [edi + 0x14], ebx
je 0x10016ed3
push dword [edi + 0x1c]
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x1c]
push 1
call dword [eax + 0x30]
xor eax, eax
inc eax
jmp 0x10016ef4
cmp dword [edi + 0x14], ebx
je 0x10016eec
push dword [edi + 0x1c]
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x18]
push 2
call dword [eax + 0x30]
mov eax, ebx
mov dword [0x10092eec], ebx
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.10002163
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041739
leave
ret 0x1c