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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067bb3
mov eax, dword fs:[0]
push eax
mov eax, 0x1058
call fcn.1002f580
mov eax, dword [0x1008b548]
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.100182d7
test eax, eax
jne 0x100168eb
xor eax, eax
jmp 0x10016b90
push ebx
call fcn.1000e392
pop ecx
test eax, eax
je 0x100168e4
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 0x10016a2a
push 8
push str.https:__
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x10016a2a
push 8
push str.pdown:__
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x10016a17
push esi
lea ecx, [ebp - 0x105c]
call fcn.100062d5
push ebx
push str.http:__
lea ecx, [ebp - 0x105c]
mov dword [ebp - 4], ebx
call fcn.10016f42
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x100169a5
push ebx
push str.https:__
lea ecx, [ebp - 0x105c]
call fcn.10016f42
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x100169a5
mov ecx, dword [ebp - 0x105c]
lea ecx, [ecx - 0x10]
call fcn.100057c1
jmp 0x100168e4
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.1000de78
push eax
lea ecx, [ebp - 0x105c]
mov byte [ebp - 4], 1
call fcn.1000a3e6
mov ecx, dword [ebp - 0x1060]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.100057c1
push dword [ebp - 0x1064]
mov ecx, edi
push dword [ebp - 0x105c]
call fcn.10018310
mov ecx, dword [ebp - 0x105c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
mov dword [ebp - 0x1060], eax
call fcn.100057c1
mov eax, dword [ebp - 0x1060]
jmp 0x10016a38
push dword [ebp - 0x1064]
mov ecx, edi
push esi
call fcn.10017e72
jmp 0x10016b90
push dword [ebp - 0x1064]
mov ecx, edi
push esi
call fcn.10018310
test eax, eax
jne 0x10016b90
cmp dword [edi + 0x10], ebx
jne 0x100168e4
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 0x10016a85
push 0x824
lea eax, [ebp - 0x1058]
mov ecx, edi
push eax
push esi
call fcn.1001700a
test eax, eax
lea ecx, [ebp - 0x1058]
cmove ecx, esi
mov esi, ecx
call fcn.1000678d
push eax
lea ecx, [ebp - 0x105c]
call fcn.100062ac
push 0x3f
push esi
mov dword [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
jne 0x10016ac9
push 0x1006d5dc
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x10016ae5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._s_t_d
jmp 0x10016ad6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._st_d
lea eax, [ebp - 0x105c]
push eax
call fcn.1000d09a
add esp, 0x10
mov esi, dword [ebp - 0x105c]
cmp dword [edi + 0x10], ebx
jne 0x10016b86
cmp dword [esi - 0xc], 0x824
jb 0x10016b3c
push 0x823
lea eax, [ebp - 0x1060]
push eax
lea ecx, [ebp - 0x105c]
call fcn.1000f44d
push eax
lea ecx, [ebp - 0x105c]
mov byte [ebp - 4], 3
call fcn.1000a3e6
mov ecx, dword [ebp - 0x1060]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.100057c1
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 0x10016b68
cmp dword [edi + 0x14], ebx
je 0x10016b63
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 0x10016b84
cmp dword [edi + 0x14], ebx
je 0x10016b7c
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 [0x1008ef04], ebx
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.100057c1
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.1002f237
leave
ret 0x1c